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

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

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 9f1814df7e90ec70cf588e8aea50ca5a397da5c2..63728fe7f387f2ae67179775f55c264fd2678f2b 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 PassRefPtrWillBeRawPtr<{{namespace}}Element> (*ConstructorFunction)(
+typedef RawPtr<{{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 PassRefPtrWillBeRawPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
+static RawPtr<{{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);
}
-PassRefPtrWillBeRawPtr<{{namespace}}Element> {{namespace}}ElementFactory::create{{namespace}}Element(
+RawPtr<{{namespace}}Element> {{namespace}}ElementFactory::create{{namespace}}Element(
const AtomicString& localName,
Document& document,
{% if namespace == 'HTML' %}
@@ -87,7 +87,7 @@ PassRefPtrWillBeRawPtr<{{namespace}}Element> {{namespace}}ElementFactory::create
return function(document, {% if namespace == 'HTML' %}formElement, {% endif %}createdByParser);
if (document.registrationContext() && CustomElement::isValidName(localName)) {
- RefPtrWillBeRawPtr<Element> element = document.registrationContext()->createCustomTagElement(document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI));
+ RawPtr<Element> element = document.registrationContext()->createCustomTagElement(document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI));
ASSERT_WITH_SECURITY_IMPLICATION(element->is{{namespace}}Element());
return static_pointer_cast<{{namespace}}Element>(element.release());
}

Powered by Google App Engine
This is Rietveld 408576698