| 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();
|
|
|
|
|