| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 if (style.hasCurrentFilterAnimation()) | 74 if (style.hasCurrentFilterAnimation()) |
| 75 style.setIsRunningFilterAnimationOnCompositor(m_defaultStack.hasActiveAn
imationsOnCompositor(CSSPropertyWebkitFilter)); | 75 style.setIsRunningFilterAnimationOnCompositor(m_defaultStack.hasActiveAn
imationsOnCompositor(CSSPropertyWebkitFilter)); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void ActiveAnimations::restartAnimationOnCompositor() | 78 void ActiveAnimations::restartAnimationOnCompositor() |
| 79 { | 79 { |
| 80 for (const auto& entry : m_players) | 80 for (const auto& entry : m_players) |
| 81 entry.key->restartAnimationOnCompositor(); | 81 entry.key->restartAnimationOnCompositor(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void ActiveAnimations::trace(Visitor* visitor) | 84 DEFINE_TRACE(ActiveAnimations) |
| 85 { | 85 { |
| 86 #if ENABLE(OILPAN) | 86 #if ENABLE(OILPAN) |
| 87 visitor->trace(m_cssAnimations); | 87 visitor->trace(m_cssAnimations); |
| 88 visitor->trace(m_defaultStack); | 88 visitor->trace(m_defaultStack); |
| 89 visitor->trace(m_players); | 89 visitor->trace(m_players); |
| 90 #endif | 90 #endif |
| 91 } | 91 } |
| 92 | 92 |
| 93 const LayoutStyle* ActiveAnimations::baseLayoutStyle() const | 93 const LayoutStyle* ActiveAnimations::baseLayoutStyle() const |
| 94 { | 94 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 111 #endif | 111 #endif |
| 112 m_baseLayoutStyle = LayoutStyle::clone(*layoutStyle); | 112 m_baseLayoutStyle = LayoutStyle::clone(*layoutStyle); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void ActiveAnimations::clearBaseLayoutStyle() | 115 void ActiveAnimations::clearBaseLayoutStyle() |
| 116 { | 116 { |
| 117 m_baseLayoutStyle = nullptr; | 117 m_baseLayoutStyle = nullptr; |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |