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

Unified Diff: Source/core/platform/Scrollbar.cpp

Issue 23480037: Fix RTL scroll bars being misrendered on Android. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: isLeftSideVerticalScrollbar Created 7 years, 3 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
Index: Source/core/platform/Scrollbar.cpp
diff --git a/Source/core/platform/Scrollbar.cpp b/Source/core/platform/Scrollbar.cpp
index c48e510cfcdbb9cab6a020bb7f485d23168d00d7..db35415dde50ed51957a15c824938d111dc79aa6 100644
--- a/Source/core/platform/Scrollbar.cpp
+++ b/Source/core/platform/Scrollbar.cpp
@@ -121,11 +121,11 @@ bool Scrollbar::isScrollViewScrollbar() const
return parent() && parent()->isFrameView() && toFrameView(parent())->isScrollViewScrollbar(this);
}
-TextDirection Scrollbar::textDirection() const
+bool Scrollbar::isLeftSideVerticalScrollbar() const
{
if (m_orientation == VerticalScrollbar && m_scrollableArea)
- return m_scrollableArea->textDirection();
- return LTR;
+ return m_scrollableArea->shouldPlaceVerticalScrollbarOnLeft();
+ return false;
}
void Scrollbar::offsetDidChange()

Powered by Google App Engine
This is Rietveld 408576698