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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2599573002: [SPInvalidation] Update paint properties when full screen status changes (Closed)
Patch Set: [SPInvalidation] Update paint properties when full screen status changes Created 4 years 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
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 9ea6758d5cbf4e847ae86cf40f4c44fccd4e7b08..f2c3c61e6c76b046d1c5e1b7eda4ee2a7b799425 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -655,10 +655,6 @@ void FrameView::setContentsSize(const IntSize& size) {
updateScrollbars();
ScrollableArea::contentsResized();
- if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() &&
- !RuntimeEnabledFeatures::rootLayerScrollingEnabled())
- setNeedsPaintPropertyUpdate();
-
Page* page = frame().page();
if (!page)
return;
@@ -4017,6 +4013,9 @@ void FrameView::updateScrollbars() {
if (RuntimeEnabledFeatures::rootLayerScrollingEnabled())
return;
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
+ setNeedsPaintPropertyUpdate();
Xianzhu 2016/12/21 23:46:34 This is moved here because updateScrollbars() is c
+
// Avoid drawing two sets of scrollbars when visual viewport is enabled.
if (visualViewportSuppliesScrollbars()) {
m_scrollbarManager.setHasHorizontalScrollbar(false);

Powered by Google App Engine
This is Rietveld 408576698