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.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webkit/glue/webkit_glue.h') diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index 026b47f..2ab408a 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -64,6 +64,12 @@ bool CounterValueForElementById(WebKit::WebFrame* web_frame, const std::string& id, std::wstring* counter_value); +// Returns the number of page where the specified element will be put. +int PageNumberForElementById(WebKit::WebFrame* web_frame, + const std::string& id, + float page_width_in_pixels, + float page_height_in_pixels); + // Returns a dump of the scroll position of the webframe. std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); -- cgit v1.1