Commit ea72145c authored by skobes@chromium.org's avatar skobes@chromium.org

Position overflow controls during layout.

Review URL: https://codereview.chromium.org/459083002

git-svn-id: svn://svn.chromium.org/blink/trunk@180000 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent fc258db5
......@@ -263,15 +263,6 @@ void RenderLayer::updateLayerPositionsAfterLayout()
void RenderLayer::updateLayerPositionRecursive()
{
if (hasOverflowControls()) {
// FIXME: We should figure out the right time to position the overflow controls.
// This call appears to be necessary to pass some layout test that use EventSender,
// presumably because the normal time to position the controls is during paint. We
// probably shouldn't position the overflow controls during paint either...
DisableCompositingQueryAsserts disabler;
scrollableArea()->positionOverflowControls(IntSize());
}
if (m_reflectionInfo)
m_reflectionInfo->reflection()->layout();
......
......@@ -650,7 +650,13 @@ void RenderLayerScrollableArea::updateAfterLayout()
}
}
updateScrollableAreaSet(hasScrollableHorizontalOverflow() || hasScrollableVerticalOverflow());
bool hasOverflow = hasScrollableHorizontalOverflow() || hasScrollableVerticalOverflow();
updateScrollableAreaSet(hasOverflow);
if (hasOverflow) {
DisableCompositingQueryAsserts disabler;
positionOverflowControls(IntSize());
}
}
bool RenderLayerScrollableArea::hasHorizontalOverflow() const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment