| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 15359a4fb8625690534dc216358b3b89c4b013b6..5ce201b0e0f4c9c18f095bb66a1dd1fc18419897 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -1531,7 +1531,8 @@ void Document::scheduleLayoutTreeUpdate()
|
| ASSERT(shouldScheduleLayoutTreeUpdate());
|
| ASSERT(needsLayoutTreeUpdate());
|
|
|
| - page()->animator().scheduleVisualUpdate();
|
| + if (!view() || !view()->shouldThrottleRenderingPipeline())
|
| + page()->animator().scheduleVisualUpdate();
|
| m_lifecycle.ensureStateAtMost(DocumentLifecycle::VisualUpdatePending);
|
|
|
| TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ScheduleStyleRecalculation", TRACE_EVENT_SCOPE_THREAD, "data", InspectorRecalculateStylesEvent::data(frame()));
|
| @@ -1788,6 +1789,9 @@ void Document::updateLayoutTree(StyleRecalcChange change)
|
|
|
| void Document::updateStyle(StyleRecalcChange change)
|
| {
|
| + if (view() && view()->shouldThrottleStyleLayoutAndCompositingUpdates())
|
| + return;
|
| +
|
| TRACE_EVENT_BEGIN0("blink,blink_style", "Document::updateStyle");
|
| unsigned initialResolverAccessCount = styleEngine().resolverAccessCount();
|
|
|
|
|