Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / scroll / ScrollbarThemeGtkOrAura.cpp
index 2005ae7..3029d94 100644 (file)
@@ -39,7 +39,7 @@
 #include "platform/scroll/ScrollbarThemeOverlay.h"
 #include "public/platform/Platform.h"
 #include "public/platform/WebRect.h"
-#include "public/platform/default/WebThemeEngine.h"
+#include "public/platform/WebThemeEngine.h"
 
 namespace WebCore {
 
@@ -123,7 +123,7 @@ void ScrollbarThemeGtkOrAura::paintButton(GraphicsContext* gc, ScrollbarThemeCli
     if (useMockTheme() && !scrollbar->enabled()) {
         state = blink::WebThemeEngine::StateDisabled;
     } else if (!useMockTheme() && ((checkMin && (scrollbar->currentPos() <= 0))
-        || (checkMax && scrollbar->currentPos() == scrollbar->maximum()))) {
+        || (checkMax && scrollbar->currentPos() >= scrollbar->maximum()))) {
         state = blink::WebThemeEngine::StateDisabled;
     } else {
         if (part == scrollbar->pressedPart())