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

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

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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 33231299bd009c33ca327506b22f045d79a32783..3bbba3e938b83cad2fc92c3e52724d9934657f0f 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2383,6 +2383,11 @@ void FrameView::updateLifecycleToCompositingCleanPlusScrolling()
frame().localFrameRoot()->view()->updateLifecyclePhasesInternal(OnlyUpToCompositingCleanPlusScrolling);
}
+void FrameView::updateAllLifecyclePhasesExceptPaint()
+{
+ frame().localFrameRoot()->view()->updateLifecyclePhasesInternal(AllPhasesExceptPaint);
+}
+
void FrameView::updateLifecycleToLayoutClean()
{
frame().localFrameRoot()->view()->updateLifecyclePhasesInternal(OnlyUpToLayoutClean);
@@ -2433,7 +2438,7 @@ void FrameView::updateLifecyclePhasesInternal(LifeCycleUpdateOption phases)
ASSERT(lifecycle().state() >= DocumentLifecycle::CompositingClean);
- if (phases == AllPhases) {
+ if (phases == AllPhases || phases == AllPhasesExceptPaint) {
invalidateTreeIfNeededRecursive();
if (view.compositor()->inCompositingMode())
@@ -2443,10 +2448,12 @@ void FrameView::updateLifecyclePhasesInternal(LifeCycleUpdateOption phases)
}
}
- if (phases == AllPhases) {
+ if (phases == AllPhases || phases == AllPhasesExceptPaint) {
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
updatePaintProperties();
+ }
+ if (phases == AllPhases) {
if (!m_frame->document()->printing())
synchronizedPaint();
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698