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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp

Issue 1375833003: Chrome currently doesn't ignore transitions when using "@media print" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Space issues Created 5 years, 3 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 9569be47afe786ef7e81aefb6cbf7f2de367eb62..b38de39e7ebba95fce91d9d9fcb4235e929f60bc 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -543,6 +543,9 @@ void CSSAnimations::calculateTransitionUpdate(CSSAnimationUpdate& update, const
if (!animatingElement)
return;
+ if (animatingElement->document().printing() || animatingElement->document().wasPrinting())
+ return;
+
ElementAnimations* elementAnimations = animatingElement->elementAnimations();
const TransitionMap* activeTransitions = elementAnimations ? &elementAnimations->cssAnimations().m_transitions : nullptr;
const CSSTransitionData* transitionData = style.transitions();

Powered by Google App Engine
This is Rietveld 408576698