Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp

Issue 1878943003: Remove RawPtr from bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
index 4fbea47fa612ff7506ff76b4f9da4225c581db76..58e0541d9320395ca0702f8b52fa3cd8d308e265 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
@@ -213,7 +213,7 @@ void V8LazyEventListener::fireErrorEvent(v8::Local<v8::Context> v8Context, Execu
if (v8Call(message->GetLineNumber(v8Context), lineNumber)
&& v8Call(message->GetStartColumn(v8Context), columnNumber))
++columnNumber;
- RawPtr<ErrorEvent> event = ErrorEvent::create(messageText, m_sourceURL, lineNumber, columnNumber, &world());
+ ErrorEvent* event = ErrorEvent::create(messageText, m_sourceURL, lineNumber, columnNumber, &world());
AccessControlStatus accessControlStatus = NotSharableCrossOrigin;
if (message->IsOpaque())
@@ -221,7 +221,7 @@ void V8LazyEventListener::fireErrorEvent(v8::Local<v8::Context> v8Context, Execu
else if (message->IsSharedCrossOrigin())
accessControlStatus = SharableCrossOrigin;
- executionContext->reportException(event.release(), 0, nullptr, accessControlStatus);
+ executionContext->reportException(event, 0, nullptr, accessControlStatus);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698