Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1114)

Unified Diff: Source/core/platform/chromium/support/WebScrollbarImpl.cpp

Issue 23734003: Add the text direction to the WebScrollbar interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less memory Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/chromium/support/WebScrollbarImpl.h ('k') | Source/web/WebPluginScrollbarImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/platform/chromium/support/WebScrollbarImpl.h ('k') | Source/web/WebPluginScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698