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

Unified Diff: Source/core/rendering/RenderBox.cpp

Issue 70163005: Fix clientLeft value for RTL direction, while the element have vertical scrollbar in left side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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/rendering/RenderBox.h ('k') | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 311d9dfc207ec4ce24cc4f5ec6605d55a085f153..1203e7bc45473acc525d52a6e7045db30a4183ed 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -4287,8 +4287,12 @@ void RenderBox::addContentsVisualOverflow(const LayoutRect& rect)
return;
}
- if (!m_overflow)
- m_overflow = adoptPtr(new RenderOverflow(clientBoxRect(), borderBoxRect()));
+ if (!m_overflow) {
+ LayoutRect clientBox = clientBoxRect();
+ if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft())
+ clientBox.move(-verticalScrollbarWidth(), 0);
+ m_overflow = adoptPtr(new RenderOverflow(clientBox, borderBoxRect()));
+ }
m_overflow->addContentsVisualOverflow(rect);
}
« no previous file with comments | « Source/core/rendering/RenderBox.h ('k') | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698