Changeset 38791 in webkit
- Timestamp:
- Nov 26, 2008 3:07:45 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r38790 r38791 1 2008-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 1 130 2008-11-26 Nikolas Zimmermann <nikolas.zimmermann@torchmobile.com> 2 131 -
trunk/WebCore/editing/DeleteButtonController.cpp
r35731 r38791 143 143 void DeleteButtonController::createDeletionUI() 144 144 { 145 RefPtr<HTMLDivElement> container = new HTMLDivElement( m_target->document());145 RefPtr<HTMLDivElement> container = new HTMLDivElement(divTag, m_target->document()); 146 146 container->setId(containerElementIdentifier); 147 147 … … 151 151 style->setProperty(CSSPropertyWebkitUserModify, CSSValueNone); 152 152 153 RefPtr<HTMLDivElement> outline = new HTMLDivElement( m_target->document());153 RefPtr<HTMLDivElement> outline = new HTMLDivElement(divTag, m_target->document()); 154 154 outline->setId(outlineElementIdentifier); 155 155 -
trunk/WebCore/html/HTMLBlockquoteElement.cpp
r25754 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 31 29 using namespace HTMLNames; 32 30 33 HTMLBlockquoteElement::HTMLBlockquoteElement( Document* doc)34 : HTMLElement( blockquoteTag, doc)31 HTMLBlockquoteElement::HTMLBlockquoteElement(const QualifiedName& tagName, Document* doc) 32 : HTMLElement(tagName, doc) 35 33 { 36 34 } -
trunk/WebCore/html/HTMLBlockquoteElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 31 29 class HTMLBlockquoteElement : public HTMLElement { 32 30 public: 33 HTMLBlockquoteElement( Document*);31 HTMLBlockquoteElement(const QualifiedName&, Document*); 34 32 ~HTMLBlockquoteElement(); 35 33 -
trunk/WebCore/html/HTMLButtonElement.cpp
r38418 r38791 39 39 using namespace HTMLNames; 40 40 41 HTMLButtonElement::HTMLButtonElement( Document* doc, HTMLFormElement* form)42 : HTMLFormControlElement( buttonTag, doc, form)41 HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* form) 42 : HTMLFormControlElement(tagName, doc, form) 43 43 , m_type(SUBMIT) 44 44 , m_activeSubmit(false) -
trunk/WebCore/html/HTMLButtonElement.h
r35381 r38791 31 31 class HTMLButtonElement : public HTMLFormControlElement { 32 32 public: 33 HTMLButtonElement( Document*, HTMLFormElement* = 0);33 HTMLButtonElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 34 34 virtual ~HTMLButtonElement(); 35 35 -
trunk/WebCore/html/HTMLDListElement.cpp
r25754 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 30 28 using namespace HTMLNames; 31 29 32 HTMLDListElement::HTMLDListElement( Document* doc)33 : HTMLElement( HTMLNames::dlTag, doc)30 HTMLDListElement::HTMLDListElement(const QualifiedName& tagName, Document* doc) 31 : HTMLElement(tagName, doc) 34 32 { 35 33 } -
trunk/WebCore/html/HTMLDListElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 32 30 { 33 31 public: 34 HTMLDListElement( Document*);32 HTMLDListElement(const QualifiedName&, Document*); 35 33 36 34 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLDirectoryElement.cpp
r25754 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 30 28 using namespace HTMLNames; 31 29 32 HTMLDirectoryElement::HTMLDirectoryElement( Document* doc)33 : HTMLElement( HTMLNames::dirTag, doc)30 HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* doc) 31 : HTMLElement(tagName, doc) 34 32 { 35 33 } -
trunk/WebCore/html/HTMLDirectoryElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 32 30 { 33 31 public: 34 HTMLDirectoryElement( Document*);32 HTMLDirectoryElement(const QualifiedName&, Document*); 35 33 36 34 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLDivElement.cpp
r31160 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 using namespace HTMLNames; 34 32 35 HTMLDivElement::HTMLDivElement( Document *doc)36 : HTMLElement( divTag, doc)33 HTMLDivElement::HTMLDivElement(const QualifiedName& tagName, Document *doc) 34 : HTMLElement(tagName, doc) 37 35 { 38 36 } -
trunk/WebCore/html/HTMLDivElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 31 29 class HTMLDivElement : public HTMLElement { 32 30 public: 33 HTMLDivElement( Document*);31 HTMLDivElement(const QualifiedName&, Document*); 34 32 ~HTMLDivElement(); 35 33 -
trunk/WebCore/html/HTMLElementFactory.cpp
r38769 r38791 128 128 static PassRefPtr<HTMLElement> styleConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser) 129 129 { 130 RefPtr<HTMLStyleElement> style = new HTMLStyleElement( doc);130 RefPtr<HTMLStyleElement> style = new HTMLStyleElement(styleTag, doc); 131 131 style->setCreatedByParser(createdByParser); 132 132 return style.release(); … … 135 135 static PassRefPtr<HTMLElement> titleConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 136 136 { 137 return new HTMLTitleElement( doc);137 return new HTMLTitleElement(titleTag, doc); 138 138 } 139 139 140 140 static PassRefPtr<HTMLElement> frameConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser) 141 141 { 142 RefPtr<HTMLFrameElement> frame = new HTMLFrameElement( doc);142 RefPtr<HTMLFrameElement> frame = new HTMLFrameElement(frameTag, doc); 143 143 frame->setCreatedByParser(createdByParser); 144 144 return frame.release(); … … 147 147 static PassRefPtr<HTMLElement> framesetConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 148 148 { 149 return new HTMLFrameSetElement( doc);149 return new HTMLFrameSetElement(framesetTag, doc); 150 150 } 151 151 152 152 static PassRefPtr<HTMLElement> iframeConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool createdByParser) 153 153 { 154 RefPtr<HTMLIFrameElement> iFrame = new HTMLIFrameElement( doc);154 RefPtr<HTMLIFrameElement> iFrame = new HTMLIFrameElement(iframeTag, doc); 155 155 iFrame->setCreatedByParser(createdByParser); 156 156 return iFrame.release(); … … 159 159 static PassRefPtr<HTMLElement> formConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 160 160 { 161 return new HTMLFormElement( doc);161 return new HTMLFormElement(formTag, doc); 162 162 } 163 163 164 164 static PassRefPtr<HTMLElement> buttonConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 165 165 { 166 return new HTMLButtonElement( doc, form);166 return new HTMLButtonElement(buttonTag, doc, form); 167 167 } 168 168 169 169 static PassRefPtr<HTMLElement> inputConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 170 170 { 171 return new HTMLInputElement( doc, form);171 return new HTMLInputElement(inputTag, doc, form); 172 172 } 173 173 174 174 static PassRefPtr<HTMLElement> isindexConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 175 175 { 176 return new HTMLIsIndexElement( doc, form);176 return new HTMLIsIndexElement(isindexTag, doc, form); 177 177 } 178 178 179 179 static PassRefPtr<HTMLElement> fieldsetConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 180 180 { 181 return new HTMLFieldSetElement( doc, form);181 return new HTMLFieldSetElement(fieldsetTag, doc, form); 182 182 } 183 183 184 184 static PassRefPtr<HTMLElement> keygenConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 185 185 { 186 return new HTMLKeygenElement( doc, form);186 return new HTMLKeygenElement(keygenTag, doc, form); 187 187 } 188 188 189 189 static PassRefPtr<HTMLElement> labelConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 190 190 { 191 return new HTMLLabelElement( doc);191 return new HTMLLabelElement(labelTag, doc); 192 192 } 193 193 194 194 static PassRefPtr<HTMLElement> legendConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 195 195 { 196 return new HTMLLegendElement( doc, form);196 return new HTMLLegendElement(legendTag, doc, form); 197 197 } 198 198 199 199 static PassRefPtr<HTMLElement> optgroupConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 200 200 { 201 return new HTMLOptGroupElement( doc, form);201 return new HTMLOptGroupElement(optgroupTag, doc, form); 202 202 } 203 203 204 204 static PassRefPtr<HTMLElement> optionConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 205 205 { 206 return new HTMLOptionElement( doc, form);206 return new HTMLOptionElement(optionTag, doc, form); 207 207 } 208 208 209 209 static PassRefPtr<HTMLElement> selectConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 210 210 { 211 return new HTMLSelectElement( doc, form);211 return new HTMLSelectElement(selectTag, doc, form); 212 212 } 213 213 214 214 static PassRefPtr<HTMLElement> textareaConstructor(const QualifiedName&, Document* doc, HTMLFormElement* form, bool) 215 215 { 216 return new HTMLTextAreaElement( doc, form);216 return new HTMLTextAreaElement(textareaTag, doc, form); 217 217 } 218 218 219 219 static PassRefPtr<HTMLElement> dlConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 220 220 { 221 return new HTMLDListElement(d oc);221 return new HTMLDListElement(dlTag, doc); 222 222 } 223 223 224 224 static PassRefPtr<HTMLElement> ulConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 225 225 { 226 return new HTMLUListElement( doc);226 return new HTMLUListElement(ulTag, doc); 227 227 } 228 228 229 229 static PassRefPtr<HTMLElement> olConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 230 230 { 231 return new HTMLOListElement( doc);231 return new HTMLOListElement(olTag, doc); 232 232 } 233 233 234 234 static PassRefPtr<HTMLElement> dirConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 235 235 { 236 return new HTMLDirectoryElement(d oc);236 return new HTMLDirectoryElement(dirTag, doc); 237 237 } 238 238 239 239 static PassRefPtr<HTMLElement> menuConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 240 240 { 241 return new HTMLMenuElement( doc);241 return new HTMLMenuElement(menuTag, doc); 242 242 } 243 243 244 244 static PassRefPtr<HTMLElement> liConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 245 245 { 246 return new HTMLLIElement( doc);246 return new HTMLLIElement(liTag, doc); 247 247 } 248 248 249 249 static PassRefPtr<HTMLElement> blockquoteConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 250 250 { 251 return new HTMLBlockquoteElement( doc);251 return new HTMLBlockquoteElement(blockquoteTag, doc); 252 252 } 253 253 254 254 static PassRefPtr<HTMLElement> divConstructor(const QualifiedName&, Document* doc, HTMLFormElement*, bool) 255 255 { 256 return new HTMLDivElement(d oc);256 return new HTMLDivElement(divTag, doc); 257 257 } 258 258 -
trunk/WebCore/html/HTMLFieldSetElement.cpp
r38418 r38791 36 36 using namespace HTMLNames; 37 37 38 HTMLFieldSetElement::HTMLFieldSetElement( Document *doc, HTMLFormElement *f)39 : HTMLFormControlElement( fieldsetTag, doc, f)38 HTMLFieldSetElement::HTMLFieldSetElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f) 39 : HTMLFormControlElement(tagName, doc, f) 40 40 { 41 41 } -
trunk/WebCore/html/HTMLFieldSetElement.h
r35381 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 41 39 class HTMLFieldSetElement : public HTMLFormControlElement { 42 40 public: 43 HTMLFieldSetElement( Document*, HTMLFormElement* = 0);41 HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 44 42 virtual ~HTMLFieldSetElement(); 45 43 -
trunk/WebCore/html/HTMLFormElement.cpp
r38755 r38791 65 65 static const char hexDigits[17] = "0123456789ABCDEF"; 66 66 67 HTMLFormElement::HTMLFormElement( Document* doc)68 : HTMLElement( formTag, doc)67 HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document* doc) 68 : HTMLElement(tagName, doc) 69 69 , m_elementAliases(0) 70 70 , collectionInfo(0) -
trunk/WebCore/html/HTMLFormElement.h
r37037 r38791 42 42 class HTMLFormElement : public HTMLElement { 43 43 public: 44 HTMLFormElement( Document*);44 HTMLFormElement(const QualifiedName&, Document*); 45 45 virtual ~HTMLFormElement(); 46 46 -
trunk/WebCore/html/HTMLFrameElement.cpp
r25754 r38791 36 36 using namespace HTMLNames; 37 37 38 HTMLFrameElement::HTMLFrameElement( Document* doc)39 : HTMLFrameElementBase( frameTag, doc)38 HTMLFrameElement::HTMLFrameElement(const QualifiedName& tagName, Document* doc) 39 : HTMLFrameElementBase(tagName, doc) 40 40 , m_frameBorder(true) 41 41 , m_frameBorderSet(false) -
trunk/WebCore/html/HTMLFrameElement.h
r25754 r38791 39 39 { 40 40 public: 41 HTMLFrameElement( Document*);41 HTMLFrameElement(const QualifiedName&, Document*); 42 42 43 43 virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; } -
trunk/WebCore/html/HTMLFrameSetElement.cpp
r38094 r38791 42 42 using namespace HTMLNames; 43 43 44 HTMLFrameSetElement::HTMLFrameSetElement( Document *doc)45 : HTMLElement( framesetTag, doc)44 HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document *doc) 45 : HTMLElement(tagName, doc) 46 46 , m_rows(0) 47 47 , m_cols(0) -
trunk/WebCore/html/HTMLFrameSetElement.h
r25754 r38791 34 34 class HTMLFrameSetElement : public HTMLElement { 35 35 public: 36 HTMLFrameSetElement( Document*);36 HTMLFrameSetElement(const QualifiedName&, Document*); 37 37 ~HTMLFrameSetElement(); 38 38 -
trunk/WebCore/html/HTMLIFrameElement.cpp
r31160 r38791 35 35 using namespace HTMLNames; 36 36 37 HTMLIFrameElement::HTMLIFrameElement( Document* doc)38 : HTMLFrameElementBase( iframeTag, doc)37 HTMLIFrameElement::HTMLIFrameElement(const QualifiedName& tagName, Document* doc) 38 : HTMLFrameElementBase(tagName, doc) 39 39 { 40 40 } -
trunk/WebCore/html/HTMLIFrameElement.h
r31122 r38791 31 31 class HTMLIFrameElement : public HTMLFrameElementBase { 32 32 public: 33 HTMLIFrameElement( Document*);33 HTMLIFrameElement(const QualifiedName&, Document*); 34 34 35 35 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLInputElement.cpp
r38722 r38791 99 99 return s->length(); 100 100 return textBreakCurrent(it); 101 }102 103 HTMLInputElement::HTMLInputElement(Document* doc, HTMLFormElement* f)104 : HTMLFormControlElementWithState(inputTag, doc, f)105 {106 init();107 101 } 108 102 -
trunk/WebCore/html/HTMLInputElement.h
r38602 r38791 59 59 }; 60 60 61 HTMLInputElement(Document*, HTMLFormElement* = 0); 62 HTMLInputElement(const QualifiedName& tagName, Document*, HTMLFormElement* = 0); 61 HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 63 62 virtual ~HTMLInputElement(); 64 63 -
trunk/WebCore/html/HTMLIsIndexElement.cpp
r34559 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 using namespace HTMLNames; 34 32 35 HTMLIsIndexElement::HTMLIsIndexElement( Document *doc, HTMLFormElement *f)36 : HTMLInputElement( isindexTag, doc, f)33 HTMLIsIndexElement::HTMLIsIndexElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f) 34 : HTMLInputElement(tagName, doc, f) 37 35 { 38 36 m_name = "isindex"; -
trunk/WebCore/html/HTMLIsIndexElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 { 34 32 public: 35 HTMLIsIndexElement( Document *doc, HTMLFormElement *f = 0);33 HTMLIsIndexElement(const QualifiedName&, Document *doc, HTMLFormElement *f = 0); 36 34 37 35 virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; } -
trunk/WebCore/html/HTMLKeygenElement.cpp
r38418 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 42 40 using namespace HTMLNames; 43 41 44 HTMLKeygenElement::HTMLKeygenElement( Document* doc, HTMLFormElement* f)45 : HTMLSelectElement( keygenTag, doc, f)42 HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) 43 : HTMLSelectElement(tagName, doc, f) 46 44 { 47 45 Vector<String> keys; … … 50 48 Vector<String>::const_iterator end = keys.end(); 51 49 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()); 53 51 addChild(o); 54 52 o->addChild(new Text(doc, *it)); -
trunk/WebCore/html/HTMLKeygenElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 class HTMLKeygenElement : public HTMLSelectElement { 34 32 public: 35 HTMLKeygenElement( Document*, HTMLFormElement* = 0);33 HTMLKeygenElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 36 34 37 35 virtual int tagPriority() const { return 0; } -
trunk/WebCore/html/HTMLLIElement.cpp
r31160 r38791 33 33 using namespace HTMLNames; 34 34 35 HTMLLIElement::HTMLLIElement( Document* doc)36 : HTMLElement( HTMLNames::liTag, doc)35 HTMLLIElement::HTMLLIElement(const QualifiedName& tagName, Document* doc) 36 : HTMLElement(tagName, doc) 37 37 , m_requestedValue(0) 38 38 { -
trunk/WebCore/html/HTMLLIElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 31 29 class HTMLLIElement : public HTMLElement { 32 30 public: 33 HTMLLIElement( Document*);31 HTMLLIElement(const QualifiedName&, Document*); 34 32 35 33 virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; } -
trunk/WebCore/html/HTMLLabelElement.cpp
r38094 r38791 36 36 using namespace HTMLNames; 37 37 38 HTMLLabelElement::HTMLLabelElement( Document *doc)39 : HTMLElement( labelTag, doc)38 HTMLLabelElement::HTMLLabelElement(const QualifiedName& tagName, Document *doc) 39 : HTMLElement(tagName, doc) 40 40 { 41 41 } -
trunk/WebCore/html/HTMLLabelElement.h
r25754 r38791 31 31 class HTMLLabelElement : public HTMLElement { 32 32 public: 33 HTMLLabelElement( Document*);33 HTMLLabelElement(const QualifiedName&, Document*); 34 34 virtual ~HTMLLabelElement(); 35 35 -
trunk/WebCore/html/HTMLLegendElement.cpp
r38418 r38791 36 36 using namespace HTMLNames; 37 37 38 HTMLLegendElement::HTMLLegendElement( Document *doc, HTMLFormElement *f)39 : HTMLFormControlElement( legendTag, doc, f)38 HTMLLegendElement::HTMLLegendElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f) 39 : HTMLFormControlElement(tagName, doc, f) 40 40 { 41 41 } -
trunk/WebCore/html/HTMLLegendElement.h
r34559 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 class HTMLLegendElement : public HTMLFormControlElement { 34 32 public: 35 HTMLLegendElement( Document*, HTMLFormElement* = 0);33 HTMLLegendElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 36 34 virtual ~HTMLLegendElement(); 37 35 -
trunk/WebCore/html/HTMLMenuElement.cpp
r25754 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 30 28 using namespace HTMLNames; 31 29 32 HTMLMenuElement::HTMLMenuElement( Document* doc)33 : HTMLElement( HTMLNames::menuTag, doc)30 HTMLMenuElement::HTMLMenuElement(const QualifiedName& tagName, Document* doc) 31 : HTMLElement(tagName, doc) 34 32 { 35 33 } -
trunk/WebCore/html/HTMLMenuElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 32 30 { 33 31 public: 34 HTMLMenuElement( Document*);32 HTMLMenuElement(const QualifiedName&, Document*); 35 33 36 34 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLOListElement.cpp
r31160 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 33 31 using namespace HTMLNames; 34 32 35 HTMLOListElement::HTMLOListElement( Document* doc)36 : HTMLElement( HTMLNames::olTag, doc)33 HTMLOListElement::HTMLOListElement(const QualifiedName& tagName, Document* doc) 34 : HTMLElement(tagName, doc) 37 35 , m_start(1) 38 36 { -
trunk/WebCore/html/HTMLOListElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 32 30 { 33 31 public: 34 HTMLOListElement( Document*);32 HTMLOListElement(const QualifiedName&, Document*); 35 33 36 34 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLOptGroupElement.cpp
r38418 r38791 38 38 using namespace HTMLNames; 39 39 40 HTMLOptGroupElement::HTMLOptGroupElement( Document* doc, HTMLFormElement* f)41 : HTMLFormControlElement( optgroupTag, doc, f)40 HTMLOptGroupElement::HTMLOptGroupElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) 41 : HTMLFormControlElement(tagName, doc, f) 42 42 , m_style(0) 43 43 { -
trunk/WebCore/html/HTMLOptGroupElement.h
r37637 r38791 33 33 class HTMLOptGroupElement : public HTMLFormControlElement { 34 34 public: 35 HTMLOptGroupElement( Document*, HTMLFormElement* = 0);35 HTMLOptGroupElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 36 36 37 37 virtual bool checkDTD(const Node*); -
trunk/WebCore/html/HTMLOptionElement.cpp
r38418 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 43 41 using namespace HTMLNames; 44 42 45 HTMLOptionElement::HTMLOptionElement( Document* doc, HTMLFormElement* f)46 : HTMLFormControlElement( optionTag, doc, f)43 HTMLOptionElement::HTMLOptionElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) 44 : HTMLFormControlElement(tagName, doc, f) 47 45 , m_selected(false) 48 46 , m_style(0) -
trunk/WebCore/html/HTMLOptionElement.h
r37637 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 39 37 40 38 public: 41 HTMLOptionElement( Document*, HTMLFormElement* = 0);39 HTMLOptionElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 42 40 43 41 virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; } -
trunk/WebCore/html/HTMLParser.cpp
r38769 r38791 713 713 // This is consistent with other browsers' behavior. 714 714 if (!m_currentFormElement) { 715 m_currentFormElement = new HTMLFormElement( document);715 m_currentFormElement = new HTMLFormElement(formTag, document); 716 716 result = m_currentFormElement; 717 717 pCloserCreateErrorCheck(t, result); … … 1506 1506 PassRefPtr<Node> HTMLParser::handleIsindex(Token* t) 1507 1507 { 1508 RefPtr<Node> n = new HTMLDivElement(d ocument);1508 RefPtr<Node> n = new HTMLDivElement(divTag, document); 1509 1509 1510 1510 NamedMappedAttrMap* attrs = t->attrs.get(); 1511 1511 1512 RefPtr<HTMLIsIndexElement> isIndex = new HTMLIsIndexElement( document, m_currentFormElement.get());1512 RefPtr<HTMLIsIndexElement> isIndex = new HTMLIsIndexElement(isindexTag, document, m_currentFormElement.get()); 1513 1513 isIndex->setAttributeMap(attrs); 1514 1514 isIndex->setAttribute(typeAttr, "khtml_isindex"); -
trunk/WebCore/html/HTMLSelectElement.cpp
r38418 r38791 64 64 static const DOMTimeStamp typeAheadTimeout = 1000; 65 65 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 81 66 HTMLSelectElement::HTMLSelectElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) 82 67 : HTMLFormControlElementWithState(tagName, doc, f) -
trunk/WebCore/html/HTMLSelectElement.h
r34559 r38791 38 38 class HTMLSelectElement : public HTMLFormControlElementWithState { 39 39 public: 40 HTMLSelectElement(Document*, HTMLFormElement* = 0); 41 HTMLSelectElement(const QualifiedName& tagName, Document*, HTMLFormElement* = 0); 40 HTMLSelectElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 42 41 43 42 virtual int tagPriority() const { return 6; } -
trunk/WebCore/html/HTMLStyleElement.cpp
r35172 r38791 33 33 using namespace HTMLNames; 34 34 35 HTMLStyleElement::HTMLStyleElement( Document* doc)36 : HTMLElement( styleTag, doc)35 HTMLStyleElement::HTMLStyleElement(const QualifiedName& tagName, Document* doc) 36 : HTMLElement(tagName, doc) 37 37 , m_loading(false) 38 38 , m_createdByParser(false) -
trunk/WebCore/html/HTMLStyleElement.h
r31578 r38791 34 34 { 35 35 public: 36 HTMLStyleElement( Document*);36 HTMLStyleElement(const QualifiedName&, Document*); 37 37 38 38 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r38418 r38791 48 48 static const int defaultCols = 20; 49 49 50 HTMLTextAreaElement::HTMLTextAreaElement( Document* document, HTMLFormElement* form)51 : HTMLFormControlElementWithState(t extareaTag, document, form)50 HTMLTextAreaElement::HTMLTextAreaElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form) 51 : HTMLFormControlElementWithState(tagName, document, form) 52 52 , m_rows(defaultRows) 53 53 , m_cols(defaultCols) -
trunk/WebCore/html/HTMLTextAreaElement.h
r35073 r38791 33 33 class HTMLTextAreaElement : public HTMLFormControlElementWithState { 34 34 public: 35 HTMLTextAreaElement( Document*, HTMLFormElement* = 0);35 HTMLTextAreaElement(const QualifiedName&, Document*, HTMLFormElement* = 0); 36 36 37 37 virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); } -
trunk/WebCore/html/HTMLTitleElement.cpp
r30633 r38791 33 33 using namespace HTMLNames; 34 34 35 HTMLTitleElement::HTMLTitleElement( Document* doc)36 : HTMLElement(t itleTag, doc)35 HTMLTitleElement::HTMLTitleElement(const QualifiedName& tagName, Document* doc) 36 : HTMLElement(tagName, doc) 37 37 , m_title("") 38 38 { -
trunk/WebCore/html/HTMLTitleElement.h
r30633 r38791 32 32 { 33 33 public: 34 HTMLTitleElement( Document*);34 HTMLTitleElement(const QualifiedName&, Document*); 35 35 ~HTMLTitleElement(); 36 36 -
trunk/WebCore/html/HTMLUListElement.cpp
r31160 r38791 1 1 /** 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 31 29 using namespace HTMLNames; 32 30 33 HTMLUListElement::HTMLUListElement( Document* doc)34 : HTMLElement( HTMLNames::ulTag, doc)31 HTMLUListElement::HTMLUListElement(const QualifiedName& tagName, Document* doc) 32 : HTMLElement(tagName, doc) 35 33 { 36 34 } -
trunk/WebCore/html/HTMLUListElement.h
r25754 r38791 1 1 /* 2 * This file is part of the DOM implementation for KDE.3 *4 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 5 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) … … 32 30 { 33 31 public: 34 HTMLUListElement( Document*);32 HTMLUListElement(const QualifiedName&, Document*); 35 33 36 34 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } -
trunk/WebCore/html/HTMLViewSourceDocument.cpp
r38769 r38791 71 71 // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole 72 72 // document. 73 RefPtr<Element> div = new HTMLDivElement( this);73 RefPtr<Element> div = new HTMLDivElement(divTag, this); 74 74 RefPtr<NamedMappedAttrMap> attrs = NamedMappedAttrMap::create(); 75 75 attrs->insertAttribute(MappedAttribute::create(classAttr, "webkit-line-gutter-backdrop"), true); -
trunk/WebCore/rendering/MediaControlElements.cpp
r38094 r38791 51 51 52 52 MediaControlShadowRootElement::MediaControlShadowRootElement(Document* doc, HTMLMediaElement* mediaElement) 53 : HTMLDivElement(d oc)53 : HTMLDivElement(divTag, doc) 54 54 , m_mediaElement(mediaElement) 55 55 { … … 69 69 70 70 MediaControlInputElement::MediaControlInputElement(Document* doc, RenderStyle::PseudoId pseudo, const String& type, HTMLMediaElement* mediaElement) 71 : HTMLInputElement( doc)71 : HTMLInputElement(inputTag, doc) 72 72 , m_mediaElement(mediaElement) 73 73 { -
trunk/WebCore/rendering/RenderFileUploadControl.cpp
r37880 r38791 291 291 292 292 HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement(Document* doc, Node* shadowParent) 293 : HTMLInputElement( doc)293 : HTMLInputElement(inputTag, doc) 294 294 , m_shadowParent(shadowParent) 295 295 { -
trunk/WebCore/rendering/RenderMedia.cpp
r38612 r38791 36 36 #include "GraphicsContext.h" 37 37 #include "HTMLMediaElement.h" 38 #include "HTMLNames.h" 38 39 #include "MediaControlElements.h" 39 40 #include "MouseEvent.h" … … 146 147 ASSERT(!m_panel); 147 148 RenderStyle* style = getCachedPseudoStyle(RenderStyle::MEDIA_CONTROLS_PANEL); 148 m_panel = new HTMLDivElement( document());149 m_panel = new HTMLDivElement(HTMLNames::divTag, document()); 149 150 RenderObject* renderer = m_panel->createRenderer(renderArena(), style); 150 151 if (renderer) { … … 197 198 ASSERT(!m_timeDisplay); 198 199 RenderStyle* style = getCachedPseudoStyle(RenderStyle::MEDIA_CONTROLS_TIME_DISPLAY); 199 m_timeDisplay = new HTMLDivElement( document());200 m_timeDisplay = new HTMLDivElement(HTMLNames::divTag, document()); 200 201 RenderObject* renderer = m_timeDisplay->createRenderer(renderArena(), style); 201 202 if (renderer) { -
trunk/WebCore/rendering/RenderSlider.cpp
r38193 r38791 61 61 62 62 HTMLSliderThumbElement::HTMLSliderThumbElement(Document* doc, Node* shadowParent) 63 : HTMLDivElement(d oc)63 : HTMLDivElement(divTag, doc) 64 64 , m_shadowParent(shadowParent) 65 65 , m_initialClickPoint(IntPoint()) -
trunk/WebCore/rendering/TextControlInnerElements.cpp
r38094 r38791 33 33 #include "Frame.h" 34 34 #include "HTMLInputElement.h" 35 #include "HTMLNames.h" 35 36 #include "HTMLTextAreaElement.h" 36 37 #include "MouseEvent.h" … … 54 55 55 56 TextControlInnerElement::TextControlInnerElement(Document* doc, Node* shadowParent) 56 : HTMLDivElement(doc), m_shadowParent(shadowParent) 57 : HTMLDivElement(HTMLNames::divTag, doc) 58 , m_shadowParent(shadowParent) 57 59 { 58 60 }
Note: See TracChangeset
for help on using the changeset viewer.