| OLD | NEW |
| 1 {% from "macros.tmpl" import license -%} | 1 {% from "macros.tmpl" import license -%} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #ifndef {{namespace}}ElementFactory_h | 4 #ifndef {{namespace}}ElementFactory_h |
| 5 #define {{namespace}}ElementFactory_h | 5 #define {{namespace}}ElementFactory_h |
| 6 | 6 |
| 7 #include "wtf/Forward.h" | 7 #include "wtf/Forward.h" |
| 8 #include "wtf/PassRefPtr.h" | 8 #include "wtf/PassRefPtr.h" |
| 9 | 9 |
| 10 namespace WebCore { | 10 namespace WebCore { |
| 11 | 11 |
| 12 class Element; | 12 class Element; |
| 13 class Document; | 13 class Document; |
| 14 class QualifiedName; | 14 class QualifiedName; |
| 15 |
| 16 {%- if namespace == 'HTML' %} |
| 15 class HTMLFormElement; | 17 class HTMLFormElement; |
| 18 {%- endif %} |
| 16 | 19 |
| 17 class {{namespace}}Element; | 20 class {{namespace}}Element; |
| 18 | 21 |
| 19 class {{namespace}}ElementFactory { | 22 class {{namespace}}ElementFactory { |
| 20 public: | 23 public: |
| 21 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Qua
lifiedName&, Document*, HTMLFormElement* = 0, bool createdByParser = true); | 24 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Qua
lifiedName&, |
| 25 Document*
, |
| 26 {%- if na
mespace == 'HTML' %} |
| 27 HTMLFormE
lement* = 0, |
| 28 {%- endif
%} |
| 29 bool crea
tedByParser = true); |
| 22 }; | 30 }; |
| 23 | 31 |
| 24 } // WebCore | 32 } // WebCore |
| 25 | 33 |
| 26 #endif | 34 #endif |
| OLD | NEW |