diff options
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r-- | webkit/glue/dom_operations.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc index 6fc79b9..d972263 100644 --- a/webkit/glue/dom_operations.cc +++ b/webkit/glue/dom_operations.cc @@ -860,4 +860,17 @@ bool ElementDoesAutoCompleteForElementWithId(WebView* view, return input_element->autoComplete(); } +int NumberOfActiveAnimations(WebView* view) { + WebFrame* web_frame = view->GetMainFrame(); + if (!web_frame) + return -1; + + WebCore::Frame* frame = static_cast<WebFrameImpl*>(web_frame)->frame(); + WebCore::AnimationController* controller = frame->animation(); + if (!controller) + return -1; + + return controller->numberOfActiveAnimations(); +} + } // webkit_glue |