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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.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
Index: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
index 7697301150b78d96daac2c031af693801c388080..e2ad788cadaae075a5d8882b95495bb50ec3b9de 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -746,8 +746,7 @@ void CSSAnimations::calculateTransitionUpdate(CSSAnimationUpdate& update,
if (!animatingElement)
return;
- if (animatingElement->document().printing() ||
- animatingElement->document().wasPrinting())
+ if (animatingElement->document().finishingOrIsPrinting())
return;
ElementAnimations* elementAnimations = animatingElement->elementAnimations();
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698