From 2bbfe306530ebcc8dc305b908e9910baa2407d35 Mon Sep 17 00:00:00 2001 From: "hamaji@chromium.org" Date: Sat, 6 Feb 2010 04:41:45 +0000 Subject: Add pageNumberForElementById for chromium. The WebKit side change was done in https://bugs.webkit.org/show_bug.cgi?id=34471 BUG=34219 TEST=layout tests Review URL: http://codereview.chromium.org/574002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38298 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webkit_glue.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'webkit/glue/webkit_glue.cc') diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index c24dfac..d5dee65 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -133,6 +133,15 @@ bool CounterValueForElementById(WebFrame* web_frame, const std::string& id, return true; } +int PageNumberForElementById(WebFrame* web_frame, + const std::string& id, + float page_width_in_pixels, + float page_height_in_pixels) { + return web_frame->pageNumberForElementById(WebString::fromUTF8(id), + page_width_in_pixels, + page_height_in_pixels); +} + std::wstring DumpFrameScrollPosition(WebFrame* web_frame, bool recursive) { gfx::Size offset = web_frame->scrollOffset(); std::wstring result; -- cgit v1.1