Index: Source/core/platform/chromium/support/WebScrollbarImpl.cpp |
diff --git a/Source/core/platform/chromium/support/WebScrollbarImpl.cpp b/Source/core/platform/chromium/support/WebScrollbarImpl.cpp |
index ecfc41bc92e124bd4819b344f65471043cb6f6bc..f88bfbcd2258152e8dacc3691e82982500cddb75 100644 |
--- a/Source/core/platform/chromium/support/WebScrollbarImpl.cpp |
+++ b/Source/core/platform/chromium/support/WebScrollbarImpl.cpp |
@@ -28,6 +28,7 @@ |
#include "core/platform/Scrollbar.h" |
#include "core/platform/graphics/IntRect.h" |
+#include "core/platform/text/TextDirection.h" |
namespace WebKit { |
@@ -118,6 +119,11 @@ WebScrollbar::Orientation WebScrollbarImpl::orientation() const |
return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation()); |
} |
+bool WebScrollbarImpl::isRightToLeft() const |
+{ |
+ return m_scrollbar->textDirection() == WebCore::RTL; |
+} |
+ |
bool WebScrollbarImpl::isCustomScrollbar() const |
{ |
return m_scrollbar->isCustomScrollbar(); |