Title: [123319] trunk/Source/WebCore
Revision
123319
Author
[email protected]
Date
2012-07-23 01:43:11 -0700 (Mon, 23 Jul 2012)

Log Message

Unreviewed. Fix GTK+ build with ENABLE_DATALIST_ELEMENT.

Add an implementation for virtual pure methods sliderTickSize()
and sliderTickOffsetFromTrackCenter() when HTML5 datalist element
is enabled.

* platform/gtk/RenderThemeGtk.cpp:
(WebCore):
(WebCore::RenderThemeGtk::sliderTickSize):
(WebCore::RenderThemeGtk::sliderTickOffsetFromTrackCenter):
* platform/gtk/RenderThemeGtk.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (123318 => 123319)


--- trunk/Source/WebCore/ChangeLog	2012-07-23 08:36:40 UTC (rev 123318)
+++ trunk/Source/WebCore/ChangeLog	2012-07-23 08:43:11 UTC (rev 123319)
@@ -1,3 +1,17 @@
+2012-07-23  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. Fix GTK+ build with ENABLE_DATALIST_ELEMENT.
+
+        Add an implementation for virtual pure methods sliderTickSize()
+        and sliderTickOffsetFromTrackCenter() when HTML5 datalist element
+        is enabled.
+
+        * platform/gtk/RenderThemeGtk.cpp:
+        (WebCore):
+        (WebCore::RenderThemeGtk::sliderTickSize):
+        (WebCore::RenderThemeGtk::sliderTickOffsetFromTrackCenter):
+        * platform/gtk/RenderThemeGtk.h:
+
 2012-07-23  Patrick Gansterer  <[email protected]>
 
         Replace getCurrentLocalTime() with GetLocalTime() in LocaleWin.cpp

Modified: trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp (123318 => 123319)


--- trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp	2012-07-23 08:36:40 UTC (rev 123318)
+++ trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp	2012-07-23 08:43:11 UTC (rev 123319)
@@ -711,4 +711,18 @@
     return StringTruncator::centerTruncate(string, width, font, StringTruncator::EnableRoundingHacks);
 }
 
+#if ENABLE(DATALIST_ELEMENT)
+IntSize RenderThemeGtk::sliderTickSize() const
+{
+    // FIXME: We need to set this to the size of one tick mark.
+    return IntSize(0, 0);
 }
+
+int RenderThemeGtk::sliderTickOffsetFromTrackCenter() const
+{
+    // FIXME: We need to set this to the position of the tick marks.
+    return 0;
+}
+#endif
+
+}

Modified: trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h (123318 => 123319)


--- trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h	2012-07-23 08:36:40 UTC (rev 123318)
+++ trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h	2012-07-23 08:43:11 UTC (rev 123319)
@@ -93,6 +93,14 @@
 #endif
 #endif
 
+#if ENABLE(DATALIST_ELEMENT)
+    // Returns size of one slider tick mark for a horizontal track.
+    // For vertical tracks we rotate it and use it. i.e. Width is always length along the track.
+    virtual IntSize sliderTickSize() const;
+    // Returns the distance of slider tick origin from the slider track center.
+    virtual int sliderTickOffsetFromTrackCenter() const;
+#endif
+
 #ifdef GTK_API_VERSION_2
     GtkWidget* gtkContainer() const;
     GtkWidget* gtkEntry() const;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to