Index: Source/web/WebDocument.cpp |
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp |
index c5eb8ddef4f752e0dab84d88110457680805c483..b2ff167724bf7979a28edb5da469041bcf1f1793 100644 |
--- a/Source/web/WebDocument.cpp |
+++ b/Source/web/WebDocument.cpp |
@@ -254,7 +254,11 @@ WebReferrerPolicy WebDocument::referrerPolicy() const |
WebElement WebDocument::createElement(const WebString& tagName) |
{ |
TrackExceptionState exceptionState; |
+#if ENABLE(OILPAN) |
haraken
2014/05/08 06:22:37
This can be removed once we make createElement ret
tkent
2014/05/08 07:39:30
Done.
|
+ WebElement element(unwrap<Document>()->createElement(tagName, exceptionState).get()); |
+#else |
WebElement element(unwrap<Document>()->createElement(tagName, exceptionState)); |
+#endif |
if (exceptionState.hadException()) |
return WebElement(); |
return element; |
@@ -301,18 +305,18 @@ v8::Handle<v8::Value> WebDocument::registerEmbedderCustomElement(const WebString |
return constructor.v8Value(); |
} |
-WebDocument::WebDocument(const PassRefPtr<Document>& elem) |
+WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem) |
: WebNode(elem) |
{ |
} |
-WebDocument& WebDocument::operator=(const PassRefPtr<Document>& elem) |
+WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem) |
{ |
m_private = elem; |
return *this; |
} |
-WebDocument::operator PassRefPtr<Document>() const |
+WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
{ |
return toDocument(m_private.get()); |
} |