[GTK] Wrong variable used in RenderThemeGtk
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jun 2018 13:35:58 +0000 (13:35 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jun 2018 13:35:58 +0000 (13:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186756

Patch by Tomas Popela <tpopela@redhat.com> on 2018-06-18
Reviewed by Carlos Garcia Campos.

Use SliderThumbHorizontalPart instead of SliderHorizontalPart.

* rendering/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::adjustSliderThumbSize const):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeGtk.cpp

index f84388b..f992f6e 100644 (file)
@@ -1,3 +1,15 @@
+2018-06-18  Tomas Popela  <tpopela@redhat.com>
+
+        [GTK] Wrong variable used in RenderThemeGtk
+        https://bugs.webkit.org/show_bug.cgi?id=186756
+
+        Reviewed by Carlos Garcia Campos.
+
+        Use SliderThumbHorizontalPart instead of SliderHorizontalPart.
+
+        * rendering/RenderThemeGtk.cpp:
+        (WebCore::RenderThemeGtk::adjustSliderThumbSize const):
+
 2018-06-18  Philippe Normand  <pnormand@igalia.com>
 
         [GStreamer] Crash when adding in-band text track with playbin3 enabled
index d04a684..8e8fe10 100644 (file)
@@ -1314,7 +1314,7 @@ void RenderThemeGtk::adjustSliderThumbSize(RenderStyle& style, const Element*) c
     if (part != SliderThumbHorizontalPart && part != SliderThumbVerticalPart)
         return;
 
-    auto& sliderWidget = static_cast<RenderThemeSlider&>(RenderThemeWidget::getOrCreate(part == SliderHorizontalPart ? RenderThemeWidget::Type::HorizontalSlider : RenderThemeWidget::Type::VerticalSlider));
+    auto& sliderWidget = static_cast<RenderThemeSlider&>(RenderThemeWidget::getOrCreate(part == SliderThumbHorizontalPart ? RenderThemeWidget::Type::HorizontalSlider : RenderThemeWidget::Type::VerticalSlider));
     sliderWidget.scale().setState(GTK_STATE_FLAG_NORMAL);
     sliderWidget.trough().setState(GTK_STATE_FLAG_NORMAL);