Changeset 38878 in webkit
- Timestamp:
- Dec 1, 2008 3:07:04 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r38876 r38878 1 2008-12-01 Julien Chaffraix <jchaffraix@webkit.org> 2 3 Reviewed by Antti Koivisto. 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 Add an assertion to the modified HTML elements' constructor 9 to check that the QualifiedName parameter is the one that 10 matches the Element's. 11 12 * html/HTMLBaseElement.cpp: 13 (WebCore::HTMLBaseElement::HTMLBaseElement): 14 * html/HTMLBlockquoteElement.cpp: 15 (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement): 16 * html/HTMLBodyElement.cpp: 17 (WebCore::HTMLBodyElement::HTMLBodyElement): 18 * html/HTMLButtonElement.cpp: 19 (WebCore::HTMLButtonElement::HTMLButtonElement): 20 * html/HTMLDListElement.cpp: 21 (WebCore::HTMLDListElement::HTMLDListElement): 22 * html/HTMLDirectoryElement.cpp: 23 (WebCore::HTMLDirectoryElement::HTMLDirectoryElement): 24 * html/HTMLDivElement.cpp: 25 (WebCore::HTMLDivElement::HTMLDivElement): 26 * html/HTMLFieldSetElement.cpp: 27 (WebCore::HTMLFieldSetElement::HTMLFieldSetElement): 28 * html/HTMLFormElement.cpp: 29 (WebCore::HTMLFormElement::HTMLFormElement): 30 * html/HTMLFrameElement.cpp: 31 (WebCore::HTMLFrameElement::HTMLFrameElement): 32 * html/HTMLFrameSetElement.cpp: 33 (WebCore::HTMLFrameSetElement::HTMLFrameSetElement): 34 * html/HTMLHeadElement.cpp: 35 (WebCore::HTMLHeadElement::HTMLHeadElement): 36 * html/HTMLHtmlElement.cpp: 37 (WebCore::HTMLHtmlElement::HTMLHtmlElement): 38 * html/HTMLIFrameElement.cpp: 39 (WebCore::HTMLIFrameElement::HTMLIFrameElement): 40 * html/HTMLInputElement.cpp: 41 (WebCore::HTMLInputElement::HTMLInputElement): 42 * html/HTMLIsIndexElement.cpp: 43 (WebCore::HTMLIsIndexElement::HTMLIsIndexElement): 44 * html/HTMLKeygenElement.cpp: 45 (WebCore::HTMLKeygenElement::HTMLKeygenElement): 46 * html/HTMLLIElement.cpp: 47 (WebCore::HTMLLIElement::HTMLLIElement): 48 * html/HTMLLabelElement.cpp: 49 (WebCore::HTMLLabelElement::HTMLLabelElement): 50 * html/HTMLLegendElement.cpp: 51 (WebCore::HTMLLegendElement::HTMLLegendElement): 52 * html/HTMLLinkElement.cpp: 53 (WebCore::HTMLLinkElement::HTMLLinkElement): 54 * html/HTMLMenuElement.cpp: 55 (WebCore::HTMLMenuElement::HTMLMenuElement): 56 * html/HTMLMetaElement.cpp: 57 (WebCore::HTMLMetaElement::HTMLMetaElement): 58 * html/HTMLOListElement.cpp: 59 (WebCore::HTMLOListElement::HTMLOListElement): 60 * html/HTMLOptGroupElement.cpp: 61 (WebCore::HTMLOptGroupElement::HTMLOptGroupElement): 62 * html/HTMLOptionElement.cpp: 63 (WebCore::HTMLOptionElement::HTMLOptionElement): 64 * html/HTMLSelectElement.cpp: 65 (WebCore::HTMLSelectElement::HTMLSelectElement): 66 * html/HTMLStyleElement.cpp: 67 (WebCore::HTMLStyleElement::HTMLStyleElement): 68 * html/HTMLTextAreaElement.cpp: 69 (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): 70 * html/HTMLTitleElement.cpp: 71 (WebCore::HTMLTitleElement::HTMLTitleElement): 72 * html/HTMLUListElement.cpp: 73 (WebCore::HTMLUListElement::HTMLUListElement): 74 1 75 2008-12-01 Chris Marrin <cmarrin@apple.com> 2 76 -
trunk/WebCore/html/HTMLBaseElement.cpp
r38769 r38878 38 38 : HTMLElement(qName, doc) 39 39 { 40 ASSERT(hasTagName(baseTag)); 40 41 } 41 42 -
trunk/WebCore/html/HTMLBlockquoteElement.cpp
r38791 r38878 32 32 : HTMLElement(tagName, doc) 33 33 { 34 ASSERT(hasTagName(blockquoteTag)); 34 35 } 35 36 -
trunk/WebCore/html/HTMLBodyElement.cpp
r38769 r38878 41 41 using namespace HTMLNames; 42 42 43 HTMLBodyElement::HTMLBodyElement(const QualifiedName& qName, Document* doc) 44 : HTMLElement(qName, doc) 45 { 43 HTMLBodyElement::HTMLBodyElement(const QualifiedName& tagName, Document* doc) 44 : HTMLElement(tagName, doc) 45 { 46 ASSERT(hasTagName(bodyTag)); 46 47 } 47 48 -
trunk/WebCore/html/HTMLButtonElement.cpp
r38791 r38878 44 44 , m_activeSubmit(false) 45 45 { 46 ASSERT(hasTagName(buttonTag)); 46 47 } 47 48 -
trunk/WebCore/html/HTMLDListElement.cpp
r38791 r38878 31 31 : HTMLElement(tagName, doc) 32 32 { 33 ASSERT(hasTagName(dlTag)); 33 34 } 34 35 -
trunk/WebCore/html/HTMLDirectoryElement.cpp
r38791 r38878 31 31 : HTMLElement(tagName, doc) 32 32 { 33 ASSERT(hasTagName(dirTag)); 33 34 } 34 35 -
trunk/WebCore/html/HTMLDivElement.cpp
r38791 r38878 34 34 : HTMLElement(tagName, doc) 35 35 { 36 ASSERT(hasTagName(divTag)); 36 37 } 37 38 -
trunk/WebCore/html/HTMLFieldSetElement.cpp
r38791 r38878 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 : HTMLFormControlElement(tagName, doc, f) 40 38 { 39 ASSERT(hasTagName(fieldsetTag)); 41 40 } 42 41 -
trunk/WebCore/html/HTMLFormElement.cpp
r38791 r38878 78 78 , m_malformed(false) 79 79 { 80 ASSERT(hasTagName(formTag)); 80 81 } 81 82 -
trunk/WebCore/html/HTMLFrameElement.cpp
r38791 r38878 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 , m_frameBorderSet(false) 42 40 { 41 ASSERT(hasTagName(frameTag)); 43 42 } 44 43 -
trunk/WebCore/html/HTMLFrameSetElement.cpp
r38791 r38878 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) … … 55 53 , noresize(false) 56 54 { 55 ASSERT(hasTagName(framesetTag)); 57 56 } 58 57 -
trunk/WebCore/html/HTMLHeadElement.cpp
r38769 r38878 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) … … 36 34 : HTMLElement(qName, doc) 37 35 { 36 ASSERT(hasTagName(headTag)); 38 37 } 39 38 -
trunk/WebCore/html/HTMLHtmlElement.cpp
r38769 r38878 32 32 using namespace HTMLNames; 33 33 34 HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& qName, Document* doc)35 : HTMLElement( qName, doc)34 HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document* doc) 35 : HTMLElement(tagName, doc) 36 36 { 37 ASSERT(hasTagName(htmlTag)); 37 38 } 38 39 -
trunk/WebCore/html/HTMLIFrameElement.cpp
r38791 r38878 38 38 : HTMLFrameElementBase(tagName, doc) 39 39 { 40 ASSERT(hasTagName(iframeTag)); 40 41 } 41 42 -
trunk/WebCore/html/HTMLInputElement.cpp
r38791 r38878 104 104 : HTMLFormControlElementWithState(tagName, doc, f) 105 105 { 106 ASSERT(hasTagName(inputTag) || hasTagName(isindexTag)); 106 107 init(); 107 108 } -
trunk/WebCore/html/HTMLIsIndexElement.cpp
r38791 r38878 34 34 : HTMLInputElement(tagName, doc, f) 35 35 { 36 ASSERT(hasTagName(isindexTag)); 36 37 m_name = "isindex"; 37 38 } -
trunk/WebCore/html/HTMLKeygenElement.cpp
r38791 r38878 43 43 : HTMLSelectElement(tagName, doc, f) 44 44 { 45 ASSERT(hasTagName(keygenTag)); 45 46 Vector<String> keys; 46 47 getSupportedKeySizes(keys); -
trunk/WebCore/html/HTMLLIElement.cpp
r38791 r38878 37 37 , m_requestedValue(0) 38 38 { 39 ASSERT(hasTagName(liTag)); 39 40 } 40 41 -
trunk/WebCore/html/HTMLLabelElement.cpp
r38791 r38878 39 39 : HTMLElement(tagName, doc) 40 40 { 41 ASSERT(hasTagName(labelTag)); 41 42 } 42 43 -
trunk/WebCore/html/HTMLLegendElement.cpp
r38791 r38878 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 : HTMLFormControlElement(tagName, doc, f) 40 38 { 39 ASSERT(hasTagName(legendTag)); 41 40 } 42 41 -
trunk/WebCore/html/HTMLLinkElement.cpp
r38769 r38878 54 54 , m_createdByParser(false) 55 55 { 56 ASSERT(hasTagName(linkTag)); 56 57 } 57 58 -
trunk/WebCore/html/HTMLMenuElement.cpp
r38791 r38878 31 31 : HTMLElement(tagName, doc) 32 32 { 33 ASSERT(hasTagName(menuTag)); 33 34 } 34 35 -
trunk/WebCore/html/HTMLMetaElement.cpp
r38769 r38878 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 using namespace HTMLNames; 33 31 34 HTMLMetaElement::HTMLMetaElement(const QualifiedName& qName, Document* doc)35 : HTMLElement( qName, doc)32 HTMLMetaElement::HTMLMetaElement(const QualifiedName& tagName, Document* doc) 33 : HTMLElement(tagName, doc) 36 34 { 35 ASSERT(hasTagName(metaTag)); 37 36 } 38 37 -
trunk/WebCore/html/HTMLOListElement.cpp
r38791 r38878 35 35 , m_start(1) 36 36 { 37 ASSERT(hasTagName(olTag)); 37 38 } 38 39 -
trunk/WebCore/html/HTMLOptGroupElement.cpp
r38791 r38878 42 42 , m_style(0) 43 43 { 44 ASSERT(hasTagName(optgroupTag)); 44 45 } 45 46 -
trunk/WebCore/html/HTMLOptionElement.cpp
r38791 r38878 46 46 , m_style(0) 47 47 { 48 ASSERT(hasTagName(optionTag)); 48 49 } 49 50 -
trunk/WebCore/html/HTMLSelectElement.cpp
r38791 r38878 77 77 , m_lastCharTime(0) 78 78 { 79 ASSERT(hasTagName(selectTag) || hasTagName(keygenTag)); 79 80 } 80 81 -
trunk/WebCore/html/HTMLStyleElement.cpp
r38791 r38878 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) … … 38 36 , m_createdByParser(false) 39 37 { 38 ASSERT(hasTagName(styleTag)); 40 39 } 41 40 -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r38791 r38878 56 56 , m_cachedSelectionEnd(-1) 57 57 { 58 ASSERT(hasTagName(textareaTag)); 58 59 setValueMatchesRenderer(); 59 60 } -
trunk/WebCore/html/HTMLTitleElement.cpp
r38791 r38878 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) … … 37 35 , m_title("") 38 36 { 37 ASSERT(hasTagName(titleTag)); 39 38 } 40 39 -
trunk/WebCore/html/HTMLUListElement.cpp
r38791 r38878 32 32 : HTMLElement(tagName, doc) 33 33 { 34 ASSERT(hasTagName(ulTag)); 34 35 } 35 36
Note: See TracChangeset
for help on using the changeset viewer.