WKBundlePageCopyRenderTreeExternalRepresentation so we don't have dangling
pointers and adhere to naming conventions.
Reviewed by Anders Carlsson.
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageCopyRenderTreeExternalRepresentation):
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
* mac/WebKit2.exp:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61876
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-06-25 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Anders Carlsson.
+
+ WKBundlePageRenderTreeExternalRepresentation really needs to be
+ WKBundlePageCopyRenderTreeExternalRepresentation so we don't have dangling
+ pointers and adhere to naming conventions.
+
+ * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
+ (WKBundlePageCopyRenderTreeExternalRepresentation):
+ * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
+ * mac/WebKit2.exp:
+
2010-06-24 Steve Falkenburg <sfalken@apple.com>
Windows build fix.
return toURLRef(toWK(pageRef)->mainFrameURL().impl());
}
-WKStringRef WKBundlePageRenderTreeExternalRepresentation(WKBundlePageRef pageRef)
+WKStringRef WKBundlePageCopyRenderTreeExternalRepresentation(WKBundlePageRef pageRef)
{
- return toRef(toWK(pageRef)->renderTreeExternalRepresentation().impl());
+ WebCore::StringImpl* string = toWK(pageRef)->renderTreeExternalRepresentation().impl();
+ string->ref();
+ return toRef(string);
}
extern "C" {
#endif
-WK_EXPORT WKStringRef WKBundlePageRenderTreeExternalRepresentation(WKBundlePageRef page);
+WK_EXPORT WKStringRef WKBundlePageCopyRenderTreeExternalRepresentation(WKBundlePageRef page);
#ifdef __cplusplus
}
.objc_class_name_WKView
+_WKBundlePageCopyRenderTreeExternalRepresentation
_WKBundlePageGetMainFrameURL
-_WKBundlePageRenderTreeExternalRepresentation
_WKBundlePageSetClient
_WKBundlePostMessage
_WKBundleSetClient