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

Unified Diff: Source/core/testing/Internals.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/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 738eddf2426929fc95e6de86375d3c7f6d292265..7c0138a1cca5584e72a9c800fed4e2d317f5ccf1 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -476,7 +476,7 @@ unsigned Internals::numberOfActiveAnimations() const
{
LocalFrame* contextFrame = frame();
Document* document = contextFrame->document();
- return document->timeline()->numberOfActiveAnimationsForTesting() + document->transitionTimeline()->numberOfActiveAnimationsForTesting();
+ return document->timeline().numberOfActiveAnimationsForTesting() + document->transitionTimeline().numberOfActiveAnimationsForTesting();
}
void Internals::pauseAnimations(double pauseTime, ExceptionState& exceptionState)
@@ -487,8 +487,8 @@ void Internals::pauseAnimations(double pauseTime, ExceptionState& exceptionState
}
frame()->view()->updateLayoutAndStyleForPainting();
- frame()->document()->timeline()->pauseAnimationsForTesting(pauseTime);
- frame()->document()->transitionTimeline()->pauseAnimationsForTesting(pauseTime);
+ frame()->document()->timeline().pauseAnimationsForTesting(pauseTime);
+ frame()->document()->transitionTimeline().pauseAnimationsForTesting(pauseTime);
}
bool Internals::hasShadowInsertionPoint(const Node* root, ExceptionState& exceptionState) const
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698