Index: content/renderer/webscrollbarbehavior_impl_gtkoraura.cc |
diff --git a/content/renderer/webscrollbarbehavior_impl_gtkoraura.cc b/content/renderer/webscrollbarbehavior_impl_gtkoraura.cc |
index 8398858b5b2e95efe1a5d243c6a426cc1e51f10c..e9d77bb3f50c81192d3d75e843ca5525c3c4fbb5 100644 |
--- a/content/renderer/webscrollbarbehavior_impl_gtkoraura.cc |
+++ b/content/renderer/webscrollbarbehavior_impl_gtkoraura.cc |
@@ -13,7 +13,7 @@ bool WebScrollbarBehaviorImpl::shouldCenterOnThumb( |
blink::WebScrollbarBehavior::Button mouseButton, |
bool shiftKeyPressed, |
bool altKeyPressed) { |
-#if defined(TOOLKIT_GTK) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
if (mouseButton == blink::WebScrollbarBehavior::ButtonMiddle) |
return true; |
#endif |
@@ -25,10 +25,6 @@ bool WebScrollbarBehaviorImpl::shouldSnapBackToDragOrigin( |
const blink::WebPoint& eventPoint, |
const blink::WebRect& scrollbarRect, |
bool isHorizontal) { |
-#if defined(TOOLKIT_GTK) |
- return false; |
-#endif |
- |
// Constants used to figure the drag rect outside which we should snap the |
// scrollbar thumb back to its origin. These calculations are based on |
// observing the behavior of the MSVC8 main window scrollbar + some |
@@ -48,4 +44,4 @@ bool WebScrollbarBehaviorImpl::shouldSnapBackToDragOrigin( |
return !noSnapRect.Contains(eventPoint); |
} |
-} // namespace content |
+} // namespace content |