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

Unified Diff: webkit/glue/dom_operations.cc

Issue 12209082: Remove dead code related to WebAnimationController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « webkit/glue/dom_operations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/dom_operations.cc
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index ed4c85e6a8d614e0373c5bba6e889de981b3022f..c50d0b78ebb5c452bc62e18aabc99627a63a89f7 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -11,7 +11,6 @@
#include "base/string_util.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebAnimationController.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
@@ -21,7 +20,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
-using WebKit::WebAnimationController;
using WebKit::WebDocument;
using WebKit::WebElement;
using WebKit::WebFrame;
@@ -239,48 +237,6 @@ bool GetAllSavableResourceLinksForCurrentPage(WebView* view,
return true;
}
-bool PauseAnimationAtTimeOnElementWithId(WebView* view,
- const std::string& animation_name,
- double time,
- const std::string& element_id) {
- WebFrame* web_frame = view->mainFrame();
- if (!web_frame)
- return false;
-
- WebAnimationController* controller = web_frame->animationController();
- if (!controller)
- return false;
-
- WebElement element =
- web_frame->document().getElementById(WebString::fromUTF8(element_id));
- if (element.isNull())
- return false;
- return controller->pauseAnimationAtTime(element,
- WebString::fromUTF8(animation_name),
- time);
-}
-
-bool PauseTransitionAtTimeOnElementWithId(WebView* view,
- const std::string& property_name,
- double time,
- const std::string& element_id) {
- WebFrame* web_frame = view->mainFrame();
- if (!web_frame)
- return false;
-
- WebAnimationController* controller = web_frame->animationController();
- if (!controller)
- return false;
-
- WebElement element =
- web_frame->document().getElementById(WebString::fromUTF8(element_id));
- if (element.isNull())
- return false;
- return controller->pauseTransitionAtTime(element,
- WebString::fromUTF8(property_name),
- time);
-}
-
bool ElementDoesAutoCompleteForElementWithId(WebView* view,
const std::string& element_id) {
WebFrame* web_frame = view->mainFrame();
@@ -296,18 +252,6 @@ bool ElementDoesAutoCompleteForElementWithId(WebView* view,
return input_element.autoComplete();
}
-int NumberOfActiveAnimations(WebView* view) {
- WebFrame* web_frame = view->mainFrame();
- if (!web_frame)
- return -1;
-
- WebAnimationController* controller = web_frame->animationController();
- if (!controller)
- return -1;
-
- return controller->numberOfActiveAnimations();
-}
-
void GetMetaElementsWithAttribute(WebDocument* document,
const string16& attribute_name,
const string16& attribute_value,
« no previous file with comments | « webkit/glue/dom_operations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698