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

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

Issue 2599573002: [SPInvalidation] Update paint properties when full screen status changes (Closed)
Patch Set: Use local variable 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+
// Avoid drawing two sets of scrollbars when visual viewport is enabled.
if (visualViewportSuppliesScrollbars()) {
m_scrollbarManager.setHasHorizontalScrollbar(false);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698