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

Unified Diff: Source/bindings/v8/ScriptEventListener.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/bindings/v8/ScriptProfiler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptEventListener.cpp
diff --git a/Source/bindings/v8/ScriptEventListener.cpp b/Source/bindings/v8/ScriptEventListener.cpp
index 2af6e173bb08106486b99e69ff9024fdfca20ca0..518196fc26d2039275393ebe92652bc712687bc0 100644
--- a/Source/bindings/v8/ScriptEventListener.cpp
+++ b/Source/bindings/v8/ScriptEventListener.cpp
@@ -55,7 +55,7 @@ PassRefPtr<V8LazyEventListener> createAttributeEventListener(Node* node, const Q
{
ASSERT(node);
if (value.isNull())
- return 0;
+ return nullptr;
// FIXME: Very strange: we initialize zero-based number with '1'.
TextPosition position(OrdinalNumber::fromZeroBasedInt(1), OrdinalNumber::first());
@@ -66,7 +66,7 @@ PassRefPtr<V8LazyEventListener> createAttributeEventListener(Node* node, const Q
isolate = toIsolate(frame);
ScriptController& scriptController = frame->script();
if (!scriptController.canExecuteScripts(AboutToExecuteScript))
- return 0;
+ return nullptr;
position = scriptController.eventHandlerPosition();
sourceURL = node->document().url().string();
} else {
@@ -79,14 +79,14 @@ PassRefPtr<V8LazyEventListener> createAttributeEventListener(Node* node, const Q
PassRefPtr<V8LazyEventListener> createAttributeEventListener(Frame* frame, const QualifiedName& name, const AtomicString& value)
{
if (!frame)
- return 0;
+ return nullptr;
if (value.isNull())
- return 0;
+ return nullptr;
ScriptController& scriptController = frame->script();
if (!scriptController.canExecuteScripts(AboutToExecuteScript))
- return 0;
+ return nullptr;
TextPosition position = scriptController.eventHandlerPosition();
String sourceURL = frame->document()->url().string();
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/bindings/v8/ScriptProfiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698