Title: [88787] trunk/Source/WebCore
Revision
88787
Author
[email protected]
Date
2011-06-14 02:22:41 -0700 (Tue, 14 Jun 2011)

Log Message

2011-06-14  Kent Tamura  <[email protected]>

        [Qt] Attempt to fix a build break by r88757.
        https://bugs.webkit.org/show_bug.cgi?id=52920

        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::paintSliderTrack):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (88786 => 88787)


--- trunk/Source/WebCore/ChangeLog	2011-06-14 08:36:20 UTC (rev 88786)
+++ trunk/Source/WebCore/ChangeLog	2011-06-14 09:22:41 UTC (rev 88787)
@@ -1,3 +1,11 @@
+2011-06-14  Kent Tamura  <[email protected]>
+
+        [Qt] Attempt to fix a build break by r88757.
+        https://bugs.webkit.org/show_bug.cgi?id=52920
+
+        * platform/qt/RenderThemeQt.cpp:
+        (WebCore::RenderThemeQt::paintSliderTrack):
+
 2011-06-13  Kent Tamura  <[email protected]>
 
         [EFL] The second try to fix a build break.

Modified: trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp (88786 => 88787)


--- trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp	2011-06-14 08:36:20 UTC (rev 88786)
+++ trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp	2011-06-14 09:22:41 UTC (rev 88787)
@@ -63,6 +63,7 @@
 #include "RenderSlider.h"
 #include "RenderTheme.h"
 #include "ScrollbarThemeQt.h"
+#include "SliderThumbElement.h"
 #include "TimeRanges.h"
 #include "UserAgentStyleSheets.h"
 
@@ -913,17 +914,18 @@
     ControlPart appearance = initializeCommonQStyleOptions(option, o);
 
     RenderSlider* renderSlider = toRenderSlider(o);
-    IntRect thumbRect = renderSlider->thumbRect();
+    HTMLInputElement* input = renderSlider->node()->toInputElement();
+    IntRect thumbRect = sliderThumbElementOf(input)->getRect();
 
     option.rect = r;
 
     int value;
     if (appearance == SliderVerticalPart) {
         option.maximum = r.height() - thumbRect.height();
-        value = thumbRect.y();
+        value = thumbRect.y() - r.y();
     } else {
         option.maximum = r.width() - thumbRect.width();
-        value = thumbRect.x();
+        value = thumbRect.x() - r.x();
     }
 
     value = QStyle::sliderValueFromPosition(0, option.maximum, value, option.maximum);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to