diff options
author | Pino Toscano <pino@debian.org> | 2012-04-14 23:44:46 +0200 |
---|---|---|
committer | Pino Toscano <pino@debian.org> | 2012-04-14 23:44:46 +0200 |
commit | d6fb2938e0fe2dec2a1ad7020069dc09fc0189fb (patch) | |
tree | 4c866a72df61c7fa37636c5047198368dea5392b /debian/patches/upstream_changeset_r93631.diff | |
parent | 327d24b35c01f5ec7318104bd8eef5626cadffd4 (diff) | |
download | qtwebkit-d6fb2938e0fe2dec2a1ad7020069dc09fc0189fb.tar.gz |
fix building with gcc 4.7 (#667346)
backport (parts of) upstream r93631 and r113848, with a small adaptation to use current (and not used-for-qt4 one) g++ minor version
Diffstat (limited to 'debian/patches/upstream_changeset_r93631.diff')
-rw-r--r-- | debian/patches/upstream_changeset_r93631.diff | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/upstream_changeset_r93631.diff b/debian/patches/upstream_changeset_r93631.diff new file mode 100644 index 0000000..9f919cf --- /dev/null +++ b/debian/patches/upstream_changeset_r93631.diff @@ -0,0 +1,16 @@ +Description: Fixed warnings produced by gcc-4.6.0. +Author: Ahmad Sharif <asharif@chromium.org> +Bug: https://bugs.webkit.org/show_bug.cgi?id=62168 +Origin: upstream, http://trac.webkit.org/changeset/93631 + +--- a/Source/WebCore/dom/Element.cpp ++++ b/Source/WebCore/dom/Element.cpp +@@ -1080,7 +1080,7 @@ void Element::recalcStyle(StyleChange ch + { + // Ref currentStyle in case it would otherwise be deleted when setRenderStyle() is called. + RefPtr<RenderStyle> currentStyle(renderStyle()); +- bool hasParentStyle = parentNodeForRenderingAndStyle() ? parentNodeForRenderingAndStyle()->renderStyle() : false; ++ bool hasParentStyle = parentNodeForRenderingAndStyle() ? static_cast<bool>(parentNodeForRenderingAndStyle()->renderStyle()) : false; + bool hasDirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByDirectAdjacentRules(); + bool hasIndirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByForwardPositionalRules(); + |