Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 3fae4b1f9eea86152c8e55f1467b406bd227cdeb..4884d90ac84c4aaded799d3cf75fce1855b06286 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2794,7 +2794,7 @@ EventTarget* Document::errorEventTarget() |
void Document::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack) |
{ |
- RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); |
+ RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); |
consoleMessage->setCallStack(callStack); |
addMessage(consoleMessage.release()); |
} |
@@ -3128,7 +3128,7 @@ void Document::processHttpEquivXFrameOptions(const AtomicString& content) |
// intent, we must navigate away from the possibly partially-rendered document to a location that |
// doesn't inherit the parent's SecurityOrigin. |
frame->navigationScheduler().scheduleLocationChange(this, SecurityOrigin::urlWithUniqueSecurityOrigin(), Referrer()); |
- RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, message); |
+ RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, message); |
consoleMessage->setRequestIdentifier(requestIdentifier); |
addMessage(consoleMessage.release()); |
} |
@@ -5005,7 +5005,7 @@ void Document::reportBlockedScriptExecutionToInspector(const String& directiveTe |
InspectorInstrumentation::scriptExecutionBlockedByCSP(this, directiveText); |
} |
-void Document::addMessage(PassRefPtr<ConsoleMessage> consoleMessage) |
+void Document::addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage> consoleMessage) |
{ |
if (!isContextThread()) { |
m_taskRunner->postTask(AddConsoleMessageTask::create(consoleMessage->source(), consoleMessage->level(), consoleMessage->message())); |