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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp

Issue 2361733004: Adding @keyframes rules only affects TreeScope plus host. (Closed)
Patch Set: Moved scope check to CSSAnimations 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 unified diff | Download patch
OLDNEW
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 for (const auto& animation : m_animations) { 324 for (const auto& animation : m_animations) {
325 animation->setCompositorPending(sourceChanged); 325 animation->setCompositorPending(sourceChanged);
326 } 326 }
327 } 327 }
328 328
329 double AnimationTimeline::playbackRate() const 329 double AnimationTimeline::playbackRate() const
330 { 330 {
331 return m_playbackRate; 331 return m_playbackRate;
332 } 332 }
333 333
334 void AnimationTimeline::invalidateKeyframeEffects() 334 void AnimationTimeline::invalidateKeyframeEffects(const TreeScope& treeScope)
335 { 335 {
336 for (const auto& animation : m_animations) 336 for (const auto& animation : m_animations)
337 animation->invalidateKeyframeEffect(); 337 animation->invalidateKeyframeEffect(treeScope);
338 } 338 }
339 339
340 DEFINE_TRACE(AnimationTimeline) 340 DEFINE_TRACE(AnimationTimeline)
341 { 341 {
342 visitor->trace(m_document); 342 visitor->trace(m_document);
343 visitor->trace(m_timing); 343 visitor->trace(m_timing);
344 visitor->trace(m_animationsNeedingUpdate); 344 visitor->trace(m_animationsNeedingUpdate);
345 visitor->trace(m_animations); 345 visitor->trace(m_animations);
346 } 346 }
347 347
348 } // namespace blink 348 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698