Title: [110366] trunk/Source/WebCore
Revision
110366
Author
[email protected]
Date
2012-03-09 19:53:50 -0800 (Fri, 09 Mar 2012)

Log Message

Pan scroll icon is painted at incorrect coordinates in frames
https://bugs.webkit.org/show_bug.cgi?id=79378

Convert client coordinates to parent ScrollView coordinates

Patch by Cem Kocagil <[email protected]> on 2012-03-05
Reviewed by Antonio Gomes

* platform/ScrollView.cpp:
(WebCore::ScrollView::paintPanScrollIcon):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (110365 => 110366)


--- trunk/Source/WebCore/ChangeLog	2012-03-10 03:19:28 UTC (rev 110365)
+++ trunk/Source/WebCore/ChangeLog	2012-03-10 03:53:50 UTC (rev 110366)
@@ -1,3 +1,15 @@
+2012-03-05 Cem Kocagil  <[email protected]>
+
+        Pan scroll icon is painted at incorrect coordinates in frames
+        https://bugs.webkit.org/show_bug.cgi?id=79378
+
+        Convert client coordinates to parent ScrollView coordinates
+
+        Reviewed by Antonio Gomes
+
+        * platform/ScrollView.cpp:
+        (WebCore::ScrollView::paintPanScrollIcon):
+
 2012-03-09  Joshua Bell  <[email protected]>
 
         IndexedDB: Handle LevelDB database corruption

Modified: trunk/Source/WebCore/platform/ScrollView.cpp (110365 => 110366)


--- trunk/Source/WebCore/platform/ScrollView.cpp	2012-03-10 03:19:28 UTC (rev 110365)
+++ trunk/Source/WebCore/platform/ScrollView.cpp	2012-03-10 03:53:50 UTC (rev 110366)
@@ -1005,7 +1005,10 @@
 void ScrollView::paintPanScrollIcon(GraphicsContext* context)
 {
     static Image* panScrollIcon = Image::loadPlatformResource("panIcon").leakRef();
-    context->drawImage(panScrollIcon, ColorSpaceDeviceRGB, m_panScrollIconPoint);
+    IntPoint iconGCPoint = m_panScrollIconPoint;
+    if (parent())
+        iconGCPoint = parent()->windowToContents(iconGCPoint);
+    context->drawImage(panScrollIcon, ColorSpaceDeviceRGB, iconGCPoint);
 }
 
 void ScrollView::paint(GraphicsContext* context, const IntRect& rect)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to