0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 1f1da2f24d3028b250dbc2e98e2b7e37862b3771 Mon Sep 17 00:00:00 2001
  2. From: Richard Purdie <richard.purdie@linuxfoundation.org>
  3. Date: Wed, 26 Sep 2012 20:54:38 +0200
  4. Subject: [PATCH 19/21] Fixes for gcc 4.7.0, particularly on qemux86
  5. Origin: upstream, http://trac.webkit.org/changeset/93631
  6. Origin: upstream, http://trac.webkit.org/changeset/113848
  7. Bug: https://bugs.webkit.org/show_bug.cgi?id=62168
  8. Bug: https://bugs.webkit.org/show_bug.cgi?id=83584
  9. RP 2012/04/30
  10. Upstream-Status: Backport
  11. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  12. ---
  13. src/3rdparty/webkit/Source/WebCore/dom/Element.cpp | 2 +-
  14. src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp | 2 +-
  15. .../webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h | 1 +
  16. 3 files changed, 3 insertions(+), 2 deletions(-)
  17. diff --git a/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp b/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp
  18. index 32e47ca..b8e7389 100644
  19. --- a/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp
  20. +++ b/src/3rdparty/webkit/Source/WebCore/dom/Element.cpp
  21. @@ -1080,7 +1080,7 @@ void Element::recalcStyle(StyleChange change)
  22. {
  23. // Ref currentStyle in case it would otherwise be deleted when setRenderStyle() is called.
  24. RefPtr<RenderStyle> currentStyle(renderStyle());
  25. - bool hasParentStyle = parentNodeForRenderingAndStyle() ? parentNodeForRenderingAndStyle()->renderStyle() : false;
  26. + bool hasParentStyle = parentNodeForRenderingAndStyle() ? static_cast<bool>(parentNodeForRenderingAndStyle()->renderStyle()) : false;
  27. bool hasDirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByDirectAdjacentRules();
  28. bool hasIndirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByForwardPositionalRules();
  29. diff --git a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
  30. index d66075e..ab8f111 100644
  31. --- a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
  32. +++ b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
  33. @@ -74,7 +74,7 @@ PassRefPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document*
  34. RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
  35. if (optionalWidth)
  36. image->setWidth(*optionalWidth);
  37. - if (optionalHeight > 0)
  38. + if (optionalHeight)
  39. image->setHeight(*optionalHeight);
  40. return image.release();
  41. }
  42. diff --git a/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h b/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h
  43. index 6087ec3..6d748f6 100644
  44. --- a/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h
  45. +++ b/src/3rdparty/webkit/Source/WebCore/platform/graphics/TiledBackingStoreClient.h
  46. @@ -25,6 +25,7 @@ namespace WebCore {
  47. #if ENABLE(TILED_BACKING_STORE)
  48. class TiledBackingStoreClient {
  49. public:
  50. + virtual ~TiledBackingStoreClient() { }
  51. virtual void tiledBackingStorePaintBegin() = 0;
  52. virtual void tiledBackingStorePaint(GraphicsContext*, const IntRect&) = 0;
  53. virtual void tiledBackingStorePaintEnd(const Vector<IntRect>& paintedArea) = 0;
  54. --
  55. 1.8.0