Reviewed and landed by Maciej.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2006 09:33:19 +0000 (09:33 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2006 09:33:19 +0000 (09:33 +0000)
        Compile on the Qt platform.

        * ksvg2/misc/KCanvasRenderingStyle.h:
        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17564 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/ksvg2/misc/KCanvasRenderingStyle.h
WebCore/platform/qt/RenderThemeQt.cpp

index e67ead672ae04c026de5ed936ea73296ae7c3e44..1d0f8c75eef33002e285d37f2bcdc974ea2583b9 100644 (file)
@@ -1,3 +1,13 @@
+2006-11-03  Zack Rusin  <zack@kde.org>
+
+        Reviewed and landed by Maciej.
+        
+        Compile on the Qt platform.
+
+        * ksvg2/misc/KCanvasRenderingStyle.h:
+        * platform/qt/RenderThemeQt.cpp:
+        (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
+
 2006-11-03  Zack Rusin  <zack@kde.org>
 
         Reviewed by Hyatt. Landed by Maciej.
index b3683bd87fe2166e1bd7ceeb7a8f3aa7787a5869..e7986e9b9a89683de1e43877e67ac27905017f16 100644 (file)
@@ -27,7 +27,9 @@
 
 #include <wtf/Vector.h>
 
+#if PLATFORM(CG)
 #include "QuartzSupport.h"
+#endif
 
 namespace WebCore {
 
index a2b73aac818277158ca2af1928f9e5bd0c717960..6529a1b53478779cffd901da1480d94799b6c167 100644 (file)
@@ -143,7 +143,7 @@ void RenderThemeQt::addIntrinsicMargins(RenderStyle* style) const
 
 bool RenderThemeQt::getStylePainterAndWidgetFromPaintInfo(const RenderObject::PaintInfo& i, QStyle*& style, QPainter*& painter, QWidget*& widget) const
 {
-    painter = (i.p ? static_cast<QPainter*>(i.p->platformContext()) : 0);
+    painter = (i.context ? static_cast<QPainter*>(i.context->platformContext()) : 0);
     widget = (painter ? static_cast<QWidget*>(painter->device()) : 0);
     style = (widget ? widget->style() : 0);