diff options
author | Steve Block <steveblock@google.com> | 2009-11-05 09:23:40 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-11-10 22:41:12 +0000 |
commit | cac0f67c402d107cdb10971b95719e2ff9c7c76b (patch) | |
tree | d182c7f87211c6f201a5f038e332336493ebdbe7 /WebKit/mac/Misc | |
parent | 4b2ef0f288e7c6c4602f621b7a0e9feed304b70e (diff) | |
download | external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.zip external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.tar.gz external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.tar.bz2 |
Merge webkit.org at r50258 : Initial merge by git.
Change-Id: I1a9e1dc4ed654b69174ad52a4f031a07240f37b0
Diffstat (limited to 'WebKit/mac/Misc')
-rw-r--r-- | WebKit/mac/Misc/WebCoreStatistics.h | 3 | ||||
-rw-r--r-- | WebKit/mac/Misc/WebCoreStatistics.mm | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/WebKit/mac/Misc/WebCoreStatistics.h b/WebKit/mac/Misc/WebCoreStatistics.h index d4370bf..7a189ae 100644 --- a/WebKit/mac/Misc/WebCoreStatistics.h +++ b/WebKit/mac/Misc/WebCoreStatistics.h @@ -30,6 +30,8 @@ #import <WebKit/WebFrame.h> +@class DOMElement; + @interface WebCoreStatistics : NSObject { } @@ -81,4 +83,5 @@ @interface WebFrame (WebKitDebug) - (NSString *)renderTreeAsExternalRepresentation; +- (NSString *)counterValueForElement:(DOMElement*)element; @end diff --git a/WebKit/mac/Misc/WebCoreStatistics.mm b/WebKit/mac/Misc/WebCoreStatistics.mm index 57b59a4..6bac46e 100644 --- a/WebKit/mac/Misc/WebCoreStatistics.mm +++ b/WebKit/mac/Misc/WebCoreStatistics.mm @@ -28,6 +28,7 @@ #import "WebCoreStatistics.h" +#import "DOMElementInternal.h" #import "WebCache.h" #import "WebFrameInternal.h" #import <runtime/JSLock.h> @@ -244,4 +245,9 @@ using namespace WebCore; return externalRepresentation(_private->coreFrame->contentRenderer()); } +- (NSString *)counterValueForElement:(DOMElement*)element +{ + return counterValueForElement(core(element)); +} + @end |