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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2417683002: Disable scroll anchoring when in printing mode (Closed)
Patch Set: Add comment Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 144707c24ad8cbf0b2f71577088c1a93e9fa319c..026898cac1892c4aee2353b4b497952fd76554a1 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -428,8 +428,7 @@ Document::Document(const DocumentInit& initializer,
m_importsController(initializer.importsController()),
m_contextFeatures(ContextFeatures::defaultSwitch()),
m_wellFormed(false),
- m_printing(false),
- m_wasPrinting(false),
+ m_printing(NotPrinting),
m_paginatedForScreen(false),
m_compatibilityMode(NoQuirksMode),
m_compatibilityModeLocked(false),
@@ -1936,8 +1935,6 @@ void Document::updateStyle() {
resolver.clearStyleSharingList();
- m_wasPrinting = m_printing;
-
DCHECK(!needsStyleRecalc());
DCHECK(!childNeedsStyleRecalc());
DCHECK(inStyleRecalc());
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698