Commit 9e577367 authored by wangxianzhu's avatar wangxianzhu Committed by Commit bot

setNeedsPaintPropertyUpdate on FrameView contents size change

This ensures that the bounds of scroll is updated.

BUG=645667

Review-Url: https://codereview.chromium.org/2545093002
Cr-Commit-Position: refs/heads/master@{#436077}
parent c86587bb
...@@ -636,6 +636,10 @@ void FrameView::setContentsSize(const IntSize& size) { ...@@ -636,6 +636,10 @@ void FrameView::setContentsSize(const IntSize& size) {
updateScrollbars(); updateScrollbars();
ScrollableArea::contentsResized(); ScrollableArea::contentsResized();
if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() &&
!RuntimeEnabledFeatures::rootLayerScrollingEnabled())
setNeedsPaintPropertyUpdate();
Page* page = frame().page(); Page* page = frame().page();
if (!page) if (!page)
return; return;
......
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