summaryrefslogtreecommitdiffstats
path: root/WebCore/wml
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-09-08 12:18:00 +0100
committerKristian Monsen <kristianm@google.com>2010-09-11 12:08:58 +0100
commit5ddde30071f639962dd557c453f2ad01f8f0fd00 (patch)
tree775803c4ab35af50aa5f5472cd1fb95fe9d5152d /WebCore/wml
parent3e63d9b33b753ca86d0765d1b3d711114ba9e34f (diff)
downloadexternal_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.zip
external_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.tar.gz
external_webkit-5ddde30071f639962dd557c453f2ad01f8f0fd00.tar.bz2
Merge WebKit at r66666 : Initial merge by git.
Change-Id: I57dedeb49859adc9c539e760f0e749768c66626f
Diffstat (limited to 'WebCore/wml')
-rw-r--r--WebCore/wml/WMLAElement.cpp5
-rw-r--r--WebCore/wml/WMLAElement.h2
-rw-r--r--WebCore/wml/WMLAccessElement.cpp5
-rw-r--r--WebCore/wml/WMLAccessElement.h2
-rw-r--r--WebCore/wml/WMLAnchorElement.cpp5
-rw-r--r--WebCore/wml/WMLAnchorElement.h2
-rw-r--r--WebCore/wml/WMLBRElement.cpp5
-rw-r--r--WebCore/wml/WMLBRElement.h2
-rw-r--r--WebCore/wml/WMLCardElement.cpp5
-rw-r--r--WebCore/wml/WMLCardElement.h2
-rw-r--r--WebCore/wml/WMLDoElement.cpp5
-rw-r--r--WebCore/wml/WMLDoElement.h2
-rw-r--r--WebCore/wml/WMLDocument.h2
-rw-r--r--WebCore/wml/WMLElement.cpp4
-rw-r--r--WebCore/wml/WMLFieldSetElement.cpp5
-rw-r--r--WebCore/wml/WMLFieldSetElement.h2
-rw-r--r--WebCore/wml/WMLFormControlElement.cpp5
-rw-r--r--WebCore/wml/WMLGoElement.cpp5
-rw-r--r--WebCore/wml/WMLGoElement.h2
-rw-r--r--WebCore/wml/WMLImageElement.cpp9
-rw-r--r--WebCore/wml/WMLImageElement.h2
-rw-r--r--WebCore/wml/WMLInputElement.cpp5
-rw-r--r--WebCore/wml/WMLInputElement.h2
-rw-r--r--WebCore/wml/WMLInsertedLegendElement.cpp5
-rw-r--r--WebCore/wml/WMLInsertedLegendElement.h2
-rw-r--r--WebCore/wml/WMLIntrinsicEvent.cpp5
-rw-r--r--WebCore/wml/WMLMetaElement.cpp5
-rw-r--r--WebCore/wml/WMLMetaElement.h2
-rw-r--r--WebCore/wml/WMLNoopElement.cpp5
-rw-r--r--WebCore/wml/WMLNoopElement.h2
-rw-r--r--WebCore/wml/WMLOnEventElement.cpp5
-rw-r--r--WebCore/wml/WMLOnEventElement.h2
-rw-r--r--WebCore/wml/WMLOptGroupElement.cpp5
-rw-r--r--WebCore/wml/WMLOptGroupElement.h2
-rw-r--r--WebCore/wml/WMLOptionElement.cpp5
-rw-r--r--WebCore/wml/WMLOptionElement.h2
-rw-r--r--WebCore/wml/WMLPElement.cpp5
-rw-r--r--WebCore/wml/WMLPElement.h2
-rw-r--r--WebCore/wml/WMLPostfieldElement.cpp5
-rw-r--r--WebCore/wml/WMLPostfieldElement.h2
-rw-r--r--WebCore/wml/WMLPrevElement.cpp5
-rw-r--r--WebCore/wml/WMLPrevElement.h2
-rw-r--r--WebCore/wml/WMLRefreshElement.cpp5
-rw-r--r--WebCore/wml/WMLRefreshElement.h2
-rw-r--r--WebCore/wml/WMLSelectElement.cpp5
-rw-r--r--WebCore/wml/WMLSelectElement.h2
-rw-r--r--WebCore/wml/WMLSetvarElement.cpp5
-rw-r--r--WebCore/wml/WMLSetvarElement.h2
-rw-r--r--WebCore/wml/WMLTableElement.cpp5
-rw-r--r--WebCore/wml/WMLTableElement.h2
-rw-r--r--WebCore/wml/WMLTagNames.in50
-rw-r--r--WebCore/wml/WMLTaskElement.cpp5
-rw-r--r--WebCore/wml/WMLTaskElement.h2
-rw-r--r--WebCore/wml/WMLTemplateElement.cpp5
-rw-r--r--WebCore/wml/WMLTemplateElement.h2
-rw-r--r--WebCore/wml/WMLTimerElement.cpp5
-rw-r--r--WebCore/wml/WMLTimerElement.h2
57 files changed, 223 insertions, 29 deletions
diff --git a/WebCore/wml/WMLAElement.cpp b/WebCore/wml/WMLAElement.cpp
index 99e30e9..4d1bf95 100644
--- a/WebCore/wml/WMLAElement.cpp
+++ b/WebCore/wml/WMLAElement.cpp
@@ -51,6 +51,11 @@ WMLAElement::WMLAElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLAElement> WMLAElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLAElement(tagName, document));
+}
+
void WMLAElement::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == HTMLNames::hrefAttr) {
diff --git a/WebCore/wml/WMLAElement.h b/WebCore/wml/WMLAElement.h
index b21ebb6..9dcda6b 100644
--- a/WebCore/wml/WMLAElement.h
+++ b/WebCore/wml/WMLAElement.h
@@ -33,6 +33,8 @@ namespace WebCore {
class WMLAElement : public WMLElement {
public:
+ static PassRefPtr<WMLAElement> create(const QualifiedName& tagName, Document*);
+
WMLAElement(const QualifiedName& tagName, Document*);
virtual bool supportsFocus() const;
diff --git a/WebCore/wml/WMLAccessElement.cpp b/WebCore/wml/WMLAccessElement.cpp
index d6e6768..0e13106 100644
--- a/WebCore/wml/WMLAccessElement.cpp
+++ b/WebCore/wml/WMLAccessElement.cpp
@@ -37,6 +37,11 @@ WMLAccessElement::WMLAccessElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLAccessElement> WMLAccessElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLAccessElement(tagName, document));
+}
+
void WMLAccessElement::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == domainAttr) {
diff --git a/WebCore/wml/WMLAccessElement.h b/WebCore/wml/WMLAccessElement.h
index 83290e4..eb7436c 100644
--- a/WebCore/wml/WMLAccessElement.h
+++ b/WebCore/wml/WMLAccessElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLAccessElement : public WMLElement {
public:
+ static PassRefPtr<WMLAccessElement> create(const QualifiedName& tagName, Document*);
+
WMLAccessElement(const QualifiedName& tagName, Document*);
virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/wml/WMLAnchorElement.cpp b/WebCore/wml/WMLAnchorElement.cpp
index ac9c8f2..5b842bc 100644
--- a/WebCore/wml/WMLAnchorElement.cpp
+++ b/WebCore/wml/WMLAnchorElement.cpp
@@ -40,6 +40,11 @@ WMLAnchorElement::WMLAnchorElement(const QualifiedName& tagName, Document* doc)
setIsLink();
}
+PassRefPtr<WMLAnchorElement> WMLAnchorElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLAnchorElement(tagName, document));
+}
+
WMLAnchorElement::~WMLAnchorElement()
{
}
diff --git a/WebCore/wml/WMLAnchorElement.h b/WebCore/wml/WMLAnchorElement.h
index abc01c9..6cb36c8 100644
--- a/WebCore/wml/WMLAnchorElement.h
+++ b/WebCore/wml/WMLAnchorElement.h
@@ -30,6 +30,8 @@ class WMLTaskElement;
class WMLAnchorElement : public WMLAElement {
public:
+ static PassRefPtr<WMLAnchorElement> create(const QualifiedName& tagName, Document*);
+
WMLAnchorElement(const QualifiedName& tagName, Document*);
virtual ~WMLAnchorElement();
diff --git a/WebCore/wml/WMLBRElement.cpp b/WebCore/wml/WMLBRElement.cpp
index d24d2a2..51a2f57 100644
--- a/WebCore/wml/WMLBRElement.cpp
+++ b/WebCore/wml/WMLBRElement.cpp
@@ -40,6 +40,11 @@ WMLBRElement::WMLBRElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLBRElement> WMLBRElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLBRElement(tagName, document));
+}
+
bool WMLBRElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const
{
if (attrName == HTMLNames::clearAttr) {
diff --git a/WebCore/wml/WMLBRElement.h b/WebCore/wml/WMLBRElement.h
index 41c8776..fb12688 100644
--- a/WebCore/wml/WMLBRElement.h
+++ b/WebCore/wml/WMLBRElement.h
@@ -32,6 +32,8 @@ namespace WebCore {
class WMLBRElement : public WMLElement {
public:
+ static PassRefPtr<WMLBRElement> create(const QualifiedName& tagName, Document*);
+
WMLBRElement(const QualifiedName& tagName, Document*);
virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
diff --git a/WebCore/wml/WMLCardElement.cpp b/WebCore/wml/WMLCardElement.cpp
index 645d0fc..38ba8ab 100644
--- a/WebCore/wml/WMLCardElement.cpp
+++ b/WebCore/wml/WMLCardElement.cpp
@@ -55,6 +55,11 @@ WMLCardElement::WMLCardElement(const QualifiedName& tagName, Document* doc)
ASSERT(hasTagName(cardTag));
}
+PassRefPtr<WMLCardElement> WMLCardElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLCardElement(tagName, document));
+}
+
WMLCardElement::~WMLCardElement()
{
}
diff --git a/WebCore/wml/WMLCardElement.h b/WebCore/wml/WMLCardElement.h
index 40eec36..f82374d 100644
--- a/WebCore/wml/WMLCardElement.h
+++ b/WebCore/wml/WMLCardElement.h
@@ -33,6 +33,8 @@ class WMLTimerElement;
class WMLCardElement : public WMLElement, public WMLEventHandlingElement {
public:
+ static PassRefPtr<WMLCardElement> create(const QualifiedName& tagName, Document*);
+
WMLCardElement(const QualifiedName&, Document*);
virtual ~WMLCardElement();
diff --git a/WebCore/wml/WMLDoElement.cpp b/WebCore/wml/WMLDoElement.cpp
index 6a40fc9..9398aa0 100644
--- a/WebCore/wml/WMLDoElement.cpp
+++ b/WebCore/wml/WMLDoElement.cpp
@@ -51,6 +51,11 @@ WMLDoElement::WMLDoElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLDoElement> WMLDoElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLDoElement(tagName, document));
+}
+
void WMLDoElement::defaultEventHandler(Event* event)
{
if (m_isOptional)
diff --git a/WebCore/wml/WMLDoElement.h b/WebCore/wml/WMLDoElement.h
index 024ef80..2ba6d9e 100644
--- a/WebCore/wml/WMLDoElement.h
+++ b/WebCore/wml/WMLDoElement.h
@@ -30,6 +30,8 @@ class WMLTaskElement;
class WMLDoElement : public WMLElement {
public:
+ static PassRefPtr<WMLDoElement> create(const QualifiedName& tagName, Document*);
+
WMLDoElement(const QualifiedName& tagName, Document*);
virtual void defaultEventHandler(Event*);
diff --git a/WebCore/wml/WMLDocument.h b/WebCore/wml/WMLDocument.h
index 3057d9b..f2be938 100644
--- a/WebCore/wml/WMLDocument.h
+++ b/WebCore/wml/WMLDocument.h
@@ -34,7 +34,7 @@ class WMLDocument : public Document {
public:
static PassRefPtr<WMLDocument> create(Frame* frame, const KURL& url)
{
- return adoptRef(new WMLDocument(frame, url));
+ return adoptRef(adoptRef(new WMLDocument(frame, url))));
}
virtual ~WMLDocument();
diff --git a/WebCore/wml/WMLElement.cpp b/WebCore/wml/WMLElement.cpp
index f359236..4d18e94 100644
--- a/WebCore/wml/WMLElement.cpp
+++ b/WebCore/wml/WMLElement.cpp
@@ -39,13 +39,13 @@ namespace WebCore {
using namespace WMLNames;
WMLElement::WMLElement(const QualifiedName& tagName, Document* document)
- : StyledElement(tagName, document, CreateStyledElementZeroRefCount)
+ : StyledElement(tagName, document, CreateStyledElement)
{
}
PassRefPtr<WMLElement> WMLElement::create(const QualifiedName& tagName, Document* document)
{
- return new WMLElement(tagName, document);
+ return adoptRef(new WMLElement(tagName, document));
}
bool WMLElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const
diff --git a/WebCore/wml/WMLFieldSetElement.cpp b/WebCore/wml/WMLFieldSetElement.cpp
index c89e669..86c1e46 100644
--- a/WebCore/wml/WMLFieldSetElement.cpp
+++ b/WebCore/wml/WMLFieldSetElement.cpp
@@ -39,6 +39,11 @@ WMLFieldSetElement::WMLFieldSetElement(const QualifiedName& tagName, Document* d
{
}
+PassRefPtr<WMLFieldSetElement> WMLFieldSetElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLFieldSetElement(tagName, document));
+}
+
WMLFieldSetElement::~WMLFieldSetElement()
{
}
diff --git a/WebCore/wml/WMLFieldSetElement.h b/WebCore/wml/WMLFieldSetElement.h
index 1087fa1..11ef2c1 100644
--- a/WebCore/wml/WMLFieldSetElement.h
+++ b/WebCore/wml/WMLFieldSetElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLFieldSetElement : public WMLElement {
public:
+ static PassRefPtr<WMLFieldSetElement> create(const QualifiedName&, Document*);
+
WMLFieldSetElement(const QualifiedName& tagName, Document*);
virtual ~WMLFieldSetElement();
diff --git a/WebCore/wml/WMLFormControlElement.cpp b/WebCore/wml/WMLFormControlElement.cpp
index 93ffbda..c264340 100644
--- a/WebCore/wml/WMLFormControlElement.cpp
+++ b/WebCore/wml/WMLFormControlElement.cpp
@@ -35,6 +35,11 @@ WMLFormControlElement::WMLFormControlElement(const QualifiedName& tagName, Docum
{
}
+PassRefPtr<WMLFormControlElement> WMLFormControlElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLFormControlElement(tagName, document));
+}
+
WMLFormControlElement::~WMLFormControlElement()
{
}
diff --git a/WebCore/wml/WMLGoElement.cpp b/WebCore/wml/WMLGoElement.cpp
index d3a6216..cc41226 100644
--- a/WebCore/wml/WMLGoElement.cpp
+++ b/WebCore/wml/WMLGoElement.cpp
@@ -50,6 +50,11 @@ WMLGoElement::WMLGoElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLGoElement> WMLGoElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLGoElement(tagName, document));
+}
+
void WMLGoElement::registerPostfieldElement(WMLPostfieldElement* postfield)
{
ASSERT(m_postfieldElements.find(postfield) == WTF::notFound);
diff --git a/WebCore/wml/WMLGoElement.h b/WebCore/wml/WMLGoElement.h
index d7f8991..d29e124 100644
--- a/WebCore/wml/WMLGoElement.h
+++ b/WebCore/wml/WMLGoElement.h
@@ -33,6 +33,8 @@ class WMLPostfieldElement;
class WMLGoElement : public WMLTaskElement {
public:
+ static PassRefPtr<WMLGoElement> create(const QualifiedName&, Document*);
+
WMLGoElement(const QualifiedName& tagName, Document*);
void registerPostfieldElement(WMLPostfieldElement*);
diff --git a/WebCore/wml/WMLImageElement.cpp b/WebCore/wml/WMLImageElement.cpp
index f6b3f1e..c4f6b06 100644
--- a/WebCore/wml/WMLImageElement.cpp
+++ b/WebCore/wml/WMLImageElement.cpp
@@ -43,6 +43,11 @@ WMLImageElement::WMLImageElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLImageElement> WMLImageElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLImageElement(tagName, document));
+}
+
WMLImageElement::~WMLImageElement()
{
}
@@ -109,7 +114,9 @@ void WMLImageElement::attach()
RenderObject* WMLImageElement::createRenderer(RenderArena* arena, RenderStyle*)
{
- return new (arena) RenderImage(this);
+ RenderImage* image = new (arena) RenderImage(this);
+ image->setImageResource(RenderImageResource::create());
+ return image;
}
void WMLImageElement::insertedIntoDocument()
diff --git a/WebCore/wml/WMLImageElement.h b/WebCore/wml/WMLImageElement.h
index 2ec5031..6421f6e 100644
--- a/WebCore/wml/WMLImageElement.h
+++ b/WebCore/wml/WMLImageElement.h
@@ -29,6 +29,8 @@ namespace WebCore {
class WMLImageElement : public WMLElement {
public:
+ static PassRefPtr<WMLImageElement> create(const QualifiedName&, Document*);
+
WMLImageElement(const QualifiedName& tagName, Document*);
virtual ~WMLImageElement();
diff --git a/WebCore/wml/WMLInputElement.cpp b/WebCore/wml/WMLInputElement.cpp
index bf407c1..639658f 100644
--- a/WebCore/wml/WMLInputElement.cpp
+++ b/WebCore/wml/WMLInputElement.cpp
@@ -45,6 +45,11 @@ WMLInputElement::WMLInputElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLInputElement> WMLInputElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLInputElement(tagName, document));
+}
+
WMLInputElement::~WMLInputElement()
{
if (m_isPasswordField)
diff --git a/WebCore/wml/WMLInputElement.h b/WebCore/wml/WMLInputElement.h
index 329d869..70d85e9 100644
--- a/WebCore/wml/WMLInputElement.h
+++ b/WebCore/wml/WMLInputElement.h
@@ -31,6 +31,8 @@ class FormDataList;
class WMLInputElement : public WMLFormControlElement, public InputElement {
public:
+ static PassRefPtr<WMLInputElement> create(const QualifiedName&, Document*);
+
WMLInputElement(const QualifiedName& tagName, Document*);
virtual ~WMLInputElement();
diff --git a/WebCore/wml/WMLInsertedLegendElement.cpp b/WebCore/wml/WMLInsertedLegendElement.cpp
index 1464e71..0a18b4a 100644
--- a/WebCore/wml/WMLInsertedLegendElement.cpp
+++ b/WebCore/wml/WMLInsertedLegendElement.cpp
@@ -30,6 +30,11 @@ WMLInsertedLegendElement::WMLInsertedLegendElement(const QualifiedName& tagName,
{
}
+PassRefPtr<WMLInsertedLegendElement> WMLInsertedLegendElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLInsertedLegendElement(tagName, document));
+}
+
WMLInsertedLegendElement::~WMLInsertedLegendElement()
{
}
diff --git a/WebCore/wml/WMLInsertedLegendElement.h b/WebCore/wml/WMLInsertedLegendElement.h
index 73392ad..e79550e 100644
--- a/WebCore/wml/WMLInsertedLegendElement.h
+++ b/WebCore/wml/WMLInsertedLegendElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLInsertedLegendElement : public WMLElement {
public:
+ static PassRefPtr<WMLInsertedLegendElement> create(const QualifiedName&, Document*);
+
WMLInsertedLegendElement(const QualifiedName& tagName, Document*);
virtual ~WMLInsertedLegendElement();
};
diff --git a/WebCore/wml/WMLIntrinsicEvent.cpp b/WebCore/wml/WMLIntrinsicEvent.cpp
index bb631b9..ec5e987 100644
--- a/WebCore/wml/WMLIntrinsicEvent.cpp
+++ b/WebCore/wml/WMLIntrinsicEvent.cpp
@@ -43,6 +43,11 @@ WMLIntrinsicEvent::WMLIntrinsicEvent(Document* document, const String& targetURL
m_taskElement->setAttribute(HTMLNames::hrefAttr, targetURL);
}
+PassRefPtr<WMLIntrinsicEvent> WMLIntrinsicEvent::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLIntrinsicEvent(tagName, document));
+}
+
WMLIntrinsicEvent::WMLIntrinsicEvent(WMLTaskElement* taskElement)
: m_taskElement(taskElement)
{
diff --git a/WebCore/wml/WMLMetaElement.cpp b/WebCore/wml/WMLMetaElement.cpp
index e28afaf..2b8e00d 100644
--- a/WebCore/wml/WMLMetaElement.cpp
+++ b/WebCore/wml/WMLMetaElement.cpp
@@ -34,6 +34,11 @@ WMLMetaElement::WMLMetaElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLMetaElement> WMLMetaElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLMetaElement(tagName, document));
+}
+
WMLMetaElement::~WMLMetaElement()
{
}
diff --git a/WebCore/wml/WMLMetaElement.h b/WebCore/wml/WMLMetaElement.h
index 765490d..16e2268 100644
--- a/WebCore/wml/WMLMetaElement.h
+++ b/WebCore/wml/WMLMetaElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLMetaElement : public WMLElement {
public:
+ static PassRefPtr<WMLMetaElement> create(const QualifiedName&, Document*);
+
WMLMetaElement(const QualifiedName& tagName, Document*);
virtual ~WMLMetaElement();
diff --git a/WebCore/wml/WMLNoopElement.cpp b/WebCore/wml/WMLNoopElement.cpp
index b2ce506..3afddeb 100644
--- a/WebCore/wml/WMLNoopElement.cpp
+++ b/WebCore/wml/WMLNoopElement.cpp
@@ -36,6 +36,11 @@ WMLNoopElement::WMLNoopElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLNoopElement> WMLNoopElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLNoopElement(tagName, document));
+}
+
WMLNoopElement::~WMLNoopElement()
{
}
diff --git a/WebCore/wml/WMLNoopElement.h b/WebCore/wml/WMLNoopElement.h
index 63b316e..be0413c 100644
--- a/WebCore/wml/WMLNoopElement.h
+++ b/WebCore/wml/WMLNoopElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLNoopElement : public WMLElement {
public:
+ static PassRefPtr<WMLNoopElement> create(const QualifiedName&, Document*);
+
WMLNoopElement(const QualifiedName& tagName, Document*);
virtual ~WMLNoopElement();
diff --git a/WebCore/wml/WMLOnEventElement.cpp b/WebCore/wml/WMLOnEventElement.cpp
index 34518c3..ad6684b 100644
--- a/WebCore/wml/WMLOnEventElement.cpp
+++ b/WebCore/wml/WMLOnEventElement.cpp
@@ -41,6 +41,11 @@ WMLOnEventElement::WMLOnEventElement(const QualifiedName& tagName, Document* doc
{
}
+PassRefPtr<WMLOnEventElement> WMLOnEventElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLOnEventElement(tagName, document));
+}
+
void WMLOnEventElement::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == HTMLNames::typeAttr) {
diff --git a/WebCore/wml/WMLOnEventElement.h b/WebCore/wml/WMLOnEventElement.h
index 4bc4bca..8bbaa1d 100644
--- a/WebCore/wml/WMLOnEventElement.h
+++ b/WebCore/wml/WMLOnEventElement.h
@@ -31,6 +31,8 @@ class WMLTaskElement;
class WMLOnEventElement : public WMLElement {
public:
+ static PassRefPtr<WMLOnEventElement> create(const QualifiedName&, Document*);
+
WMLOnEventElement(const QualifiedName& tagName, Document*);
virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/wml/WMLOptGroupElement.cpp b/WebCore/wml/WMLOptGroupElement.cpp
index fde3474..7c59a7e 100644
--- a/WebCore/wml/WMLOptGroupElement.cpp
+++ b/WebCore/wml/WMLOptGroupElement.cpp
@@ -40,6 +40,11 @@ WMLOptGroupElement::WMLOptGroupElement(const QualifiedName& tagName, Document* d
{
}
+PassRefPtr<WMLOptGroupElement> WMLOptGroupElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLOptGroupElement(tagName, document));
+}
+
WMLOptGroupElement::~WMLOptGroupElement()
{
}
diff --git a/WebCore/wml/WMLOptGroupElement.h b/WebCore/wml/WMLOptGroupElement.h
index 682c68c..3cfa47d 100644
--- a/WebCore/wml/WMLOptGroupElement.h
+++ b/WebCore/wml/WMLOptGroupElement.h
@@ -29,6 +29,8 @@ namespace WebCore {
class WMLOptGroupElement : public WMLFormControlElement, public OptionGroupElement {
public:
+ static PassRefPtr<WMLOptGroupElement> create(const QualifiedName&, Document*);
+
WMLOptGroupElement(const QualifiedName& tagName, Document*);
virtual ~WMLOptGroupElement();
diff --git a/WebCore/wml/WMLOptionElement.cpp b/WebCore/wml/WMLOptionElement.cpp
index ca4ea91..bc97215 100644
--- a/WebCore/wml/WMLOptionElement.cpp
+++ b/WebCore/wml/WMLOptionElement.cpp
@@ -39,6 +39,11 @@ WMLOptionElement::WMLOptionElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLOptionElement> WMLOptionElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLOptionElement(tagName, document));
+}
+
WMLOptionElement::~WMLOptionElement()
{
}
diff --git a/WebCore/wml/WMLOptionElement.h b/WebCore/wml/WMLOptionElement.h
index 3831f7d..41a4638 100644
--- a/WebCore/wml/WMLOptionElement.h
+++ b/WebCore/wml/WMLOptionElement.h
@@ -30,6 +30,8 @@ namespace WebCore {
class WMLOptionElement : public WMLFormControlElement, public WMLEventHandlingElement, public OptionElement {
public:
+ static PassRefPtr<WMLOptionElement> create(const QualifiedName&, Document*);
+
WMLOptionElement(const QualifiedName& tagName, Document*);
virtual ~WMLOptionElement();
diff --git a/WebCore/wml/WMLPElement.cpp b/WebCore/wml/WMLPElement.cpp
index ca76022..629b49f 100644
--- a/WebCore/wml/WMLPElement.cpp
+++ b/WebCore/wml/WMLPElement.cpp
@@ -43,6 +43,11 @@ WMLPElement::WMLPElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLPElement> WMLPElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLPElement(tagName, document));
+}
+
bool WMLPElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const
{
if (attrName == HTMLNames::alignAttr) {
diff --git a/WebCore/wml/WMLPElement.h b/WebCore/wml/WMLPElement.h
index 48f98f8..32a35b1 100644
--- a/WebCore/wml/WMLPElement.h
+++ b/WebCore/wml/WMLPElement.h
@@ -31,6 +31,8 @@ namespace WebCore {
class WMLPElement : public WMLElement {
public:
+ static PassRefPtr<WMLPElement> create(const QualifiedName&, Document*);
+
WMLPElement(const QualifiedName& tagName, Document*);
virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
diff --git a/WebCore/wml/WMLPostfieldElement.cpp b/WebCore/wml/WMLPostfieldElement.cpp
index 5cf26c7..b168dbb 100644
--- a/WebCore/wml/WMLPostfieldElement.cpp
+++ b/WebCore/wml/WMLPostfieldElement.cpp
@@ -39,6 +39,11 @@ WMLPostfieldElement::WMLPostfieldElement(const QualifiedName& tagName, Document*
{
}
+PassRefPtr<WMLPostfieldElement> WMLPostfieldElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLPostfieldElement(tagName, document));
+}
+
void WMLPostfieldElement::insertedIntoDocument()
{
WMLElement::insertedIntoDocument();
diff --git a/WebCore/wml/WMLPostfieldElement.h b/WebCore/wml/WMLPostfieldElement.h
index dd10b47..8d91073 100644
--- a/WebCore/wml/WMLPostfieldElement.h
+++ b/WebCore/wml/WMLPostfieldElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLPostfieldElement : public WMLElement {
public:
+ static PassRefPtr<WMLPostfieldElement> create(const QualifiedName&, Document*);
+
WMLPostfieldElement(const QualifiedName& tagName, Document*);
virtual void insertedIntoDocument();
diff --git a/WebCore/wml/WMLPrevElement.cpp b/WebCore/wml/WMLPrevElement.cpp
index 3d487ea..b90e22b 100644
--- a/WebCore/wml/WMLPrevElement.cpp
+++ b/WebCore/wml/WMLPrevElement.cpp
@@ -36,6 +36,11 @@ WMLPrevElement::WMLPrevElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLPrevElement> WMLPrevElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLPrevElement(tagName, document));
+}
+
WMLPrevElement::~WMLPrevElement()
{
}
diff --git a/WebCore/wml/WMLPrevElement.h b/WebCore/wml/WMLPrevElement.h
index ce8596e..2db8166 100644
--- a/WebCore/wml/WMLPrevElement.h
+++ b/WebCore/wml/WMLPrevElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLPrevElement : public WMLTaskElement {
public:
+ static PassRefPtr<WMLPrevElement> create(const QualifiedName&, Document*);
+
WMLPrevElement(const QualifiedName& tagName, Document*);
virtual ~WMLPrevElement();
diff --git a/WebCore/wml/WMLRefreshElement.cpp b/WebCore/wml/WMLRefreshElement.cpp
index bcf87ac..8267e20 100644
--- a/WebCore/wml/WMLRefreshElement.cpp
+++ b/WebCore/wml/WMLRefreshElement.cpp
@@ -37,6 +37,11 @@ WMLRefreshElement::WMLRefreshElement(const QualifiedName& tagName, Document* doc
{
}
+PassRefPtr<WMLRefreshElement> WMLRefreshElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLRefreshElement(tagName, document));
+}
+
WMLRefreshElement::~WMLRefreshElement()
{
}
diff --git a/WebCore/wml/WMLRefreshElement.h b/WebCore/wml/WMLRefreshElement.h
index 43b71b5..1459a05 100644
--- a/WebCore/wml/WMLRefreshElement.h
+++ b/WebCore/wml/WMLRefreshElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLRefreshElement : public WMLTaskElement {
public:
+ static PassRefPtr<WMLRefreshElement> create(const QualifiedName&, Document*);
+
WMLRefreshElement(const QualifiedName& tagName, Document*);
virtual ~WMLRefreshElement();
diff --git a/WebCore/wml/WMLSelectElement.cpp b/WebCore/wml/WMLSelectElement.cpp
index 3991b52..81c3a77 100644
--- a/WebCore/wml/WMLSelectElement.cpp
+++ b/WebCore/wml/WMLSelectElement.cpp
@@ -44,6 +44,11 @@ WMLSelectElement::WMLSelectElement(const QualifiedName& tagName, Document* docum
{
}
+PassRefPtr<WMLSelectElement> WMLSelectElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLSelectElement(tagName, document));
+}
+
WMLSelectElement::~WMLSelectElement()
{
}
diff --git a/WebCore/wml/WMLSelectElement.h b/WebCore/wml/WMLSelectElement.h
index 09a96f9..00b4649 100644
--- a/WebCore/wml/WMLSelectElement.h
+++ b/WebCore/wml/WMLSelectElement.h
@@ -29,6 +29,8 @@ namespace WebCore {
class WMLSelectElement : public WMLFormControlElement, public SelectElement {
public:
+ static PassRefPtr<WMLSelectElement> create(const QualifiedName&, Document*);
+
WMLSelectElement(const QualifiedName&, Document*);
virtual ~WMLSelectElement();
diff --git a/WebCore/wml/WMLSetvarElement.cpp b/WebCore/wml/WMLSetvarElement.cpp
index 1407b3f..a0fc3e8 100644
--- a/WebCore/wml/WMLSetvarElement.cpp
+++ b/WebCore/wml/WMLSetvarElement.cpp
@@ -36,6 +36,11 @@ WMLSetvarElement::WMLSetvarElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLSetvarElement> WMLSetvarElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLSetvarElement(tagName, document));
+}
+
WMLSetvarElement::~WMLSetvarElement()
{
}
diff --git a/WebCore/wml/WMLSetvarElement.h b/WebCore/wml/WMLSetvarElement.h
index 410db70..0951360 100644
--- a/WebCore/wml/WMLSetvarElement.h
+++ b/WebCore/wml/WMLSetvarElement.h
@@ -28,6 +28,8 @@ namespace WebCore {
class WMLSetvarElement : public WMLElement {
public:
+ static PassRefPtr<WMLSetvarElement> create(const QualifiedName&, Document*);
+
WMLSetvarElement(const QualifiedName& tagName, Document*);
virtual ~WMLSetvarElement();
diff --git a/WebCore/wml/WMLTableElement.cpp b/WebCore/wml/WMLTableElement.cpp
index 4d5e785..eb22503 100644
--- a/WebCore/wml/WMLTableElement.cpp
+++ b/WebCore/wml/WMLTableElement.cpp
@@ -45,6 +45,11 @@ WMLTableElement::WMLTableElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLTableElement> WMLTableElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLTableElement(tagName, document));
+}
+
WMLTableElement::~WMLTableElement()
{
}
diff --git a/WebCore/wml/WMLTableElement.h b/WebCore/wml/WMLTableElement.h
index 22a9676..9f0a592 100644
--- a/WebCore/wml/WMLTableElement.h
+++ b/WebCore/wml/WMLTableElement.h
@@ -30,6 +30,8 @@ class HTMLCollection;
class WMLTableElement : public WMLElement {
public:
+ static PassRefPtr<WMLTableElement> create(const QualifiedName&, Document*);
+
WMLTableElement(const QualifiedName& tagName, Document*);
virtual ~WMLTableElement();
diff --git a/WebCore/wml/WMLTagNames.in b/WebCore/wml/WMLTagNames.in
index 1c24f42..fd7c762 100644
--- a/WebCore/wml/WMLTagNames.in
+++ b/WebCore/wml/WMLTagNames.in
@@ -2,34 +2,34 @@ namespace="WML"
namespaceURI="http://www.wapforum.org/DTD/wml_1.1.xml"
guardFactoryWith="ENABLE(WML)"
-a createWithNew
-access createWithNew
-anchor createWithNew
-br interfaceName=WMLBRElement, createWithNew
-card createWithNew
-do createWithNew
-fieldset interfaceName=WMLFieldSetElement, createWithNew
-go createWithNew
+a
+access
+anchor
+br interfaceName=WMLBRElement
+card
+do
+fieldset interfaceName=WMLFieldSetElement
+go
head interfaceName=WMLElement
-img interfaceName=WMLImageElement, createWithNew
-input createWithNew
+img interfaceName=WMLImageElement
+input
#if 0
# Note: 'insertedLegend' is not an official WML element - internal purpose only!
#endif
-insertedLegend interfaceName=WMLInsertedLegendElement, createWithNew
-meta createWithNew
-noop createWithNew
-onevent interfaceName=WMLOnEventElement, createWithNew
-optgroup interfaceName=WMLOptGroupElement, createWithNew
-option createWithNew
-p createWithNew
-postfield createWithNew
-prev createWithNew
-refresh createWithNew
-select createWithNew
-setvar createWithNew
-table createWithNew
+insertedLegend interfaceName=WMLInsertedLegendElement
+meta
+noop
+onevent interfaceName=WMLOnEventElement
+optgroup interfaceName=WMLOptGroupElement
+option
+p
+postfield
+prev
+refresh
+select
+setvar
+table
td interfaceName=WMLElement
-template createWithNew
-timer createWithNew
+template
+timer
tr interfaceName=WMLElement
diff --git a/WebCore/wml/WMLTaskElement.cpp b/WebCore/wml/WMLTaskElement.cpp
index d49a03e..4ef3496 100644
--- a/WebCore/wml/WMLTaskElement.cpp
+++ b/WebCore/wml/WMLTaskElement.cpp
@@ -39,6 +39,11 @@ WMLTaskElement::WMLTaskElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLTaskElement> WMLTaskElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLTaskElement(tagName, document));
+}
+
WMLTaskElement::~WMLTaskElement()
{
}
diff --git a/WebCore/wml/WMLTaskElement.h b/WebCore/wml/WMLTaskElement.h
index b813285..b7c5376 100644
--- a/WebCore/wml/WMLTaskElement.h
+++ b/WebCore/wml/WMLTaskElement.h
@@ -33,6 +33,8 @@ class WMLSetvarElement;
class WMLTaskElement : public WMLElement {
public:
+ static PassRefPtr<WMLTaskElement> create(const QualifiedName& tagName, Document*);
+
WMLTaskElement(const QualifiedName& tagName, Document*);
virtual ~WMLTaskElement();
diff --git a/WebCore/wml/WMLTemplateElement.cpp b/WebCore/wml/WMLTemplateElement.cpp
index 27c828c..584a762 100644
--- a/WebCore/wml/WMLTemplateElement.cpp
+++ b/WebCore/wml/WMLTemplateElement.cpp
@@ -43,6 +43,11 @@ WMLTemplateElement::~WMLTemplateElement()
{
}
+PassRefPtr<WMLTemplateElement> WMLTemplateElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLTemplateElement(tagName, document));
+}
+
void WMLTemplateElement::parseMappedAttribute(Attribute* attr)
{
WMLIntrinsicEventType eventType = WMLIntrinsicEventUnknown;
diff --git a/WebCore/wml/WMLTemplateElement.h b/WebCore/wml/WMLTemplateElement.h
index e11d089..c168753 100644
--- a/WebCore/wml/WMLTemplateElement.h
+++ b/WebCore/wml/WMLTemplateElement.h
@@ -29,6 +29,8 @@ namespace WebCore {
class WMLTemplateElement : public WMLElement, public WMLEventHandlingElement {
public:
+ static PassRefPtr<WMLTemplateElement> create(const QualifiedName&, Document*);
+
WMLTemplateElement(const QualifiedName&, Document*);
virtual ~WMLTemplateElement();
diff --git a/WebCore/wml/WMLTimerElement.cpp b/WebCore/wml/WMLTimerElement.cpp
index 48eed34..feac38b 100644
--- a/WebCore/wml/WMLTimerElement.cpp
+++ b/WebCore/wml/WMLTimerElement.cpp
@@ -42,6 +42,11 @@ WMLTimerElement::WMLTimerElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLTimerElement> WMLTimerElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLTimerElement(tagName, document));
+}
+
void WMLTimerElement::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == HTMLNames::nameAttr)
diff --git a/WebCore/wml/WMLTimerElement.h b/WebCore/wml/WMLTimerElement.h
index 09f3fbf..894c793 100644
--- a/WebCore/wml/WMLTimerElement.h
+++ b/WebCore/wml/WMLTimerElement.h
@@ -31,6 +31,8 @@ class WMLCardElement;
class WMLTimerElement : public WMLElement {
public:
+ static PassRefPtr<WMLTimerElement> create(const QualifiedName&, Document*);
+
WMLTimerElement(const QualifiedName& tagName, Document*);
virtual void parseMappedAttribute(Attribute*);