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

Unified Diff: Source/core/animation/DocumentAnimations.cpp

Issue 176903004: Have Document::timeline() / Document::transitionTimeline() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/core/animation/DocumentAnimation.h ('k') | Source/core/animation/DocumentTimelineTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentAnimations.cpp
diff --git a/Source/core/animation/DocumentAnimations.cpp b/Source/core/animation/DocumentAnimations.cpp
index 8ff672369032134c29455775c3bf0aa37d907a58..8bdff82bb1f089f15688d8fccac851b995005fd0 100644
--- a/Source/core/animation/DocumentAnimations.cpp
+++ b/Source/core/animation/DocumentAnimations.cpp
@@ -48,22 +48,22 @@ namespace {
void updateAnimationTiming(Document& document)
{
- document.timeline()->serviceAnimations();
- document.transitionTimeline()->serviceAnimations();
+ document.timeline().serviceAnimations();
+ document.transitionTimeline().serviceAnimations();
}
} // namespace
void DocumentAnimations::dispatchAnimationEvents(Document& document)
{
- document.timeline()->dispatchEvents();
- document.transitionTimeline()->dispatchEvents();
+ document.timeline().dispatchEvents();
+ document.transitionTimeline().dispatchEvents();
}
void DocumentAnimations::dispatchAnimationEventsAsync(Document& document)
{
- document.timeline()->dispatchEventsAsync();
- document.transitionTimeline()->dispatchEventsAsync();
+ document.timeline().dispatchEventsAsync();
+ document.transitionTimeline().dispatchEventsAsync();
}
void DocumentAnimations::updateAnimationTimingForAnimationFrame(Document& document, double monotonicAnimationStartTime)
@@ -77,7 +77,7 @@ void DocumentAnimations::updateAnimationTimingForGetComputedStyle(Node& node, CS
if (!node.isElementNode())
return;
const Element& element = toElement(node);
- if (element.document().timeline()->hasOutdatedPlayer()) {
+ if (element.document().timeline().hasOutdatedPlayer()) {
updateAnimationTiming(element.document());
return;
}
« no previous file with comments | « Source/core/animation/DocumentAnimation.h ('k') | Source/core/animation/DocumentTimelineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698