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

Unified Diff: Source/core/platform/chromium/FramelessScrollView.cpp

Issue 59333002: Make select drop down popup RTL aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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/chromium/FramelessScrollView.cpp
diff --git a/Source/core/platform/chromium/FramelessScrollView.cpp b/Source/core/platform/chromium/FramelessScrollView.cpp
index a2a39b83008081bb6d99025eedf1b0999bbb998f..8c810f5cf8935f7fb66de24291c8b84fc6d14e50 100644
--- a/Source/core/platform/chromium/FramelessScrollView.cpp
+++ b/Source/core/platform/chromium/FramelessScrollView.cpp
@@ -85,7 +85,10 @@ HostWindow* FramelessScrollView::hostWindow() const
IntRect FramelessScrollView::windowClipRect(bool clipToContents) const
{
- return contentsToWindow(visibleContentRect(clipToContents ? ExcludeScrollbars : IncludeScrollbars));
+ IntRect clipRect = visibleContentRect(clipToContents ? ExcludeScrollbars : IncludeScrollbars);
+ if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar())
+ clipRect.move(verticalScrollbar()->width(), 0);
+ return contentsToWindow(clipRect);
}
void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&)

Powered by Google App Engine
This is Rietveld 408576698