diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 17:25:49 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 17:25:49 +0000 |
commit | 0b695059cdb06baaf7c1eb75ee9dda4341dde4ed (patch) | |
tree | 31a941771a9bd2a75e2bece2e373e55343ef88fb /webkit | |
parent | 3d805c350c9dc431d71e9156fbbff0b330be4717 (diff) | |
download | chromium_src-0b695059cdb06baaf7c1eb75ee9dda4341dde4ed.zip chromium_src-0b695059cdb06baaf7c1eb75ee9dda4341dde4ed.tar.gz chromium_src-0b695059cdb06baaf7c1eb75ee9dda4341dde4ed.tar.bz2 |
Implement layoutTestController.sampleSVGAnimationForElementAtTime
in test_shell. This is the test_shell version of
http://trac.webkit.org/changeset/68216
This depends on a DEPS roll up to r68216.
BUG=39904
Review URL: http://codereview.chromium.org/3479011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 14 | ||||
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.h | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 50ec183..12ef6d9 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -166,6 +166,7 @@ LayoutTestController::LayoutTestController(TestShell* shell) : BindMethod("dumpSelectionRect", &LayoutTestController::dumpSelectionRect); BindMethod("grantDesktopNotificationPermission", &LayoutTestController::grantDesktopNotificationPermission); BindMethod("setDomainRelaxationForbiddenForURLScheme", &LayoutTestController::setDomainRelaxationForbiddenForURLScheme); + BindMethod("sampleSVGAnimationForElementAtTime", &LayoutTestController::sampleSVGAnimationForElementAtTime); // The following are stubs. BindMethod("dumpAsWebArchive", &LayoutTestController::dumpAsWebArchive); @@ -977,6 +978,19 @@ void LayoutTestController::setDomainRelaxationForbiddenForURLScheme( CppVariantToBool(args[0]), WebString::fromUTF8(args[1].ToString())); } +void LayoutTestController::sampleSVGAnimationForElementAtTime( + const CppArgumentList& args, CppVariant* result) { + if (args.size() != 3) { + result->SetNull(); + return; + } + bool success = shell_->webView()->mainFrame()->pauseSVGAnimation( + WebString::fromUTF8(args[0].ToString()), + args[1].ToDouble(), + WebString::fromUTF8(args[2].ToString())); + result->Set(success); +} + // // Unimplemented stubs // diff --git a/webkit/tools/test_shell/layout_test_controller.h b/webkit/tools/test_shell/layout_test_controller.h index 3b2c60d..29434c1 100644 --- a/webkit/tools/test_shell/layout_test_controller.h +++ b/webkit/tools/test_shell/layout_test_controller.h @@ -202,6 +202,8 @@ class LayoutTestController : public CppBoundClass { void setDomainRelaxationForbiddenForURLScheme( const CppArgumentList& args, CppVariant* result); + void sampleSVGAnimationForElementAtTime(const CppArgumentList& args, + CppVariant* result); void setEditingBehavior(const CppArgumentList&, CppVariant*); // The following are only stubs. TODO(pamg): Implement any of these that |