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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 1883663005: Remove remaining binding layer RawPtr<>s. (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/build/scripts/templates/ElementFactory.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
index fea1904e52160deca45ffd08e7b8fca59e3f4949..c6cafb9c9c777d1fa01c233293a846271708b142 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
@@ -21,7 +21,7 @@ namespace blink {
using namespace {{namespace}}Names;
-typedef RawPtr<{{namespace}}Element> (*ConstructorFunction)(
+typedef {{namespace}}Element* (*ConstructorFunction)(
Document&,
{% if namespace == 'HTML' %}
HTMLFormElement*,
@@ -33,7 +33,7 @@ typedef HashMap<AtomicString, ConstructorFunction> FunctionMap;
static FunctionMap* g_constructors = 0;
{% for tag in tags|sort if not tag.noConstructor %}
-static RawPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
+static {{namespace}}Element* {{tag|symbol}}Constructor(
Document& document,
{% if namespace == 'HTML' %}
HTMLFormElement* formElement,
@@ -73,7 +73,7 @@ static void create{{namespace}}FunctionMap()
g_constructors->set(data[i].tag.localName(), data[i].func);
}
-RawPtr<{{namespace}}Element> {{namespace}}ElementFactory::create{{namespace}}Element(
+{{namespace}}Element* {{namespace}}ElementFactory::create{{namespace}}Element(
const AtomicString& localName,
Document& document,
{% if namespace == 'HTML' %}

Powered by Google App Engine
This is Rietveld 408576698