diff options
Diffstat (limited to 'Tools/DumpRenderTree/chromium/LayoutTestController.cpp')
| -rw-r--r-- | Tools/DumpRenderTree/chromium/LayoutTestController.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Tools/DumpRenderTree/chromium/LayoutTestController.cpp b/Tools/DumpRenderTree/chromium/LayoutTestController.cpp index d5c9019b8..046e1ec2d 100644 --- a/Tools/DumpRenderTree/chromium/LayoutTestController.cpp +++ b/Tools/DumpRenderTree/chromium/LayoutTestController.cpp @@ -169,7 +169,6 @@ LayoutTestController::LayoutTestController(TestShell* shell) bindMethod("numberOfPendingGeolocationPermissionRequests", &LayoutTestController:: numberOfPendingGeolocationPermissionRequests); bindMethod("objCIdentityIsEqual", &LayoutTestController::objCIdentityIsEqual); bindMethod("overridePreference", &LayoutTestController::overridePreference); - bindMethod("pageNumberForElementById", &LayoutTestController::pageNumberForElementById); bindMethod("pageProperty", &LayoutTestController::pageProperty); bindMethod("pageSizeAndMarginsInPixels", &LayoutTestController::pageSizeAndMarginsInPixels); bindMethod("pathToLocalResource", &LayoutTestController::pathToLocalResource); @@ -1722,24 +1721,6 @@ void LayoutTestController::setPrinting(const CppArgumentList& arguments, CppVari result->setNull(); } -void LayoutTestController::pageNumberForElementById(const CppArgumentList& arguments, CppVariant* result) -{ - result->setNull(); - int pageWidthInPixels = 0; - int pageHeightInPixels = 0; - if (!parsePageSizeParameters(arguments, 1, - &pageWidthInPixels, &pageHeightInPixels)) - return; - if (!arguments[0].isString()) - return; - WebFrame* frame = m_shell->webView()->mainFrame(); - if (!frame) - return; - result->set(frame->pageNumberForElementById(cppVariantToWebString(arguments[0]), - static_cast<float>(pageWidthInPixels), - static_cast<float>(pageHeightInPixels))); -} - void LayoutTestController::pageSizeAndMarginsInPixels(const CppArgumentList& arguments, CppVariant* result) { result->set(""); |
