diff options
author | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-06 04:41:45 +0000 |
---|---|---|
committer | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-06 04:41:45 +0000 |
commit | 2bbfe306530ebcc8dc305b908e9910baa2407d35 (patch) | |
tree | 2058daa7d13f71861e33cd792a588ffe879669ee /webkit/glue/webkit_glue.cc | |
parent | 649e12c3f4178d0af6d22707d469eb09237dbe75 (diff) | |
download | chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.zip chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.tar.gz chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.tar.bz2 |
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
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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; |