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

Unified Diff: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h

Issue 1909033003: Add FrameView::updateAllLifecyclePhasesExceptPaint and use it in a few cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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/paint/PaintControllerPaintTest.h
diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h
index b0243e8124b67d2bb95dc43cc2857a0f1929e03f..83a1cf404b1b81b9adcd1a1aff6a324b8e0ed66b 100644
--- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h
+++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h
@@ -41,23 +41,6 @@ protected:
GraphicsLayer::setDrawDebugRedFillForTesting(true);
}
- // Expose some document lifecycle steps for checking new display items before commiting.
- void updateLifecyclePhasesBeforePaint()
- {
- // This doesn't do all steps that FrameView does, but is enough for current tests.
- FrameView* frameView = document().view();
- frameView->updateLifecyclePhasesInternal(FrameView::OnlyUpToCompositingCleanPlusScrolling);
- frameView->invalidateTreeIfNeededRecursive();
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
- document().view()->updatePaintProperties();
- }
-
- void updateLifecyclePhasesToPaintClean()
- {
- updateLifecyclePhasesBeforePaint();
- document().view()->synchronizedPaint();
- }
-
bool paintWithoutCommit(const IntRect* interestRect = nullptr)
{
// Only root graphics layer is supported.
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698