summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl')
-rw-r--r--chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl21
1 files changed, 11 insertions, 10 deletions
diff --git a/chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl b/chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl
index 0f8a6bcac59..60b66cc1d80 100644
--- a/chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl
+++ b/chromium/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl
@@ -1,9 +1,10 @@
-{% from "macros.tmpl" import license -%}
+{% from "macros.tmpl" import license %}
{{ license() }}
#ifndef {{namespace}}ElementFactory_h
#define {{namespace}}ElementFactory_h
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
@@ -11,19 +12,19 @@ namespace WebCore {
class Document;
class {{namespace}}Element;
-
-{%- if namespace == 'HTML' %}
+{% if namespace == 'HTML' %}
class HTMLFormElement;
-{%- endif %}
+{% endif %}
class {{namespace}}ElementFactory {
public:
- static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const AtomicString& localName,
- Document&,
- {%- if namespace == 'HTML' %}
- HTMLFormElement* = 0,
- {%- endif %}
- bool createdByParser = true);
+ static PassRefPtrWillBeRawPtr<{{namespace}}Element> create{{namespace}}Element(
+ const AtomicString& localName,
+ Document&,
+ {% if namespace == 'HTML' %}
+ HTMLFormElement* = 0,
+ {% endif %}
+ bool createdByParser = true);
};
} // WebCore