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

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

Issue 285293007: Fix layoutOverflowRect in case of explicit 'overflow: scroll', but no overflow content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 7 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/RenderBlockLineLayout.cpp ('k') | no next file » | 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 b942cf4321623b388b4f0552a4f61c74540a4ba2..728025e47a39d2c27a2bbd96138be15a2b6af153 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -4283,12 +4283,8 @@ void RenderBox::addContentsVisualOverflow(const LayoutRect& rect)
return;
}
- if (!m_overflow) {
- LayoutRect clientBox = clientBoxRect();
- if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft())
- clientBox.move(-verticalScrollbarWidth(), 0);
- m_overflow = adoptPtr(new RenderOverflow(clientBox, borderBoxRect()));
- }
+ if (!m_overflow)
+ m_overflow = adoptPtr(new RenderOverflow(noOverflowRect(), borderBoxRect()));
m_overflow->addContentsVisualOverflow(rect);
}
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698