| 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 99ba96c6edf07a8c0ce6eaced95d3ddc54de6035..f0573887629fc669ea47dfd44cdb3d1389c40f38 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -385,6 +385,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
|
| , m_contextFeatures(ContextFeatures::defaultSwitch())
|
| , m_wellFormed(false)
|
| , m_printing(false)
|
| + , m_wasPrinting(false)
|
| , m_paginatedForScreen(false)
|
| , m_compatibilityMode(NoQuirksMode)
|
| , m_compatibilityModeLocked(false)
|
| @@ -1835,6 +1836,8 @@ void Document::updateStyle(StyleRecalcChange change)
|
| styleEngine().resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet());
|
| resolver.clearStyleSharingList();
|
|
|
| + m_wasPrinting = m_printing;
|
| +
|
| ASSERT(!needsStyleRecalc());
|
| ASSERT(!childNeedsStyleRecalc());
|
| ASSERT(inStyleRecalc());
|
|
|