summaryrefslogtreecommitdiff
path: root/debian/patches/upstream_changeset_r93631.diff
diff options
context:
space:
mode:
authorPino Toscano <pino@debian.org>2012-04-14 23:44:46 +0200
committerPino Toscano <pino@debian.org>2012-04-14 23:44:46 +0200
commitd6fb2938e0fe2dec2a1ad7020069dc09fc0189fb (patch)
tree4c866a72df61c7fa37636c5047198368dea5392b /debian/patches/upstream_changeset_r93631.diff
parent327d24b35c01f5ec7318104bd8eef5626cadffd4 (diff)
downloadqtwebkit-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.diff16
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();
+