| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 DCHECK(!element->elementAnimations() || | 739 DCHECK(!element->elementAnimations() || |
| 740 !element->elementAnimations()->isAnimationStyleChange()); | 740 !element->elementAnimations()->isAnimationStyleChange()); |
| 741 } | 741 } |
| 742 | 742 |
| 743 void CSSAnimations::calculateTransitionUpdate(CSSAnimationUpdate& update, | 743 void CSSAnimations::calculateTransitionUpdate(CSSAnimationUpdate& update, |
| 744 const Element* animatingElement, | 744 const Element* animatingElement, |
| 745 const ComputedStyle& style) { | 745 const ComputedStyle& style) { |
| 746 if (!animatingElement) | 746 if (!animatingElement) |
| 747 return; | 747 return; |
| 748 | 748 |
| 749 if (animatingElement->document().printing() || | 749 if (animatingElement->document().finishingOrIsPrinting()) |
| 750 animatingElement->document().wasPrinting()) | |
| 751 return; | 750 return; |
| 752 | 751 |
| 753 ElementAnimations* elementAnimations = animatingElement->elementAnimations(); | 752 ElementAnimations* elementAnimations = animatingElement->elementAnimations(); |
| 754 const TransitionMap* activeTransitions = | 753 const TransitionMap* activeTransitions = |
| 755 elementAnimations ? &elementAnimations->cssAnimations().m_transitions | 754 elementAnimations ? &elementAnimations->cssAnimations().m_transitions |
| 756 : nullptr; | 755 : nullptr; |
| 757 const CSSTransitionData* transitionData = style.transitions(); | 756 const CSSTransitionData* transitionData = style.transitions(); |
| 758 | 757 |
| 759 const bool animationStyleRecalc = | 758 const bool animationStyleRecalc = |
| 760 elementAnimations && elementAnimations->isAnimationStyleChange(); | 759 elementAnimations && elementAnimations->isAnimationStyleChange(); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 return toShadowRoot(treeScope.rootNode()).host() == element; | 1083 return toShadowRoot(treeScope.rootNode()).host() == element; |
| 1085 } | 1084 } |
| 1086 | 1085 |
| 1087 DEFINE_TRACE(CSSAnimations) { | 1086 DEFINE_TRACE(CSSAnimations) { |
| 1088 visitor->trace(m_transitions); | 1087 visitor->trace(m_transitions); |
| 1089 visitor->trace(m_pendingUpdate); | 1088 visitor->trace(m_pendingUpdate); |
| 1090 visitor->trace(m_runningAnimations); | 1089 visitor->trace(m_runningAnimations); |
| 1091 } | 1090 } |
| 1092 | 1091 |
| 1093 } // namespace blink | 1092 } // namespace blink |
| OLD | NEW |