summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLElementFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLElementFactory.cpp')
-rw-r--r--WebCore/html/HTMLElementFactory.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/WebCore/html/HTMLElementFactory.cpp b/WebCore/html/HTMLElementFactory.cpp
index e8a2bbe..1b9b0cc 100644
--- a/WebCore/html/HTMLElementFactory.cpp
+++ b/WebCore/html/HTMLElementFactory.cpp
@@ -113,9 +113,11 @@ static PassRefPtr<HTMLElement> baseConstructor(const AtomicString&, Document* do
return new HTMLBaseElement(doc);
}
-static PassRefPtr<HTMLElement> linkConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)
+static PassRefPtr<HTMLElement> linkConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool createdByParser)
{
- return new HTMLLinkElement(doc);
+ RefPtr<HTMLLinkElement> link = new HTMLLinkElement(doc);
+ link->setCreatedByParser(createdByParser);
+ return link.release();
}
static PassRefPtr<HTMLElement> metaConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)
@@ -135,9 +137,11 @@ static PassRefPtr<HTMLElement> titleConstructor(const AtomicString&, Document* d
return new HTMLTitleElement(doc);
}
-static PassRefPtr<HTMLElement> frameConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)
+static PassRefPtr<HTMLElement> frameConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool createdByParser)
{
- return new HTMLFrameElement(doc);
+ RefPtr<HTMLFrameElement> frame = new HTMLFrameElement(doc);
+ frame->setCreatedByParser(createdByParser);
+ return frame.release();
}
static PassRefPtr<HTMLElement> framesetConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)
@@ -145,9 +149,11 @@ static PassRefPtr<HTMLElement> framesetConstructor(const AtomicString&, Document
return new HTMLFrameSetElement(doc);
}
-static PassRefPtr<HTMLElement> iframeConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)
+static PassRefPtr<HTMLElement> iframeConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool createdByParser)
{
- return new HTMLIFrameElement(doc);
+ RefPtr<HTMLIFrameElement> iFrame = new HTMLIFrameElement(doc);
+ iFrame->setCreatedByParser(createdByParser);
+ return iFrame.release();
}
static PassRefPtr<HTMLElement> formConstructor(const AtomicString&, Document* doc, HTMLFormElement*, bool)