Index: Source/core/dom/DOMException.cpp |
diff --git a/Source/core/dom/DOMException.cpp b/Source/core/dom/DOMException.cpp |
index b83bc848cec2c05b9ca6416fd73f2ba8314ec750..a669c049c184f89e9801b026f52eb520f7e8351a 100644 |
--- a/Source/core/dom/DOMException.cpp |
+++ b/Source/core/dom/DOMException.cpp |
@@ -98,14 +98,14 @@ DOMException::DOMException(unsigned short code, const String& name, const String |
m_unsanitizedMessage = unsanitizedMessage; |
} |
-PassRefPtrWillBeRawPtr<DOMException> DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage) |
+DOMException* DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage) |
{ |
const CoreException* entry = getErrorEntry(ec); |
ASSERT(entry); |
- return adoptRefWillBeNoop(new DOMException(entry->code, |
+ return new DOMException(entry->code, |
entry->name ? entry->name : "Error", |
sanitizedMessage.isNull() ? String(entry->message) : sanitizedMessage, |
- unsanitizedMessage)); |
+ unsanitizedMessage); |
} |
String DOMException::toString() const |