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

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

Issue 2585603002: [SPInvaldation] Update subtree paint properties when a layout subtree is inserted (Closed)
Patch Set: 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/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 759bc27278264e8e7bfed81eab7b2539a463d47f..cfdcbdfa9084dfcdbc36cb2ad9d0b5cbb057cb7d 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -591,8 +591,7 @@ void LocalFrame::setPrinting(bool printing,
if (LayoutView* layoutView = view()->layoutView()) {
layoutView->setPreferredLogicalWidthsDirty();
layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged);
- if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
- layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
+ layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
}
view()->layout();
view()->adjustViewSize();
@@ -606,7 +605,7 @@ void LocalFrame::setPrinting(bool printing,
}
if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
- view()->setShouldInvalidateAllPaintAndPaintProperties();
+ view()->layoutView()->setSubtreeNeedsPaintPropertyUpdate();
if (!printing)
document()->setPrinting(Document::NotPrinting);

Powered by Google App Engine
This is Rietveld 408576698