Changeset 38791 in webkit


Ignore:
Timestamp:
Nov 26, 2008 3:07:45 PM (15 years ago)
Author:
jchaffraix@webkit.org
Message:

2008-11-26 Julien Chaffraix <jchaffraix@webkit.org>

Reviewed by Eric Seidel.

Bug 22441: Bridge the gap between the generated ElementFactory and HTMLElementFactory
https://bugs.webkit.org/show_bug.cgi?id=22441

Make more HTML elements' constructors take a QualifiedName.

  • editing/DeleteButtonController.cpp: (WebCore::DeleteButtonController::createDeletionUI):
  • html/HTMLBlockquoteElement.cpp: (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
  • html/HTMLBlockquoteElement.h:
  • html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::HTMLButtonElement):
  • html/HTMLButtonElement.h:
  • html/HTMLDListElement.cpp: (WebCore::HTMLDListElement::HTMLDListElement):
  • html/HTMLDListElement.h:
  • html/HTMLDirectoryElement.cpp: (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
  • html/HTMLDirectoryElement.h:
  • html/HTMLDivElement.cpp: (WebCore::HTMLDivElement::HTMLDivElement):
  • html/HTMLDivElement.h:
  • html/HTMLElementFactory.cpp: (WebCore::styleConstructor): (WebCore::titleConstructor): (WebCore::frameConstructor): (WebCore::framesetConstructor): (WebCore::iframeConstructor): (WebCore::formConstructor): (WebCore::buttonConstructor): (WebCore::inputConstructor): (WebCore::isindexConstructor): (WebCore::fieldsetConstructor): (WebCore::keygenConstructor): (WebCore::labelConstructor): (WebCore::legendConstructor): (WebCore::optgroupConstructor): (WebCore::optionConstructor): (WebCore::selectConstructor): (WebCore::textareaConstructor): (WebCore::dlConstructor): (WebCore::ulConstructor): (WebCore::olConstructor): (WebCore::dirConstructor): (WebCore::menuConstructor): (WebCore::liConstructor): (WebCore::blockquoteConstructor): (WebCore::divConstructor): (WebCore::headingConstructor):
  • html/HTMLFieldSetElement.cpp:
  • html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
  • html/HTMLFieldSetElement.h:
  • html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::HTMLFormElement):
  • html/HTMLFormElement.h:
  • html/HTMLFrameElement.cpp: (WebCore::HTMLFrameElement::HTMLFrameElement):
  • html/HTMLFrameElement.h:
  • html/HTMLFrameSetElement.cpp: (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
  • html/HTMLFrameSetElement.h:
  • html/HTMLIFrameElement.cpp: (WebCore::HTMLIFrameElement::HTMLIFrameElement):
  • html/HTMLIFrameElement.h:
  • html/HTMLInputElement.cpp:
  • html/HTMLInputElement.h:
  • html/HTMLIsIndexElement.cpp: (WebCore::HTMLIsIndexElement::HTMLIsIndexElement):
  • html/HTMLIsIndexElement.h:
  • html/HTMLKeygenElement.cpp: (WebCore::HTMLKeygenElement::HTMLKeygenElement):
  • html/HTMLKeygenElement.h:
  • html/HTMLLIElement.cpp: (WebCore::HTMLLIElement::HTMLLIElement):
  • html/HTMLLIElement.h:
  • html/HTMLLabelElement.cpp: (WebCore::HTMLLabelElement::HTMLLabelElement):
  • html/HTMLLabelElement.h:
  • html/HTMLLegendElement.cpp: (WebCore::HTMLLegendElement::HTMLLegendElement):
  • html/HTMLLegendElement.h:
  • html/HTMLMenuElement.cpp: (WebCore::HTMLMenuElement::HTMLMenuElement):
  • html/HTMLMenuElement.h:
  • html/HTMLOListElement.cpp: (WebCore::HTMLOListElement::HTMLOListElement):
  • html/HTMLOListElement.h:
  • html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::HTMLOptGroupElement):
  • html/HTMLOptGroupElement.h:
  • html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::HTMLOptionElement):
  • html/HTMLOptionElement.h:
  • html/HTMLParser.cpp: (WebCore::HTMLParser::formCreateErrorCheck): (WebCore::HTMLParser::handleIsindex):
  • html/HTMLSelectElement.cpp:
  • html/HTMLSelectElement.h:
  • html/HTMLStyleElement.cpp: (WebCore::HTMLStyleElement::HTMLStyleElement):
  • html/HTMLStyleElement.h:
  • html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
  • html/HTMLTextAreaElement.h:
  • html/HTMLTitleElement.cpp: (WebCore::HTMLTitleElement::HTMLTitleElement):
  • html/HTMLTitleElement.h:
  • html/HTMLUListElement.cpp: (WebCore::HTMLUListElement::HTMLUListElement):
  • html/HTMLUListElement.h:
  • html/HTMLViewSourceDocument.cpp: (WebCore::HTMLViewSourceDocument::createContainingTable):
  • rendering/MediaControlElements.cpp: (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement): (WebCore::MediaControlInputElement::MediaControlInputElement):
  • rendering/RenderFileUploadControl.cpp: (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
  • rendering/RenderMedia.cpp: (WebCore::RenderMedia::createPanel): (WebCore::RenderMedia::createTimeDisplay):
  • rendering/RenderSlider.cpp: (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
  • rendering/TextControlInnerElements.cpp: (WebCore::TextControlInnerElement::TextControlInnerElement):
Location:
trunk/WebCore
Files:
60 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r38790 r38791  
     12008-11-26  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Bug 22441: Bridge the gap between the generated ElementFactory and HTMLElementFactory
     6        https://bugs.webkit.org/show_bug.cgi?id=22441
     7
     8        Make more HTML elements' constructors take a QualifiedName.
     9
     10        * editing/DeleteButtonController.cpp:
     11        (WebCore::DeleteButtonController::createDeletionUI):
     12        * html/HTMLBlockquoteElement.cpp:
     13        (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
     14        * html/HTMLBlockquoteElement.h:
     15        * html/HTMLButtonElement.cpp:
     16        (WebCore::HTMLButtonElement::HTMLButtonElement):
     17        * html/HTMLButtonElement.h:
     18        * html/HTMLDListElement.cpp:
     19        (WebCore::HTMLDListElement::HTMLDListElement):
     20        * html/HTMLDListElement.h:
     21        * html/HTMLDirectoryElement.cpp:
     22        (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
     23        * html/HTMLDirectoryElement.h:
     24        * html/HTMLDivElement.cpp:
     25        (WebCore::HTMLDivElement::HTMLDivElement):
     26        * html/HTMLDivElement.h:
     27        * html/HTMLElementFactory.cpp:
     28        (WebCore::styleConstructor):
     29        (WebCore::titleConstructor):
     30        (WebCore::frameConstructor):
     31        (WebCore::framesetConstructor):
     32        (WebCore::iframeConstructor):
     33        (WebCore::formConstructor):
     34        (WebCore::buttonConstructor):
     35        (WebCore::inputConstructor):
     36        (WebCore::isindexConstructor):
     37        (WebCore::fieldsetConstructor):
     38        (WebCore::keygenConstructor):
     39        (WebCore::labelConstructor):
     40        (WebCore::legendConstructor):
     41        (WebCore::optgroupConstructor):
     42        (WebCore::optionConstructor):
     43        (WebCore::selectConstructor):
     44        (WebCore::textareaConstructor):
     45        (WebCore::dlConstructor):
     46        (WebCore::ulConstructor):
     47        (WebCore::olConstructor):
     48        (WebCore::dirConstructor):
     49        (WebCore::menuConstructor):
     50        (WebCore::liConstructor):
     51        (WebCore::blockquoteConstructor):
     52        (WebCore::divConstructor):
     53        (WebCore::headingConstructor):
     54        * html/HTMLFieldSetElement.cpp:
     55        (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
     56        * html/HTMLFieldSetElement.h:
     57        * html/HTMLFormElement.cpp:
     58        (WebCore::HTMLFormElement::HTMLFormElement):
     59        * html/HTMLFormElement.h:
     60        * html/HTMLFrameElement.cpp:
     61        (WebCore::HTMLFrameElement::HTMLFrameElement):
     62        * html/HTMLFrameElement.h:
     63        * html/HTMLFrameSetElement.cpp:
     64        (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
     65        * html/HTMLFrameSetElement.h:
     66        * html/HTMLIFrameElement.cpp:
     67        (WebCore::HTMLIFrameElement::HTMLIFrameElement):
     68        * html/HTMLIFrameElement.h:
     69        * html/HTMLInputElement.cpp:
     70        * html/HTMLInputElement.h:
     71        * html/HTMLIsIndexElement.cpp:
     72        (WebCore::HTMLIsIndexElement::HTMLIsIndexElement):
     73        * html/HTMLIsIndexElement.h:
     74        * html/HTMLKeygenElement.cpp:
     75        (WebCore::HTMLKeygenElement::HTMLKeygenElement):
     76        * html/HTMLKeygenElement.h:
     77        * html/HTMLLIElement.cpp:
     78        (WebCore::HTMLLIElement::HTMLLIElement):
     79        * html/HTMLLIElement.h:
     80        * html/HTMLLabelElement.cpp:
     81        (WebCore::HTMLLabelElement::HTMLLabelElement):
     82        * html/HTMLLabelElement.h:
     83        * html/HTMLLegendElement.cpp:
     84        (WebCore::HTMLLegendElement::HTMLLegendElement):
     85        * html/HTMLLegendElement.h:
     86        * html/HTMLMenuElement.cpp:
     87        (WebCore::HTMLMenuElement::HTMLMenuElement):
     88        * html/HTMLMenuElement.h:
     89        * html/HTMLOListElement.cpp:
     90        (WebCore::HTMLOListElement::HTMLOListElement):
     91        * html/HTMLOListElement.h:
     92        * html/HTMLOptGroupElement.cpp:
     93        (WebCore::HTMLOptGroupElement::HTMLOptGroupElement):
     94        * html/HTMLOptGroupElement.h:
     95        * html/HTMLOptionElement.cpp:
     96        (WebCore::HTMLOptionElement::HTMLOptionElement):
     97        * html/HTMLOptionElement.h:
     98        * html/HTMLParser.cpp:
     99        (WebCore::HTMLParser::formCreateErrorCheck):
     100        (WebCore::HTMLParser::handleIsindex):
     101        * html/HTMLSelectElement.cpp:
     102        * html/HTMLSelectElement.h:
     103        * html/HTMLStyleElement.cpp:
     104        (WebCore::HTMLStyleElement::HTMLStyleElement):
     105        * html/HTMLStyleElement.h:
     106        * html/HTMLTextAreaElement.cpp:
     107        (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
     108        * html/HTMLTextAreaElement.h:
     109        * html/HTMLTitleElement.cpp:
     110        (WebCore::HTMLTitleElement::HTMLTitleElement):
     111        * html/HTMLTitleElement.h:
     112        * html/HTMLUListElement.cpp:
     113        (WebCore::HTMLUListElement::HTMLUListElement):
     114        * html/HTMLUListElement.h:
     115        * html/HTMLViewSourceDocument.cpp:
     116        (WebCore::HTMLViewSourceDocument::createContainingTable):
     117        * rendering/MediaControlElements.cpp:
     118        (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
     119        (WebCore::MediaControlInputElement::MediaControlInputElement):
     120        * rendering/RenderFileUploadControl.cpp:
     121        (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
     122        * rendering/RenderMedia.cpp:
     123        (WebCore::RenderMedia::createPanel):
     124        (WebCore::RenderMedia::createTimeDisplay):
     125        * rendering/RenderSlider.cpp:
     126        (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
     127        * rendering/TextControlInnerElements.cpp:
     128        (WebCore::TextControlInnerElement::TextControlInnerElement):
     129
    11302008-11-26  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
    2131
  • trunk/WebCore/editing/DeleteButtonController.cpp

    r35731 r38791  
    143143void DeleteButtonController::createDeletionUI()
    144144{
    145     RefPtr<HTMLDivElement> container = new HTMLDivElement(m_target->document());
     145    RefPtr<HTMLDivElement> container = new HTMLDivElement(divTag, m_target->document());
    146146    container->setId(containerElementIdentifier);
    147147
     
    151151    style->setProperty(CSSPropertyWebkitUserModify, CSSValueNone);
    152152
    153     RefPtr<HTMLDivElement> outline = new HTMLDivElement(m_target->document());
     153    RefPtr<HTMLDivElement> outline = new HTMLDivElement(divTag, m_target->document());
    154154    outline->setId(outlineElementIdentifier);
    155155
  • trunk/WebCore/html/HTMLBlockquoteElement.cpp

    r25754 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3129using namespace HTMLNames;
    3230
    33 HTMLBlockquoteElement::HTMLBlockquoteElement(Document* doc)
    34     : HTMLElement(blockquoteTag, doc)
     31HTMLBlockquoteElement::HTMLBlockquoteElement(const QualifiedName& tagName, Document* doc)
     32    : HTMLElement(tagName, doc)
    3533{
    3634}
  • trunk/WebCore/html/HTMLBlockquoteElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3129class HTMLBlockquoteElement : public HTMLElement {
    3230public:
    33     HTMLBlockquoteElement(Document*);
     31    HTMLBlockquoteElement(const QualifiedName&, Document*);
    3432    ~HTMLBlockquoteElement();
    3533
  • trunk/WebCore/html/HTMLButtonElement.cpp

    r38418 r38791  
    3939using namespace HTMLNames;
    4040
    41 HTMLButtonElement::HTMLButtonElement(Document* doc, HTMLFormElement* form)
    42     : HTMLFormControlElement(buttonTag, doc, form)
     41HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* form)
     42    : HTMLFormControlElement(tagName, doc, form)
    4343    , m_type(SUBMIT)
    4444    , m_activeSubmit(false)
  • trunk/WebCore/html/HTMLButtonElement.h

    r35381 r38791  
    3131class HTMLButtonElement : public HTMLFormControlElement {
    3232public:
    33     HTMLButtonElement(Document*, HTMLFormElement* = 0);
     33    HTMLButtonElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    3434    virtual ~HTMLButtonElement();
    3535
  • trunk/WebCore/html/HTMLDListElement.cpp

    r25754 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3028using namespace HTMLNames;
    3129
    32 HTMLDListElement::HTMLDListElement(Document* doc)
    33     : HTMLElement(HTMLNames::dlTag, doc)
     30HTMLDListElement::HTMLDListElement(const QualifiedName& tagName, Document* doc)
     31    : HTMLElement(tagName, doc)
    3432{
    3533}
  • trunk/WebCore/html/HTMLDListElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3230{
    3331public:
    34     HTMLDListElement(Document*);
     32    HTMLDListElement(const QualifiedName&, Document*);
    3533
    3634    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLDirectoryElement.cpp

    r25754 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3028using namespace HTMLNames;
    3129
    32 HTMLDirectoryElement::HTMLDirectoryElement(Document* doc)
    33     : HTMLElement(HTMLNames::dirTag, doc)
     30HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* doc)
     31    : HTMLElement(tagName, doc)
    3432{
    3533}
  • trunk/WebCore/html/HTMLDirectoryElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3230{
    3331public:
    34     HTMLDirectoryElement(Document*);
     32    HTMLDirectoryElement(const QualifiedName&, Document*);
    3533
    3634    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLDivElement.cpp

    r31160 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331using namespace HTMLNames;
    3432
    35 HTMLDivElement::HTMLDivElement(Document *doc)
    36     : HTMLElement(divTag, doc)
     33HTMLDivElement::HTMLDivElement(const QualifiedName& tagName, Document *doc)
     34    : HTMLElement(tagName, doc)
    3735{
    3836}
  • trunk/WebCore/html/HTMLDivElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3129class HTMLDivElement : public HTMLElement {
    3230public:
    33     HTMLDivElement(Document*);
     31    HTMLDivElement(const QualifiedName&, Document*);
    3432    ~HTMLDivElement();
    3533
  • trunk/WebCore/html/HTMLElementFactory.cpp

    r38769 r38791  
    128128static PassRefPtr<HTMLElement> styleConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser)
    129129{
    130     RefPtr<HTMLStyleElement> style = new HTMLStyleElement(doc);
     130    RefPtr<HTMLStyleElement> style = new HTMLStyleElement(styleTag, doc);
    131131    style->setCreatedByParser(createdByParser);
    132132    return style.release();
     
    135135static PassRefPtr<HTMLElement> titleConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    136136{
    137     return new HTMLTitleElement(doc);
     137    return new HTMLTitleElement(titleTag, doc);
    138138}
    139139
    140140static PassRefPtr<HTMLElement> frameConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser)
    141141{
    142     RefPtr<HTMLFrameElement> frame = new HTMLFrameElement(doc);
     142    RefPtr<HTMLFrameElement> frame = new HTMLFrameElement(frameTag, doc);
    143143    frame->setCreatedByParser(createdByParser);
    144144    return frame.release();   
     
    147147static PassRefPtr<HTMLElement> framesetConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    148148{
    149     return new HTMLFrameSetElement(doc);
     149    return new HTMLFrameSetElement(framesetTag, doc);
    150150}
    151151
    152152static PassRefPtr<HTMLElement> iframeConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser)
    153153{
    154     RefPtr<HTMLIFrameElement> iFrame = new HTMLIFrameElement(doc);
     154    RefPtr<HTMLIFrameElement> iFrame = new HTMLIFrameElement(iframeTag, doc);
    155155    iFrame->setCreatedByParser(createdByParser);
    156156    return iFrame.release();   
     
    159159static PassRefPtr<HTMLElement> formConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    160160{
    161     return new HTMLFormElement(doc);
     161    return new HTMLFormElement(formTag, doc);
    162162}
    163163
    164164static PassRefPtr<HTMLElement> buttonConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    165165{
    166     return new HTMLButtonElement(doc, form);
     166    return new HTMLButtonElement(buttonTag, doc, form);
    167167}
    168168
    169169static PassRefPtr<HTMLElement> inputConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    170170{
    171     return new HTMLInputElement(doc, form);
     171    return new HTMLInputElement(inputTag, doc, form);
    172172}
    173173
    174174static PassRefPtr<HTMLElement> isindexConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    175175{
    176     return new HTMLIsIndexElement(doc, form);
     176    return new HTMLIsIndexElement(isindexTag, doc, form);
    177177}
    178178
    179179static PassRefPtr<HTMLElement> fieldsetConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    180180{
    181     return new HTMLFieldSetElement(doc, form);
     181    return new HTMLFieldSetElement(fieldsetTag, doc, form);
    182182}
    183183
    184184static PassRefPtr<HTMLElement> keygenConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    185185{
    186     return new HTMLKeygenElement(doc, form);
     186    return new HTMLKeygenElement(keygenTag, doc, form);
    187187}
    188188
    189189static PassRefPtr<HTMLElement> labelConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    190190{
    191     return new HTMLLabelElement(doc);
     191    return new HTMLLabelElement(labelTag, doc);
    192192}
    193193
    194194static PassRefPtr<HTMLElement> legendConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    195195{
    196     return new HTMLLegendElement(doc, form);
     196    return new HTMLLegendElement(legendTag, doc, form);
    197197}
    198198
    199199static PassRefPtr<HTMLElement> optgroupConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    200200{
    201     return new HTMLOptGroupElement(doc, form);
     201    return new HTMLOptGroupElement(optgroupTag, doc, form);
    202202}
    203203
    204204static PassRefPtr<HTMLElement> optionConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    205205{
    206     return new HTMLOptionElement(doc, form);
     206    return new HTMLOptionElement(optionTag, doc, form);
    207207}
    208208
    209209static PassRefPtr<HTMLElement> selectConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    210210{
    211     return new HTMLSelectElement(doc, form);
     211    return new HTMLSelectElement(selectTag, doc, form);
    212212}
    213213
    214214static PassRefPtr<HTMLElement> textareaConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool)
    215215{
    216     return new HTMLTextAreaElement(doc, form);
     216    return new HTMLTextAreaElement(textareaTag, doc, form);
    217217}
    218218
    219219static PassRefPtr<HTMLElement> dlConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    220220{
    221     return new HTMLDListElement(doc);
     221    return new HTMLDListElement(dlTag, doc);
    222222}
    223223
    224224static PassRefPtr<HTMLElement> ulConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    225225{
    226     return new HTMLUListElement(doc);
     226    return new HTMLUListElement(ulTag, doc);
    227227}
    228228
    229229static PassRefPtr<HTMLElement> olConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    230230{
    231     return new HTMLOListElement(doc);
     231    return new HTMLOListElement(olTag, doc);
    232232}
    233233
    234234static PassRefPtr<HTMLElement> dirConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    235235{
    236     return new HTMLDirectoryElement(doc);
     236    return new HTMLDirectoryElement(dirTag, doc);
    237237}
    238238
    239239static PassRefPtr<HTMLElement> menuConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    240240{
    241     return new HTMLMenuElement(doc);
     241    return new HTMLMenuElement(menuTag, doc);
    242242}
    243243
    244244static PassRefPtr<HTMLElement> liConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    245245{
    246     return new HTMLLIElement(doc);
     246    return new HTMLLIElement(liTag, doc);
    247247}
    248248
    249249static PassRefPtr<HTMLElement> blockquoteConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    250250{
    251     return new HTMLBlockquoteElement(doc);
     251    return new HTMLBlockquoteElement(blockquoteTag, doc);
    252252}
    253253
    254254static PassRefPtr<HTMLElement> divConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool)
    255255{
    256     return new HTMLDivElement(doc);
     256    return new HTMLDivElement(divTag, doc);
    257257}
    258258
  • trunk/WebCore/html/HTMLFieldSetElement.cpp

    r38418 r38791  
    3636using namespace HTMLNames;
    3737
    38 HTMLFieldSetElement::HTMLFieldSetElement(Document *doc, HTMLFormElement *f)
    39    : HTMLFormControlElement(fieldsetTag, doc, f)
     38HTMLFieldSetElement::HTMLFieldSetElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f)
     39   : HTMLFormControlElement(tagName, doc, f)
    4040{
    4141}
  • trunk/WebCore/html/HTMLFieldSetElement.h

    r35381 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    4139class HTMLFieldSetElement : public HTMLFormControlElement {
    4240public:
    43     HTMLFieldSetElement(Document*, HTMLFormElement* = 0);
     41    HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    4442    virtual ~HTMLFieldSetElement();
    4543   
  • trunk/WebCore/html/HTMLFormElement.cpp

    r38755 r38791  
    6565static const char hexDigits[17] = "0123456789ABCDEF";
    6666
    67 HTMLFormElement::HTMLFormElement(Document* doc)
    68     : HTMLElement(formTag, doc)
     67HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document* doc)
     68    : HTMLElement(tagName, doc)
    6969    , m_elementAliases(0)
    7070    , collectionInfo(0)
  • trunk/WebCore/html/HTMLFormElement.h

    r37037 r38791  
    4242class HTMLFormElement : public HTMLElement {
    4343public:
    44     HTMLFormElement(Document*);
     44    HTMLFormElement(const QualifiedName&, Document*);
    4545    virtual ~HTMLFormElement();
    4646
  • trunk/WebCore/html/HTMLFrameElement.cpp

    r25754 r38791  
    3636using namespace HTMLNames;
    3737
    38 HTMLFrameElement::HTMLFrameElement(Document* doc)
    39     : HTMLFrameElementBase(frameTag, doc)
     38HTMLFrameElement::HTMLFrameElement(const QualifiedName& tagName, Document* doc)
     39    : HTMLFrameElementBase(tagName, doc)
    4040    , m_frameBorder(true)
    4141    , m_frameBorderSet(false)
  • trunk/WebCore/html/HTMLFrameElement.h

    r25754 r38791  
    3939{
    4040public:
    41     HTMLFrameElement(Document*);
     41    HTMLFrameElement(const QualifiedName&, Document*);
    4242
    4343    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
  • trunk/WebCore/html/HTMLFrameSetElement.cpp

    r38094 r38791  
    4242using namespace HTMLNames;
    4343
    44 HTMLFrameSetElement::HTMLFrameSetElement(Document *doc)
    45     : HTMLElement(framesetTag, doc)
     44HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document *doc)
     45    : HTMLElement(tagName, doc)
    4646    , m_rows(0)
    4747    , m_cols(0)
  • trunk/WebCore/html/HTMLFrameSetElement.h

    r25754 r38791  
    3434class HTMLFrameSetElement : public HTMLElement {
    3535public:
    36     HTMLFrameSetElement(Document*);
     36    HTMLFrameSetElement(const QualifiedName&, Document*);
    3737    ~HTMLFrameSetElement();
    3838
  • trunk/WebCore/html/HTMLIFrameElement.cpp

    r31160 r38791  
    3535using namespace HTMLNames;
    3636
    37 HTMLIFrameElement::HTMLIFrameElement(Document* doc)
    38     : HTMLFrameElementBase(iframeTag, doc)
     37HTMLIFrameElement::HTMLIFrameElement(const QualifiedName& tagName, Document* doc)
     38    : HTMLFrameElementBase(tagName, doc)
    3939{
    4040}
  • trunk/WebCore/html/HTMLIFrameElement.h

    r31122 r38791  
    3131class HTMLIFrameElement : public HTMLFrameElementBase {
    3232public:
    33     HTMLIFrameElement(Document*);
     33    HTMLIFrameElement(const QualifiedName&, Document*);
    3434
    3535    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLInputElement.cpp

    r38722 r38791  
    9999            return s->length();
    100100    return textBreakCurrent(it);
    101 }
    102 
    103 HTMLInputElement::HTMLInputElement(Document* doc, HTMLFormElement* f)
    104     : HTMLFormControlElementWithState(inputTag, doc, f)
    105 {
    106     init();
    107101}
    108102
  • trunk/WebCore/html/HTMLInputElement.h

    r38602 r38791  
    5959    };
    6060
    61     HTMLInputElement(Document*, HTMLFormElement* = 0);
    62     HTMLInputElement(const QualifiedName& tagName, Document*, HTMLFormElement* = 0);
     61    HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    6362    virtual ~HTMLInputElement();
    6463
  • trunk/WebCore/html/HTMLIsIndexElement.cpp

    r34559 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331using namespace HTMLNames;
    3432
    35 HTMLIsIndexElement::HTMLIsIndexElement(Document *doc, HTMLFormElement *f)
    36     : HTMLInputElement(isindexTag, doc, f)
     33HTMLIsIndexElement::HTMLIsIndexElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f)
     34    : HTMLInputElement(tagName, doc, f)
    3735{
    3836    m_name = "isindex";
  • trunk/WebCore/html/HTMLIsIndexElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331{
    3432public:
    35     HTMLIsIndexElement(Document *doc, HTMLFormElement *f = 0);
     33    HTMLIsIndexElement(const QualifiedName&, Document *doc, HTMLFormElement *f = 0);
    3634
    3735    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
  • trunk/WebCore/html/HTMLKeygenElement.cpp

    r38418 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    4240using namespace HTMLNames;
    4341
    44 HTMLKeygenElement::HTMLKeygenElement(Document* doc, HTMLFormElement* f)
    45     : HTMLSelectElement(keygenTag, doc, f)
     42HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f)
     43    : HTMLSelectElement(tagName, doc, f)
    4644{
    4745    Vector<String> keys;
     
    5048    Vector<String>::const_iterator end = keys.end();
    5149    for (Vector<String>::const_iterator it = keys.begin(); it != end; ++it) {
    52         HTMLOptionElement* o = new HTMLOptionElement(doc, form());
     50        HTMLOptionElement* o = new HTMLOptionElement(optionTag, doc, form());
    5351        addChild(o);
    5452        o->addChild(new Text(doc, *it));
  • trunk/WebCore/html/HTMLKeygenElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331class HTMLKeygenElement : public HTMLSelectElement {
    3432public:
    35     HTMLKeygenElement(Document*, HTMLFormElement* = 0);
     33    HTMLKeygenElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    3634
    3735    virtual int tagPriority() const { return 0; }
  • trunk/WebCore/html/HTMLLIElement.cpp

    r31160 r38791  
    3333using namespace HTMLNames;
    3434
    35 HTMLLIElement::HTMLLIElement(Document* doc)
    36     : HTMLElement(HTMLNames::liTag, doc)
     35HTMLLIElement::HTMLLIElement(const QualifiedName& tagName, Document* doc)
     36    : HTMLElement(tagName, doc)
    3737    , m_requestedValue(0)
    3838{
  • trunk/WebCore/html/HTMLLIElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3129class HTMLLIElement : public HTMLElement {
    3230public:
    33     HTMLLIElement(Document*);
     31    HTMLLIElement(const QualifiedName&, Document*);
    3432
    3533    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
  • trunk/WebCore/html/HTMLLabelElement.cpp

    r38094 r38791  
    3636using namespace HTMLNames;
    3737
    38 HTMLLabelElement::HTMLLabelElement(Document *doc)
    39     : HTMLElement(labelTag, doc)
     38HTMLLabelElement::HTMLLabelElement(const QualifiedName& tagName, Document *doc)
     39    : HTMLElement(tagName, doc)
    4040{
    4141}
  • trunk/WebCore/html/HTMLLabelElement.h

    r25754 r38791  
    3131class HTMLLabelElement : public HTMLElement {
    3232public:
    33     HTMLLabelElement(Document*);
     33    HTMLLabelElement(const QualifiedName&, Document*);
    3434    virtual ~HTMLLabelElement();
    3535
  • trunk/WebCore/html/HTMLLegendElement.cpp

    r38418 r38791  
    3636using namespace HTMLNames;
    3737
    38 HTMLLegendElement::HTMLLegendElement(Document *doc, HTMLFormElement *f)
    39     : HTMLFormControlElement(legendTag, doc, f)
     38HTMLLegendElement::HTMLLegendElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f)
     39    : HTMLFormControlElement(tagName, doc, f)
    4040{
    4141}
  • trunk/WebCore/html/HTMLLegendElement.h

    r34559 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331class HTMLLegendElement : public HTMLFormControlElement {
    3432public:
    35     HTMLLegendElement(Document*, HTMLFormElement* = 0);
     33    HTMLLegendElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    3634    virtual ~HTMLLegendElement();
    3735
  • trunk/WebCore/html/HTMLMenuElement.cpp

    r25754 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3028using namespace HTMLNames;
    3129
    32 HTMLMenuElement::HTMLMenuElement(Document* doc)
    33     : HTMLElement(HTMLNames::menuTag, doc)
     30HTMLMenuElement::HTMLMenuElement(const QualifiedName& tagName, Document* doc)
     31    : HTMLElement(tagName, doc)
    3432{
    3533}
  • trunk/WebCore/html/HTMLMenuElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3230{
    3331public:
    34     HTMLMenuElement(Document*);
     32    HTMLMenuElement(const QualifiedName&, Document*);
    3533   
    3634    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLOListElement.cpp

    r31160 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3331using namespace HTMLNames;
    3432
    35 HTMLOListElement::HTMLOListElement(Document* doc)
    36     : HTMLElement(HTMLNames::olTag, doc)
     33HTMLOListElement::HTMLOListElement(const QualifiedName& tagName, Document* doc)
     34    : HTMLElement(tagName, doc)
    3735    , m_start(1)
    3836{
  • trunk/WebCore/html/HTMLOListElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3230{
    3331public:
    34     HTMLOListElement(Document*);
     32    HTMLOListElement(const QualifiedName&, Document*);
    3533       
    3634    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLOptGroupElement.cpp

    r38418 r38791  
    3838using namespace HTMLNames;
    3939
    40 HTMLOptGroupElement::HTMLOptGroupElement(Document* doc, HTMLFormElement* f)
    41     : HTMLFormControlElement(optgroupTag, doc, f)
     40HTMLOptGroupElement::HTMLOptGroupElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f)
     41    : HTMLFormControlElement(tagName, doc, f)
    4242    , m_style(0)
    4343{
  • trunk/WebCore/html/HTMLOptGroupElement.h

    r37637 r38791  
    3333class HTMLOptGroupElement : public HTMLFormControlElement {
    3434public:
    35     HTMLOptGroupElement(Document*, HTMLFormElement* = 0);
     35    HTMLOptGroupElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    3636
    3737    virtual bool checkDTD(const Node*);
  • trunk/WebCore/html/HTMLOptionElement.cpp

    r38418 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    4341using namespace HTMLNames;
    4442
    45 HTMLOptionElement::HTMLOptionElement(Document* doc, HTMLFormElement* f)
    46     : HTMLFormControlElement(optionTag, doc, f)
     43HTMLOptionElement::HTMLOptionElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f)
     44    : HTMLFormControlElement(tagName, doc, f)
    4745    , m_selected(false)
    4846    , m_style(0)
  • trunk/WebCore/html/HTMLOptionElement.h

    r37637 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3937
    4038public:
    41     HTMLOptionElement(Document*, HTMLFormElement* = 0);
     39    HTMLOptionElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    4240
    4341    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
  • trunk/WebCore/html/HTMLParser.cpp

    r38769 r38791  
    713713    // This is consistent with other browsers' behavior.
    714714    if (!m_currentFormElement) {
    715         m_currentFormElement = new HTMLFormElement(document);
     715        m_currentFormElement = new HTMLFormElement(formTag, document);
    716716        result = m_currentFormElement;
    717717        pCloserCreateErrorCheck(t, result);
     
    15061506PassRefPtr<Node> HTMLParser::handleIsindex(Token* t)
    15071507{
    1508     RefPtr<Node> n = new HTMLDivElement(document);
     1508    RefPtr<Node> n = new HTMLDivElement(divTag, document);
    15091509
    15101510    NamedMappedAttrMap* attrs = t->attrs.get();
    15111511
    1512     RefPtr<HTMLIsIndexElement> isIndex = new HTMLIsIndexElement(document, m_currentFormElement.get());
     1512    RefPtr<HTMLIsIndexElement> isIndex = new HTMLIsIndexElement(isindexTag, document, m_currentFormElement.get());
    15131513    isIndex->setAttributeMap(attrs);
    15141514    isIndex->setAttribute(typeAttr, "khtml_isindex");
  • trunk/WebCore/html/HTMLSelectElement.cpp

    r38418 r38791  
    6464static const DOMTimeStamp typeAheadTimeout = 1000;
    6565
    66 HTMLSelectElement::HTMLSelectElement(Document* doc, HTMLFormElement* f)
    67     : HTMLFormControlElementWithState(selectTag, doc, f)
    68     , m_minwidth(0)
    69     , m_size(0)
    70     , m_multiple(false)
    71     , m_recalcListItems(false)
    72     , m_lastOnChangeIndex(-1)
    73     , m_activeSelectionAnchorIndex(-1)
    74     , m_activeSelectionEndIndex(-1)
    75     , m_activeSelectionState(false)
    76     , m_repeatingChar(0)
    77     , m_lastCharTime(0)
    78 {
    79 }
    80 
    8166HTMLSelectElement::HTMLSelectElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f)
    8267    : HTMLFormControlElementWithState(tagName, doc, f)
  • trunk/WebCore/html/HTMLSelectElement.h

    r34559 r38791  
    3838class HTMLSelectElement : public HTMLFormControlElementWithState {
    3939public:
    40     HTMLSelectElement(Document*, HTMLFormElement* = 0);
    41     HTMLSelectElement(const QualifiedName& tagName, Document*, HTMLFormElement* = 0);
     40    HTMLSelectElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    4241
    4342    virtual int tagPriority() const { return 6; }
  • trunk/WebCore/html/HTMLStyleElement.cpp

    r35172 r38791  
    3333using namespace HTMLNames;
    3434
    35 HTMLStyleElement::HTMLStyleElement(Document* doc)
    36     : HTMLElement(styleTag, doc)
     35HTMLStyleElement::HTMLStyleElement(const QualifiedName& tagName, Document* doc)
     36    : HTMLElement(tagName, doc)
    3737    , m_loading(false)
    3838    , m_createdByParser(false)
  • trunk/WebCore/html/HTMLStyleElement.h

    r31578 r38791  
    3434{
    3535public:
    36     HTMLStyleElement(Document*);
     36    HTMLStyleElement(const QualifiedName&, Document*);
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLTextAreaElement.cpp

    r38418 r38791  
    4848static const int defaultCols = 20;
    4949
    50 HTMLTextAreaElement::HTMLTextAreaElement(Document* document, HTMLFormElement* form)
    51     : HTMLFormControlElementWithState(textareaTag, document, form)
     50HTMLTextAreaElement::HTMLTextAreaElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
     51    : HTMLFormControlElementWithState(tagName, document, form)
    5252    , m_rows(defaultRows)
    5353    , m_cols(defaultCols)
  • trunk/WebCore/html/HTMLTextAreaElement.h

    r35073 r38791  
    3333class HTMLTextAreaElement : public HTMLFormControlElementWithState {
    3434public:
    35     HTMLTextAreaElement(Document*, HTMLFormElement* = 0);
     35    HTMLTextAreaElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
    3636
    3737    virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
  • trunk/WebCore/html/HTMLTitleElement.cpp

    r30633 r38791  
    3333using namespace HTMLNames;
    3434
    35 HTMLTitleElement::HTMLTitleElement(Document* doc)
    36     : HTMLElement(titleTag, doc)
     35HTMLTitleElement::HTMLTitleElement(const QualifiedName& tagName, Document* doc)
     36    : HTMLElement(tagName, doc)
    3737    , m_title("")
    3838{
  • trunk/WebCore/html/HTMLTitleElement.h

    r30633 r38791  
    3232{
    3333public:
    34     HTMLTitleElement(Document*);
     34    HTMLTitleElement(const QualifiedName&, Document*);
    3535    ~HTMLTitleElement();
    3636
  • trunk/WebCore/html/HTMLUListElement.cpp

    r31160 r38791  
    11/**
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3129using namespace HTMLNames;
    3230
    33 HTMLUListElement::HTMLUListElement(Document* doc)
    34     : HTMLElement(HTMLNames::ulTag, doc)
     31HTMLUListElement::HTMLUListElement(const QualifiedName& tagName, Document* doc)
     32    : HTMLElement(tagName, doc)
    3533{
    3634}
  • trunk/WebCore/html/HTMLUListElement.h

    r25754 r38791  
    11/*
    2  * This file is part of the DOM implementation for KDE.
    3  *
    42 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    53 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
     
    3230{
    3331public:
    34     HTMLUListElement(Document*);
     32    HTMLUListElement(const QualifiedName&, Document*);
    3533
    3634    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
  • trunk/WebCore/html/HTMLViewSourceDocument.cpp

    r38769 r38791  
    7171    // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
    7272    // document.
    73     RefPtr<Element> div = new HTMLDivElement(this);
     73    RefPtr<Element> div = new HTMLDivElement(divTag, this);
    7474    RefPtr<NamedMappedAttrMap> attrs = NamedMappedAttrMap::create();
    7575    attrs->insertAttribute(MappedAttribute::create(classAttr, "webkit-line-gutter-backdrop"), true);
  • trunk/WebCore/rendering/MediaControlElements.cpp

    r38094 r38791  
    5151
    5252MediaControlShadowRootElement::MediaControlShadowRootElement(Document* doc, HTMLMediaElement* mediaElement)
    53     : HTMLDivElement(doc)
     53    : HTMLDivElement(divTag, doc)
    5454    , m_mediaElement(mediaElement)
    5555{
     
    6969
    7070MediaControlInputElement::MediaControlInputElement(Document* doc, RenderStyle::PseudoId pseudo, const String& type, HTMLMediaElement* mediaElement)
    71     : HTMLInputElement(doc)
     71    : HTMLInputElement(inputTag, doc)
    7272    , m_mediaElement(mediaElement)
    7373{
  • trunk/WebCore/rendering/RenderFileUploadControl.cpp

    r37880 r38791  
    291291   
    292292HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement(Document* doc, Node* shadowParent)
    293     : HTMLInputElement(doc)
     293    : HTMLInputElement(inputTag, doc)
    294294    , m_shadowParent(shadowParent)
    295295{
  • trunk/WebCore/rendering/RenderMedia.cpp

    r38612 r38791  
    3636#include "GraphicsContext.h"
    3737#include "HTMLMediaElement.h"
     38#include "HTMLNames.h"
    3839#include "MediaControlElements.h"
    3940#include "MouseEvent.h"
     
    146147    ASSERT(!m_panel);
    147148    RenderStyle* style = getCachedPseudoStyle(RenderStyle::MEDIA_CONTROLS_PANEL);
    148     m_panel = new HTMLDivElement(document());
     149    m_panel = new HTMLDivElement(HTMLNames::divTag, document());
    149150    RenderObject* renderer = m_panel->createRenderer(renderArena(), style);
    150151    if (renderer) {
     
    197198    ASSERT(!m_timeDisplay);
    198199    RenderStyle* style = getCachedPseudoStyle(RenderStyle::MEDIA_CONTROLS_TIME_DISPLAY);
    199     m_timeDisplay = new HTMLDivElement(document());
     200    m_timeDisplay = new HTMLDivElement(HTMLNames::divTag, document());
    200201    RenderObject* renderer = m_timeDisplay->createRenderer(renderArena(), style);
    201202    if (renderer) {
  • trunk/WebCore/rendering/RenderSlider.cpp

    r38193 r38791  
    6161
    6262HTMLSliderThumbElement::HTMLSliderThumbElement(Document* doc, Node* shadowParent)
    63     : HTMLDivElement(doc)
     63    : HTMLDivElement(divTag, doc)
    6464    , m_shadowParent(shadowParent)
    6565    , m_initialClickPoint(IntPoint())
  • trunk/WebCore/rendering/TextControlInnerElements.cpp

    r38094 r38791  
    3333#include "Frame.h"
    3434#include "HTMLInputElement.h"
     35#include "HTMLNames.h"
    3536#include "HTMLTextAreaElement.h"
    3637#include "MouseEvent.h"
     
    5455
    5556TextControlInnerElement::TextControlInnerElement(Document* doc, Node* shadowParent)
    56     : HTMLDivElement(doc), m_shadowParent(shadowParent)
     57    : HTMLDivElement(HTMLNames::divTag, doc)
     58    , m_shadowParent(shadowParent)
    5759{
    5860}
Note: See TracChangeset for help on using the changeset viewer.