Unreviewed. Fix scrollbars/custom-scrollbar-appearance-property.html after r191991.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 14:42:42 +0000 (14:42 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 14:42:42 +0000 (14:42 +0000)
Use a similar fix to the mac one.

* rendering/RenderThemeGtk.cpp:
(WebCore::centerRectVerticallyInParentInputElement):

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

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

index b3a4ff1..6a37c25 100644 (file)
@@ -1,3 +1,12 @@
+2015-11-10  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        Unreviewed. Fix scrollbars/custom-scrollbar-appearance-property.html after r191991.
+
+        Use a similar fix to the mac one.
+
+        * rendering/RenderThemeGtk.cpp:
+        (WebCore::centerRectVerticallyInParentInputElement):
+
 2015-11-10  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         Unreviewed speculative buildfix after r192200.
index 806aff9..4b62e2d 100644 (file)
@@ -980,6 +980,9 @@ void RenderThemeGtk::adjustSearchFieldResultsDecorationPartStyle(StyleResolver&,
 
 static IntRect centerRectVerticallyInParentInputElement(const RenderObject& renderObject, const IntRect& rect)
 {
+    if (!renderObject.node())
+        return IntRect();
+
     // Get the renderer of <input> element.
     Node* input = renderObject.node()->shadowHost();
     if (!input)