diff options
author | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 02:33:31 +0000 |
---|---|---|
committer | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 02:33:31 +0000 |
commit | d98d47f08a0fe13528a58d1c70b42df3fcbb98bf (patch) | |
tree | 00cff4b213631129013d11ebda3aeb382c484b64 /webkit/glue/webkit_glue.h | |
parent | 75388dacd2169d6e4719f6074f34959f20aeb5c1 (diff) | |
download | chromium_src-d98d47f08a0fe13528a58d1c70b42df3fcbb98bf.zip chromium_src-d98d47f08a0fe13528a58d1c70b42df3fcbb98bf.tar.gz chromium_src-d98d47f08a0fe13528a58d1c70b42df3fcbb98bf.tar.bz2 |
Add layoutTestController.counterValueForElementById
Now we can test CSS counters with dumpAsText().
The corresponding upstream bug:
https://bugs.webkit.org/show_bug.cgi?id=30555
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/338056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.h')
-rw-r--r-- | webkit/glue/webkit_glue.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index d4d506a..ba5d405 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -58,6 +58,12 @@ std::wstring DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); // Returns the renderer's description of its tree (its externalRepresentation). std::wstring DumpRenderer(WebKit::WebFrame* web_frame); +// Fill the value of counter in the element specified by the id into +// counter_value. Return false when the specified id doesn't exist. +bool CounterValueForElementById(WebKit::WebFrame* web_frame, + const std::string& id, + std::wstring* counter_value); + // Returns a dump of the scroll position of the webframe. std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); |