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

Unified Diff: Source/core/testing/Internals.h

Issue 1304093006: Add a new API for testing animated images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase harder Created 5 years, 3 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/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.h
diff --git a/Source/core/testing/Internals.h b/Source/core/testing/Internals.h
index 476062e07479331ec428d018a98ed9b35adcab6e..c57b90d99d2447ce553a142781e7722149ab4e93 100644
--- a/Source/core/testing/Internals.h
+++ b/Source/core/testing/Internals.h
@@ -116,6 +116,11 @@ public:
// for testing whether animated images work properly.
void advanceTimeForImage(Element* image, double deltaTimeInSeconds, ExceptionState&);
+ // Advances an animated image. For BitmapImage (e.g., animated gifs) this
+ // will advance to the next frame. For SVGImage, this will trigger an
+ // animation update for CSS and advance the SMIL timeline by one frame.
+ void advanceImageAnimation(Element* image, ExceptionState&);
+
bool isValidContentSelect(Element* insertionPoint, ExceptionState&);
Node* treeScopeRootNode(Node*);
Node* parentTreeScope(Node*);
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698