| 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 3b83f9284b89e7d5a525dd57a3ddcc42399abf42..c3fb53ee6d6d500658d5e146580013960f9607e8 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -80,7 +80,7 @@
|
| #include "core/page/scrolling/ScrollingCoordinator.h"
|
| #include "core/paint/FramePainter.h"
|
| #include "core/paint/PaintLayer.h"
|
| -#include "core/paint/PaintPropertyTreeBuilder.h"
|
| +#include "core/paint/PrePaintTreeWalk.h"
|
| #include "core/plugins/PluginView.h"
|
| #include "core/style/ComputedStyle.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| @@ -2402,7 +2402,7 @@ void FrameView::updateLifecycleToLayoutClean()
|
| void FrameView::scheduleVisualUpdateForPaintInvalidationIfNeeded()
|
| {
|
| LocalFrame* localFrameRoot = frame().localFrameRoot();
|
| - if (!localFrameRoot->view()->m_isUpdatingAllLifecyclePhases || lifecycle().state() >= DocumentLifecycle::PaintInvalidationClean) {
|
| + if (!localFrameRoot->view()->m_isUpdatingAllLifecyclePhases || lifecycle().state() >= DocumentLifecycle::PrePaintClean) {
|
| // Schedule visual update to process the paint invalidation in the next cycle.
|
| localFrameRoot->scheduleVisualUpdateUnlessThrottled();
|
| }
|
| @@ -2481,9 +2481,9 @@ void FrameView::updatePaintProperties()
|
|
|
| ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
|
|
| - forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle().advanceTo(DocumentLifecycle::InUpdatePaintProperties); });
|
| - PaintPropertyTreeBuilder().buildPropertyTrees(*this);
|
| - forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle().advanceTo(DocumentLifecycle::UpdatePaintPropertiesClean); });
|
| + forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); });
|
| + PrePaintTreeWalk().walk(*this);
|
| + forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle().advanceTo(DocumentLifecycle::PrePaintClean); });
|
| }
|
|
|
| void FrameView::synchronizedPaint()
|
|
|