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

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

Issue 21084007: Set overflowControlsHost layer bounds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 9a2f22bd0b135fdf9a775c82a38b7cdbf21340ab..17826f6483379206397847e7f89ae1304c78290f 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -1129,8 +1129,8 @@ void RenderLayerCompositor::frameViewDidChangeLocation(const IntPoint& contentsO
void RenderLayerCompositor::frameViewDidChangeSize()
{
+ FrameView* frameView = m_renderView->frameView();
if (m_containerLayer) {
- FrameView* frameView = m_renderView->frameView();
m_containerLayer->setSize(frameView->unscaledVisibleContentSize());
frameViewDidScroll();
@@ -1141,6 +1141,8 @@ void RenderLayerCompositor::frameViewDidChangeSize()
m_layerForOverhangAreas->setSize(frameView->frameRect().size());
#endif
}
+ if (m_overflowControlsHostLayer)
+ m_overflowControlsHostLayer->setSize(frameView->unscaledVisibleContentSize(ScrollableArea::IncludeScrollbars));
}
void RenderLayerCompositor::frameViewDidScroll()
@@ -1488,10 +1490,11 @@ void RenderLayerCompositor::updateRootLayerPosition()
m_rootContentLayer->setSize(documentRect.size());
m_rootContentLayer->setPosition(documentRect.location());
}
- if (m_containerLayer) {
- FrameView* frameView = m_renderView->frameView();
+ FrameView* frameView = m_renderView->frameView();
+ if (m_containerLayer)
m_containerLayer->setSize(frameView->unscaledVisibleContentSize());
- }
+ if (m_overflowControlsHostLayer)
+ m_overflowControlsHostLayer->setSize(frameView->unscaledVisibleContentSize(ScrollableArea::IncludeScrollbars));
#if ENABLE(RUBBER_BANDING)
if (m_contentShadowLayer) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698