Commit 76582fbb authored by mjs's avatar mjs

Reviewed by hyatt (concept and a few manual parts), large part

	done by script and not really reviewed in detail.

        - changed how HTML tags and attributes are referred to in the code for better readability.

        * khtml/css/cssstyleselector.cpp:
        (khtml::checkPseudoState):
        (khtml::CSSStyleSelector::canShareStyleWithElement):
        (khtml::CSSStyleSelector::adjustRenderStyle):
        (khtml::CSSStyleSelector::checkOneSelector):
        * khtml/css/parser.y:
        * khtml/ecma/kjs_css.cpp:
        (KJS::DOMStyleSheetList::getOwnProperty):
        * khtml/ecma/kjs_dom.cpp:
        (KJS::getRuntimeObject):
        (KJS::DOMNamedNodesCollection::getOwnProperty):
        * khtml/ecma/kjs_html.cpp:
        (KJS::HTMLDocument::getOwnProperty):
        (KJS::KJS::HTMLDocument::putValueProperty):
        (KJS::KJS::HTMLElement::classInfo):
        (KJS::HTMLElement::getSetInfo):
        (KJS::KJS::HTMLElement::getOwnProperty):
        (KJS::KJS::HTMLElement::implementsCall):
        (KJS::KJS::HTMLElement::call):
        (KJS::KJS::HTMLElement::hasOwnProperty):
        (KJS::KJS::HTMLElement::toString):
        (KJS::getForm):
        (KJS::KJS::HTMLElement::pushEventHandlerScope):
        (KJS::KJS::HTMLElementFunction::call):
        (KJS::KJS::HTMLElement::put):
        (KJS::toHTMLTableCaptionElement):
        (KJS::toHTMLTableSectionElement):
        (KJS::KJS::HTMLCollection::getOwnProperty):
        (KJS::KJS::HTMLSelectCollection::put):
        * khtml/editing/apply_style_command.cpp:
        (khtml::isStyleSpan):
        (khtml::isEmptyStyleSpan):
        (khtml::isEmptyFontTag):
        (khtml::createFontElement):
        (khtml::createStyleSpanElement):
        (khtml::ApplyStyleCommand::applyRelativeFontStyleChange):
        (khtml::ApplyStyleCommand::applyInlineStyle):
        (khtml::ApplyStyleCommand::isHTMLStyleNode):
        (khtml::ApplyStyleCommand::removeHTMLFontStyle):
        (khtml::ApplyStyleCommand::applyTextDecorationStyle):
        (khtml::ApplyStyleCommand::mergeEndWithNextIfIdentical):
        (khtml::ApplyStyleCommand::addBlockStyleIfNeeded):
        (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
        * khtml/editing/break_blockquote_command.cpp:
        (khtml::BreakBlockquoteCommand::doApply):
        * khtml/editing/composite_edit_command.cpp:
        (khtml::CompositeEditCommand::insertNodeBefore):
        (khtml::CompositeEditCommand::insertNodeAfter):
        (khtml::CompositeEditCommand::findBlockPlaceholder):
        (khtml::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
        (khtml::createBlockPlaceholderElement):
        * khtml/editing/delete_selection_command.cpp:
        (khtml::isListStructureNode):
        (khtml::DeleteSelectionCommand::handleSpecialCaseBRDelete):
        (khtml::DeleteSelectionCommand::handleGeneralDelete):
        (khtml::DeleteSelectionCommand::moveNodesAfterNode):
        * khtml/editing/htmlediting.cpp:
        (khtml::isSpecialElement):
        (khtml::createDefaultParagraphElement):
        (khtml::createBreakElement):
        (khtml::isMailBlockquote):
        * khtml/editing/insert_line_break_command.cpp:
        (khtml::InsertLineBreakCommand::doApply):
        * khtml/editing/insert_paragraph_separator_command.cpp:
        (khtml::InsertParagraphSeparatorCommand::doApply):
        * khtml/editing/markup.cpp:
        (khtml::startMarkup):
        (khtml::createMarkup):
        (khtml::createFragmentFromText):
        * khtml/editing/replace_selection_command.cpp:
        (khtml::isProbablyBlock):
        (khtml::isProbablyTableStructureNode):
        (khtml::ReplacementFragment::isInterchangeNewlineNode):
        (khtml::ReplacementFragment::isInterchangeConvertedSpaceSpan):
        (khtml::ReplacementFragment::removeStyleNodes):
        (khtml::ReplaceSelectionCommand::doApply):
        * khtml/editing/visible_position.cpp:
        (khtml::VisiblePosition::init):
        (khtml::VisiblePosition::isCandidate):
        (khtml::VisiblePosition::isAtomicNode):
        * khtml/editing/visible_text.cpp:
        (khtml::TextIterator::handleNonTextNode):
        (khtml::TextIterator::exitNode):
        (khtml::SimplifiedBackwardsTextIterator::handleNonTextNode):
        * khtml/editing/visible_units.cpp:
        (khtml::endOfLine):
        * khtml/html/html_baseimpl.cpp:
        (HTMLBodyElementImpl::HTMLBodyElementImpl):
        (HTMLBodyElementImpl::mapToEntry):
        (HTMLBodyElementImpl::parseMappedAttribute):
        (HTMLBodyElementImpl::insertedIntoDocument):
        (HTMLBodyElementImpl::isURLAttribute):
        (HTMLBodyElementImpl::aLink):
        (HTMLBodyElementImpl::setALink):
        (HTMLBodyElementImpl::background):
        (HTMLBodyElementImpl::setBackground):
        (HTMLBodyElementImpl::bgColor):
        (HTMLBodyElementImpl::setBgColor):
        (HTMLBodyElementImpl::link):
        (HTMLBodyElementImpl::setLink):
        (HTMLBodyElementImpl::text):
        (HTMLBodyElementImpl::setText):
        (HTMLBodyElementImpl::vLink):
        (HTMLBodyElementImpl::setVLink):
        (HTMLFrameElementImpl::HTMLFrameElementImpl):
        (HTMLFrameElementImpl::parseMappedAttribute):
        (HTMLFrameElementImpl::attach):
        (HTMLFrameElementImpl::isURLAttribute):
        (HTMLFrameElementImpl::frameBorder):
        (HTMLFrameElementImpl::setFrameBorder):
        (HTMLFrameElementImpl::longDesc):
        (HTMLFrameElementImpl::setLongDesc):
        (HTMLFrameElementImpl::marginHeight):
        (HTMLFrameElementImpl::setMarginHeight):
        (HTMLFrameElementImpl::marginWidth):
        (HTMLFrameElementImpl::setMarginWidth):
        (HTMLFrameElementImpl::name):
        (HTMLFrameElementImpl::setName):
        (HTMLFrameElementImpl::setNoResize):
        (HTMLFrameElementImpl::scrolling):
        (HTMLFrameElementImpl::setScrolling):
        (HTMLFrameElementImpl::src):
        (HTMLFrameElementImpl::setSrc):
        (HTMLFrameSetElementImpl::HTMLFrameSetElementImpl):
        (HTMLFrameSetElementImpl::checkDTD):
        (HTMLFrameSetElementImpl::parseMappedAttribute):
        (HTMLFrameSetElementImpl::attach):
        (HTMLFrameSetElementImpl::cols):
        (HTMLFrameSetElementImpl::setCols):
        (HTMLFrameSetElementImpl::rows):
        (HTMLFrameSetElementImpl::setRows):
        (HTMLHeadElementImpl::HTMLHeadElementImpl):
        (HTMLHeadElementImpl::profile):
        (HTMLHeadElementImpl::setProfile):
        (HTMLHeadElementImpl::checkDTD):
        (HTMLHtmlElementImpl::HTMLHtmlElementImpl):
        (HTMLHtmlElementImpl::version):
        (HTMLHtmlElementImpl::setVersion):
        (HTMLHtmlElementImpl::checkDTD):
        (HTMLIFrameElementImpl::HTMLIFrameElementImpl):
        (HTMLIFrameElementImpl::mapToEntry):
        (HTMLIFrameElementImpl::parseMappedAttribute):
        (HTMLIFrameElementImpl::attach):
        (HTMLIFrameElementImpl::isURLAttribute):
        (HTMLIFrameElementImpl::align):
        (HTMLIFrameElementImpl::setAlign):
        (HTMLIFrameElementImpl::height):
        (HTMLIFrameElementImpl::setHeight):
        (HTMLIFrameElementImpl::src):
        (HTMLIFrameElementImpl::width):
        (HTMLIFrameElementImpl::setWidth):
        * khtml/html/html_blockimpl.cpp:
        (HTMLBlockquoteElementImpl::HTMLBlockquoteElementImpl):
        (HTMLBlockquoteElementImpl::cite):
        (HTMLBlockquoteElementImpl::setCite):
        (HTMLDivElementImpl::HTMLDivElementImpl):
        (HTMLDivElementImpl::mapToEntry):
        (HTMLDivElementImpl::parseMappedAttribute):
        (HTMLDivElementImpl::align):
        (HTMLDivElementImpl::setAlign):
        (HTMLHRElementImpl::HTMLHRElementImpl):
        (HTMLHRElementImpl::mapToEntry):
        (HTMLHRElementImpl::parseMappedAttribute):
        (HTMLHRElementImpl::align):
        (HTMLHRElementImpl::setAlign):
        (HTMLHRElementImpl::noShade):
        (HTMLHRElementImpl::setNoShade):
        (HTMLHRElementImpl::size):
        (HTMLHRElementImpl::setSize):
        (HTMLHRElementImpl::width):
        (HTMLHRElementImpl::setWidth):
        (HTMLHeadingElementImpl::checkDTD):
        (HTMLHeadingElementImpl::align):
        (HTMLHeadingElementImpl::setAlign):
        (HTMLParagraphElementImpl::HTMLParagraphElementImpl):
        (HTMLParagraphElementImpl::checkDTD):
        (HTMLParagraphElementImpl::mapToEntry):
        (HTMLParagraphElementImpl::parseMappedAttribute):
        (HTMLParagraphElementImpl::align):
        (HTMLParagraphElementImpl::setAlign):
        (HTMLPreElementImpl::width):
        (HTMLPreElementImpl::setWidth):
        (HTMLMarqueeElementImpl::HTMLMarqueeElementImpl):
        (HTMLMarqueeElementImpl::mapToEntry):
        (HTMLMarqueeElementImpl::parseMappedAttribute):
        * khtml/html/html_canvasimpl.cpp:
        (HTMLCanvasElementImpl::HTMLCanvasElementImpl):
        (HTMLCanvasElementImpl::mapToEntry):
        (HTMLCanvasElementImpl::parseMappedAttribute):
        (HTMLCanvasElementImpl::isURLAttribute):
        * khtml/html/html_documentimpl.cpp:
        (DOM::HTMLDocumentImpl::childAllowed):
        * khtml/html/html_elementimpl.cpp:
        (HTMLElementImpl::endTagRequirement):
        (HTMLElementImpl::tagPriority):
        (HTMLElementImpl::mapToEntry):
        (HTMLElementImpl::parseMappedAttribute):
        (HTMLElementImpl::createContextualFragment):
        (HTMLElementImpl::setInnerText):
        (HTMLElementImpl::setOuterText):
        (HTMLElementImpl::setContentEditable):
        (HTMLElementImpl::id):
        (HTMLElementImpl::setId):
        (HTMLElementImpl::title):
        (HTMLElementImpl::setTitle):
        (HTMLElementImpl::lang):
        (HTMLElementImpl::setLang):
        (HTMLElementImpl::dir):
        (HTMLElementImpl::setDir):
        (HTMLElementImpl::className):
        (HTMLElementImpl::setClassName):
        (HTMLElementImpl::isRecognizedTagName):
        (inlineTagList):
        (blockTagList):
        (HTMLElementImpl::checkDTD):
        * khtml/html/html_formimpl.cpp:
        (DOM::HTMLFormElementImpl::HTMLFormElementImpl):
        (DOM::HTMLFormElementImpl::submitClick):
        (DOM::HTMLFormElementImpl::formData):
        (DOM::HTMLFormElementImpl::submit):
        (DOM::HTMLFormElementImpl::parseMappedAttribute):
        (DOM::HTMLFormElementImpl::radioClicked):
        (DOM::HTMLFormElementImpl::isURLAttribute):
        (DOM::HTMLFormElementImpl::name):
        (DOM::HTMLFormElementImpl::setName):
        (DOM::HTMLFormElementImpl::acceptCharset):
        (DOM::HTMLFormElementImpl::setAcceptCharset):
        (DOM::HTMLFormElementImpl::action):
        (DOM::HTMLFormElementImpl::setAction):
        (DOM::HTMLFormElementImpl::setEnctype):
        (DOM::HTMLFormElementImpl::method):
        (DOM::HTMLFormElementImpl::setMethod):
        (DOM::HTMLFormElementImpl::target):
        (DOM::HTMLFormElementImpl::setTarget):
        (DOM::HTMLGenericFormElementImpl::parseMappedAttribute):
        (DOM::HTMLGenericFormElementImpl::getForm):
        (DOM::HTMLGenericFormElementImpl::name):
        (DOM::HTMLGenericFormElementImpl::setName):
        (DOM::HTMLGenericFormElementImpl::setDisabled):
        (DOM::HTMLGenericFormElementImpl::setReadOnly):
        (DOM::HTMLGenericFormElementImpl::tabIndex):
        (DOM::HTMLGenericFormElementImpl::setTabIndex):
        (DOM::HTMLButtonElementImpl::HTMLButtonElementImpl):
        (DOM::HTMLButtonElementImpl::type):
        (DOM::HTMLButtonElementImpl::parseMappedAttribute):
        (DOM::HTMLButtonElementImpl::accessKey):
        (DOM::HTMLButtonElementImpl::setAccessKey):
        (DOM::HTMLButtonElementImpl::value):
        (DOM::HTMLButtonElementImpl::setValue):
        (DOM::HTMLFieldSetElementImpl::HTMLFieldSetElementImpl):
        (DOM::HTMLFieldSetElementImpl::checkDTD):
        (DOM::HTMLInputElementImpl::HTMLInputElementImpl):
        (DOM::HTMLInputElementImpl::setType):
        (DOM::HTMLInputElementImpl::mapToEntry):
        (DOM::HTMLInputElementImpl::parseMappedAttribute):
        (DOM::HTMLInputElementImpl::attach):
        (DOM::HTMLInputElementImpl::altText):
        (DOM::HTMLInputElementImpl::value):
        (DOM::HTMLInputElementImpl::setValue):
        (DOM::HTMLInputElementImpl::isURLAttribute):
        (DOM::HTMLInputElementImpl::defaultValue):
        (DOM::HTMLInputElementImpl::setDefaultValue):
        (DOM::HTMLInputElementImpl::defaultChecked):
        (DOM::HTMLInputElementImpl::setDefaultChecked):
        (DOM::HTMLInputElementImpl::accept):
        (DOM::HTMLInputElementImpl::setAccept):
        (DOM::HTMLInputElementImpl::accessKey):
        (DOM::HTMLInputElementImpl::setAccessKey):
        (DOM::HTMLInputElementImpl::align):
        (DOM::HTMLInputElementImpl::setAlign):
        (DOM::HTMLInputElementImpl::alt):
        (DOM::HTMLInputElementImpl::setAlt):
        (DOM::HTMLInputElementImpl::setMaxLength):
        (DOM::HTMLInputElementImpl::setSize):
        (DOM::HTMLInputElementImpl::src):
        (DOM::HTMLInputElementImpl::setSrc):
        (DOM::HTMLInputElementImpl::useMap):
        (DOM::HTMLInputElementImpl::setUseMap):
        (DOM::HTMLLabelElementImpl::HTMLLabelElementImpl):
        (DOM::HTMLLabelElementImpl::parseMappedAttribute):
        (DOM::HTMLLabelElementImpl::formElement):
        (DOM::HTMLLabelElementImpl::form):
        (DOM::HTMLLabelElementImpl::accessKey):
        (DOM::HTMLLabelElementImpl::setAccessKey):
        (DOM::HTMLLabelElementImpl::htmlFor):
        (DOM::HTMLLabelElementImpl::setHtmlFor):
        (DOM::HTMLLegendElementImpl::HTMLLegendElementImpl):
        (DOM::HTMLLegendElementImpl::accessKey):
        (DOM::HTMLLegendElementImpl::setAccessKey):
        (DOM::HTMLLegendElementImpl::align):
        (DOM::HTMLLegendElementImpl::setAlign):
        (DOM::HTMLLegendElementImpl::formElement):
        (DOM::HTMLSelectElementImpl::HTMLSelectElementImpl):
        (DOM::HTMLSelectElementImpl::checkDTD):
        (DOM::HTMLSelectElementImpl::selectedIndex):
        (DOM::HTMLSelectElementImpl::setSelectedIndex):
        (DOM::HTMLSelectElementImpl::length):
        (DOM::HTMLSelectElementImpl::add):
        (DOM::HTMLSelectElementImpl::value):
        (DOM::HTMLSelectElementImpl::setValue):
        (DOM::HTMLSelectElementImpl::state):
        (DOM::HTMLSelectElementImpl::restoreState):
        (DOM::HTMLSelectElementImpl::parseMappedAttribute):
        (DOM::HTMLSelectElementImpl::appendFormData):
        (DOM::HTMLSelectElementImpl::optionToListIndex):
        (DOM::HTMLSelectElementImpl::listToOptionIndex):
        (DOM::HTMLSelectElementImpl::recalcListItems):
        (DOM::HTMLSelectElementImpl::reset):
        (DOM::HTMLSelectElementImpl::notifyOptionSelected):
        (DOM::HTMLSelectElementImpl::setMultiple):
        (DOM::HTMLSelectElementImpl::setSize):
        (DOM::HTMLKeygenElementImpl::HTMLKeygenElementImpl):
        (DOM::HTMLKeygenElementImpl::parseMappedAttribute):
        (DOM::HTMLOptGroupElementImpl::HTMLOptGroupElementImpl):
        (DOM::HTMLOptGroupElementImpl::recalcSelectOptions):
        (DOM::HTMLOptGroupElementImpl::label):
        (DOM::HTMLOptGroupElementImpl::setLabel):
        (DOM::HTMLOptionElementImpl::HTMLOptionElementImpl):
        (DOM::HTMLOptionElementImpl::text):
        (DOM::HTMLOptionElementImpl::index):
        (DOM::HTMLOptionElementImpl::parseMappedAttribute):
        (DOM::HTMLOptionElementImpl::setValue):
        (DOM::HTMLOptionElementImpl::getSelect):
        (DOM::HTMLOptionElementImpl::defaultSelected):
        (DOM::HTMLOptionElementImpl::setDefaultSelected):
        (DOM::HTMLOptionElementImpl::label):
        (DOM::HTMLOptionElementImpl::setLabel):
        (DOM::HTMLTextAreaElementImpl::HTMLTextAreaElementImpl):
        (DOM::HTMLTextAreaElementImpl::parseMappedAttribute):
        (DOM::HTMLTextAreaElementImpl::accessKey):
        (DOM::HTMLTextAreaElementImpl::setAccessKey):
        (DOM::HTMLTextAreaElementImpl::setCols):
        (DOM::HTMLTextAreaElementImpl::setRows):
        (DOM::HTMLIsIndexElementImpl::HTMLIsIndexElementImpl):
        (DOM::HTMLIsIndexElementImpl::parseMappedAttribute):
        (DOM::HTMLIsIndexElementImpl::prompt):
        (DOM::HTMLIsIndexElementImpl::setPrompt):
        * khtml/html/html_formimpl.h:
        (DOM::HTMLOptGroupElementImpl::checkDTD):
        * khtml/html/html_headimpl.cpp:
        (HTMLBaseElementImpl::HTMLBaseElementImpl):
        (HTMLBaseElementImpl::parseMappedAttribute):
        (HTMLBaseElementImpl::setHref):
        (HTMLBaseElementImpl::setTarget):
        (HTMLLinkElementImpl::HTMLLinkElementImpl):
        (HTMLLinkElementImpl::parseMappedAttribute):
        (HTMLLinkElementImpl::process):
        (HTMLLinkElementImpl::isURLAttribute):
        (HTMLLinkElementImpl::disabled):
        (HTMLLinkElementImpl::setDisabled):
        (HTMLLinkElementImpl::charset):
        (HTMLLinkElementImpl::setCharset):
        (HTMLLinkElementImpl::href):
        (HTMLLinkElementImpl::setHref):
        (HTMLLinkElementImpl::hreflang):
        (HTMLLinkElementImpl::setHreflang):
        (HTMLLinkElementImpl::media):
        (HTMLLinkElementImpl::setMedia):
        (HTMLLinkElementImpl::rel):
        (HTMLLinkElementImpl::setRel):
        (HTMLLinkElementImpl::rev):
        (HTMLLinkElementImpl::setRev):
        (HTMLLinkElementImpl::target):
        (HTMLLinkElementImpl::setTarget):
        (HTMLLinkElementImpl::type):
        (HTMLLinkElementImpl::setType):
        (HTMLMetaElementImpl::HTMLMetaElementImpl):
        (HTMLMetaElementImpl::parseMappedAttribute):
        (HTMLMetaElementImpl::content):
        (HTMLMetaElementImpl::setContent):
        (HTMLMetaElementImpl::httpEquiv):
        (HTMLMetaElementImpl::setHttpEquiv):
        (HTMLMetaElementImpl::name):
        (HTMLMetaElementImpl::setName):
        (HTMLMetaElementImpl::scheme):
        (HTMLMetaElementImpl::setScheme):
        (HTMLScriptElementImpl::HTMLScriptElementImpl):
        (HTMLScriptElementImpl::isURLAttribute):
        (HTMLScriptElementImpl::insertedIntoDocument):
        (HTMLScriptElementImpl::charset):
        (HTMLScriptElementImpl::setCharset):
        (HTMLScriptElementImpl::defer):
        (HTMLScriptElementImpl::setDefer):
        (HTMLScriptElementImpl::src):
        (HTMLScriptElementImpl::setSrc):
        (HTMLScriptElementImpl::type):
        (HTMLScriptElementImpl::setType):
        (HTMLStyleElementImpl::HTMLStyleElementImpl):
        (HTMLStyleElementImpl::parseMappedAttribute):
        (HTMLStyleElementImpl::disabled):
        (HTMLStyleElementImpl::setDisabled):
        (HTMLStyleElementImpl::media):
        (HTMLStyleElementImpl::setMedia):
        (HTMLStyleElementImpl::type):
        (HTMLStyleElementImpl::setType):
        (HTMLTitleElementImpl::HTMLTitleElementImpl):
        * khtml/html/html_imageimpl.cpp:
        (HTMLImageLoader::updateFromElement):
        (HTMLImageElementImpl::HTMLImageElementImpl):
        (HTMLImageElementImpl::mapToEntry):
        (HTMLImageElementImpl::parseMappedAttribute):
        (HTMLImageElementImpl::altText):
        (HTMLImageElementImpl::width):
        (HTMLImageElementImpl::height):
        (HTMLImageElementImpl::isURLAttribute):
        (HTMLImageElementImpl::name):
        (HTMLImageElementImpl::setName):
        (HTMLImageElementImpl::align):
        (HTMLImageElementImpl::setAlign):
        (HTMLImageElementImpl::alt):
        (HTMLImageElementImpl::setAlt):
        (HTMLImageElementImpl::border):
        (HTMLImageElementImpl::setBorder):
        (HTMLImageElementImpl::setHeight):
        (HTMLImageElementImpl::hspace):
        (HTMLImageElementImpl::setHspace):
        (HTMLImageElementImpl::isMap):
        (HTMLImageElementImpl::setIsMap):
        (HTMLImageElementImpl::longDesc):
        (HTMLImageElementImpl::setLongDesc):
        (HTMLImageElementImpl::src):
        (HTMLImageElementImpl::setSrc):
        (HTMLImageElementImpl::useMap):
        (HTMLImageElementImpl::setUseMap):
        (HTMLImageElementImpl::vspace):
        (HTMLImageElementImpl::setVspace):
        (HTMLImageElementImpl::setWidth):
        (HTMLMapElementImpl::HTMLMapElementImpl):
        (HTMLMapElementImpl::checkDTD):
        (HTMLMapElementImpl::mapMouseEvent):
        (HTMLMapElementImpl::parseMappedAttribute):
        (HTMLMapElementImpl::name):
        (HTMLMapElementImpl::setName):
        (HTMLAreaElementImpl::HTMLAreaElementImpl):
        (HTMLAreaElementImpl::parseMappedAttribute):
        (HTMLAreaElementImpl::accessKey):
        (HTMLAreaElementImpl::setAccessKey):
        (HTMLAreaElementImpl::alt):
        (HTMLAreaElementImpl::setAlt):
        (HTMLAreaElementImpl::coords):
        (HTMLAreaElementImpl::setCoords):
        (HTMLAreaElementImpl::href):
        (HTMLAreaElementImpl::setHref):
        (HTMLAreaElementImpl::noHref):
        (HTMLAreaElementImpl::setNoHref):
        (HTMLAreaElementImpl::shape):
        (HTMLAreaElementImpl::setShape):
        (HTMLAreaElementImpl::tabIndex):
        (HTMLAreaElementImpl::setTabIndex):
        (HTMLAreaElementImpl::target):
        (HTMLAreaElementImpl::setTarget):
        * khtml/html/html_inlineimpl.cpp:
        (DOM::HTMLAnchorElementImpl::HTMLAnchorElementImpl):
        (DOM::HTMLAnchorElementImpl::defaultEventHandler):
        (DOM::HTMLAnchorElementImpl::parseMappedAttribute):
        (DOM::HTMLAnchorElementImpl::isURLAttribute):
        (DOM::HTMLAnchorElementImpl::accessKey):
        (DOM::HTMLAnchorElementImpl::setAccessKey):
        (DOM::HTMLAnchorElementImpl::charset):
        (DOM::HTMLAnchorElementImpl::setCharset):
        (DOM::HTMLAnchorElementImpl::coords):
        (DOM::HTMLAnchorElementImpl::setCoords):
        (DOM::HTMLAnchorElementImpl::href):
        (DOM::HTMLAnchorElementImpl::setHref):
        (DOM::HTMLAnchorElementImpl::hreflang):
        (DOM::HTMLAnchorElementImpl::setHreflang):
        (DOM::HTMLAnchorElementImpl::name):
        (DOM::HTMLAnchorElementImpl::setName):
        (DOM::HTMLAnchorElementImpl::rel):
        (DOM::HTMLAnchorElementImpl::setRel):
        (DOM::HTMLAnchorElementImpl::rev):
        (DOM::HTMLAnchorElementImpl::setRev):
        (DOM::HTMLAnchorElementImpl::shape):
        (DOM::HTMLAnchorElementImpl::setShape):
        (DOM::HTMLAnchorElementImpl::tabIndex):
        (DOM::HTMLAnchorElementImpl::setTabIndex):
        (DOM::HTMLAnchorElementImpl::target):
        (DOM::HTMLAnchorElementImpl::setTarget):
        (DOM::HTMLAnchorElementImpl::type):
        (DOM::HTMLAnchorElementImpl::setType):
        (DOM::HTMLBRElementImpl::HTMLBRElementImpl):
        (DOM::HTMLBRElementImpl::mapToEntry):
        (DOM::HTMLBRElementImpl::parseMappedAttribute):
        (DOM::HTMLBRElementImpl::clear):
        (DOM::HTMLBRElementImpl::setClear):
        (DOM::HTMLFontElementImpl::HTMLFontElementImpl):
        (DOM::HTMLFontElementImpl::mapToEntry):
        (DOM::HTMLFontElementImpl::parseMappedAttribute):
        (DOM::HTMLFontElementImpl::color):
        (DOM::HTMLFontElementImpl::setColor):
        (DOM::HTMLFontElementImpl::face):
        (DOM::HTMLFontElementImpl::setFace):
        (DOM::HTMLFontElementImpl::size):
        (DOM::HTMLFontElementImpl::setSize):
        (DOM::HTMLModElementImpl::cite):
        (DOM::HTMLModElementImpl::setCite):
        (DOM::HTMLModElementImpl::dateTime):
        (DOM::HTMLModElementImpl::setDateTime):
        (DOM::HTMLQuoteElementImpl::HTMLQuoteElementImpl):
        (DOM::HTMLQuoteElementImpl::cite):
        (DOM::HTMLQuoteElementImpl::setCite):
        * khtml/html/html_listimpl.cpp:
        (DOM::HTMLUListElementImpl::mapToEntry):
        (DOM::HTMLUListElementImpl::parseMappedAttribute):
        (DOM::HTMLUListElementImpl::compact):
        (DOM::HTMLUListElementImpl::setCompact):
        (DOM::HTMLUListElementImpl::type):
        (DOM::HTMLUListElementImpl::setType):
        (DOM::HTMLDirectoryElementImpl::compact):
        (DOM::HTMLDirectoryElementImpl::setCompact):
        (DOM::HTMLMenuElementImpl::compact):
        (DOM::HTMLMenuElementImpl::setCompact):
        (DOM::HTMLOListElementImpl::mapToEntry):
        (DOM::HTMLOListElementImpl::parseMappedAttribute):
        (DOM::HTMLOListElementImpl::compact):
        (DOM::HTMLOListElementImpl::setCompact):
        (DOM::HTMLOListElementImpl::setStart):
        (DOM::HTMLOListElementImpl::type):
        (DOM::HTMLOListElementImpl::setType):
        (DOM::HTMLLIElementImpl::mapToEntry):
        (DOM::HTMLLIElementImpl::parseMappedAttribute):
        (DOM::HTMLLIElementImpl::attach):
        (DOM::HTMLLIElementImpl::type):
        (DOM::HTMLLIElementImpl::setType):
        (DOM::HTMLLIElementImpl::value):
        (DOM::HTMLLIElementImpl::setValue):
        (DOM::HTMLDListElementImpl::compact):
        (DOM::HTMLDListElementImpl::setCompact):
        * khtml/html/html_listimpl.h:
        (DOM::HTMLUListElementImpl::HTMLUListElementImpl):
        (DOM::HTMLDirectoryElementImpl::HTMLDirectoryElementImpl):
        (DOM::HTMLMenuElementImpl::HTMLMenuElementImpl):
        (DOM::HTMLOListElementImpl::HTMLOListElementImpl):
        (DOM::HTMLLIElementImpl::HTMLLIElementImpl):
        (DOM::HTMLDListElementImpl::HTMLDListElementImpl):
        * khtml/html/html_miscimpl.cpp:
        (DOM::HTMLBaseFontElementImpl::HTMLBaseFontElementImpl):
        (DOM::HTMLBaseFontElementImpl::color):
        (DOM::HTMLBaseFontElementImpl::setColor):
        (DOM::HTMLBaseFontElementImpl::face):
        (DOM::HTMLBaseFontElementImpl::setFace):
        (DOM::HTMLBaseFontElementImpl::size):
        (DOM::HTMLBaseFontElementImpl::setSize):
        (DOM::HTMLCollectionImpl::traverseNextItem):
        (DOM::HTMLCollectionImpl::checkForNameMatch):
        (DOM::HTMLNameCollectionImpl::traverseNextItem):
        (DOM::HTMLCollectionImpl::updateNameCache):
        (DOM::HTMLFormCollectionImpl::getNamedFormItem):
        (DOM::HTMLFormCollectionImpl::nextNamedItemInternal):
        (DOM::HTMLFormCollectionImpl::namedItem):
        (DOM::HTMLFormCollectionImpl::nextNamedItem):
        (DOM::HTMLFormCollectionImpl::updateNameCache):
        * khtml/html/html_objectimpl.cpp:
        (DOM::HTMLAppletElementImpl::HTMLAppletElementImpl):
        (DOM::HTMLAppletElementImpl::checkDTD):
        (DOM::HTMLAppletElementImpl::mapToEntry):
        (DOM::HTMLAppletElementImpl::parseMappedAttribute):
        (DOM::HTMLAppletElementImpl::rendererIsNeeded):
        (DOM::HTMLAppletElementImpl::createRenderer):
        (DOM::HTMLAppletElementImpl::align):
        (DOM::HTMLAppletElementImpl::setAlign):
        (DOM::HTMLAppletElementImpl::alt):
        (DOM::HTMLAppletElementImpl::setAlt):
        (DOM::HTMLAppletElementImpl::archive):
        (DOM::HTMLAppletElementImpl::setArchive):
        (DOM::HTMLAppletElementImpl::code):
        (DOM::HTMLAppletElementImpl::setCode):
        (DOM::HTMLAppletElementImpl::codeBase):
        (DOM::HTMLAppletElementImpl::setCodeBase):
        (DOM::HTMLAppletElementImpl::height):
        (DOM::HTMLAppletElementImpl::setHeight):
        (DOM::HTMLAppletElementImpl::hspace):
        (DOM::HTMLAppletElementImpl::setHspace):
        (DOM::HTMLAppletElementImpl::name):
        (DOM::HTMLAppletElementImpl::setName):
        (DOM::HTMLAppletElementImpl::object):
        (DOM::HTMLAppletElementImpl::setObject):
        (DOM::HTMLAppletElementImpl::vspace):
        (DOM::HTMLAppletElementImpl::setVspace):
        (DOM::HTMLAppletElementImpl::width):
        (DOM::HTMLAppletElementImpl::setWidth):
        (DOM::HTMLEmbedElementImpl::HTMLEmbedElementImpl):
        (DOM::HTMLEmbedElementImpl::checkDTD):
        (DOM::HTMLEmbedElementImpl::mapToEntry):
        (DOM::HTMLEmbedElementImpl::parseMappedAttribute):
        (DOM::HTMLEmbedElementImpl::rendererIsNeeded):
        (DOM::HTMLEmbedElementImpl::isURLAttribute):
        (DOM::HTMLObjectElementImpl::HTMLObjectElementImpl):
        (DOM::HTMLObjectElementImpl::checkDTD):
        (DOM::HTMLObjectElementImpl::form):
        (DOM::HTMLObjectElementImpl::mapToEntry):
        (DOM::HTMLObjectElementImpl::parseMappedAttribute):
        (DOM::HTMLObjectElementImpl::isURLAttribute):
        (DOM::HTMLObjectElementImpl::code):
        (DOM::HTMLObjectElementImpl::setCode):
        (DOM::HTMLObjectElementImpl::align):
        (DOM::HTMLObjectElementImpl::setAlign):
        (DOM::HTMLObjectElementImpl::archive):
        (DOM::HTMLObjectElementImpl::setArchive):
        (DOM::HTMLObjectElementImpl::border):
        (DOM::HTMLObjectElementImpl::setBorder):
        (DOM::HTMLObjectElementImpl::codeBase):
        (DOM::HTMLObjectElementImpl::setCodeBase):
        (DOM::HTMLObjectElementImpl::codeType):
        (DOM::HTMLObjectElementImpl::setCodeType):
        (DOM::HTMLObjectElementImpl::data):
        (DOM::HTMLObjectElementImpl::setData):
        (DOM::HTMLObjectElementImpl::declare):
        (DOM::HTMLObjectElementImpl::setDeclare):
        (DOM::HTMLObjectElementImpl::height):
        (DOM::HTMLObjectElementImpl::setHeight):
        (DOM::HTMLObjectElementImpl::hspace):
        (DOM::HTMLObjectElementImpl::setHspace):
        (DOM::HTMLObjectElementImpl::name):
        (DOM::HTMLObjectElementImpl::setName):
        (DOM::HTMLObjectElementImpl::standby):
        (DOM::HTMLObjectElementImpl::setStandby):
        (DOM::HTMLObjectElementImpl::tabIndex):
        (DOM::HTMLObjectElementImpl::setTabIndex):
        (DOM::HTMLObjectElementImpl::type):
        (DOM::HTMLObjectElementImpl::setType):
        (DOM::HTMLObjectElementImpl::useMap):
        (DOM::HTMLObjectElementImpl::setUseMap):
        (DOM::HTMLObjectElementImpl::vspace):
        (DOM::HTMLObjectElementImpl::setVspace):
        (DOM::HTMLObjectElementImpl::width):
        (DOM::HTMLObjectElementImpl::setWidth):
        (DOM::HTMLParamElementImpl::HTMLParamElementImpl):
        (DOM::HTMLParamElementImpl::parseMappedAttribute):
        (DOM::HTMLParamElementImpl::isURLAttribute):
        (DOM::HTMLParamElementImpl::setName):
        (DOM::HTMLParamElementImpl::type):
        (DOM::HTMLParamElementImpl::setType):
        (DOM::HTMLParamElementImpl::setValue):
        (DOM::HTMLParamElementImpl::valueType):
        (DOM::HTMLParamElementImpl::setValueType):
        * khtml/html/html_tableimpl.cpp:
        (DOM::HTMLTableElementImpl::HTMLTableElementImpl):
        (DOM::HTMLTableElementImpl::checkDTD):
        (DOM::HTMLTableElementImpl::createTHead):
        (DOM::HTMLTableElementImpl::createTFoot):
        (DOM::HTMLTableElementImpl::insertRow):
        (DOM::HTMLTableElementImpl::deleteRow):
        (DOM::HTMLTableElementImpl::addChild):
        (DOM::HTMLTableElementImpl::mapToEntry):
        (DOM::HTMLTableElementImpl::parseMappedAttribute):
        (DOM::HTMLTableElementImpl::additionalAttributeStyleDecl):
        (DOM::HTMLTableElementImpl::getSharedCellDecl):
        (DOM::HTMLTableElementImpl::isURLAttribute):
        (DOM::HTMLTableElementImpl::align):
        (DOM::HTMLTableElementImpl::setAlign):
        (DOM::HTMLTableElementImpl::bgColor):
        (DOM::HTMLTableElementImpl::setBgColor):
        (DOM::HTMLTableElementImpl::border):
        (DOM::HTMLTableElementImpl::setBorder):
        (DOM::HTMLTableElementImpl::cellPadding):
        (DOM::HTMLTableElementImpl::setCellPadding):
        (DOM::HTMLTableElementImpl::cellSpacing):
        (DOM::HTMLTableElementImpl::setCellSpacing):
        (DOM::HTMLTableElementImpl::frame):
        (DOM::HTMLTableElementImpl::setFrame):
        (DOM::HTMLTableElementImpl::rules):
        (DOM::HTMLTableElementImpl::setRules):
        (DOM::HTMLTableElementImpl::summary):
        (DOM::HTMLTableElementImpl::setSummary):
        (DOM::HTMLTableElementImpl::width):
        (DOM::HTMLTableElementImpl::setWidth):
        (DOM::HTMLTablePartElementImpl::mapToEntry):
        (DOM::HTMLTablePartElementImpl::parseMappedAttribute):
        (DOM::HTMLTableSectionElementImpl::checkDTD):
        (DOM::HTMLTableSectionElementImpl::addChild):
        (DOM::HTMLTableSectionElementImpl::numRows):
        (DOM::HTMLTableSectionElementImpl::align):
        (DOM::HTMLTableSectionElementImpl::setAlign):
        (DOM::HTMLTableSectionElementImpl::ch):
        (DOM::HTMLTableSectionElementImpl::setCh):
        (DOM::HTMLTableSectionElementImpl::chOff):
        (DOM::HTMLTableSectionElementImpl::setChOff):
        (DOM::HTMLTableSectionElementImpl::vAlign):
        (DOM::HTMLTableSectionElementImpl::setVAlign):
        (DOM::HTMLTableRowElementImpl::checkDTD):
        (DOM::HTMLTableRowElementImpl::addChild):
        (DOM::HTMLTableRowElementImpl::rowIndex):
        (DOM::HTMLTableRowElementImpl::sectionRowIndex):
        (DOM::HTMLTableRowElementImpl::insertCell):
        (DOM::HTMLTableRowElementImpl::align):
        (DOM::HTMLTableRowElementImpl::setAlign):
        (DOM::HTMLTableRowElementImpl::bgColor):
        (DOM::HTMLTableRowElementImpl::setBgColor):
        (DOM::HTMLTableRowElementImpl::ch):
        (DOM::HTMLTableRowElementImpl::setCh):
        (DOM::HTMLTableRowElementImpl::chOff):
        (DOM::HTMLTableRowElementImpl::setChOff):
        (DOM::HTMLTableRowElementImpl::vAlign):
        (DOM::HTMLTableRowElementImpl::setVAlign):
        (DOM::HTMLTableCellElementImpl::cellIndex):
        (DOM::HTMLTableCellElementImpl::mapToEntry):
        (DOM::HTMLTableCellElementImpl::parseMappedAttribute):
        (DOM::HTMLTableCellElementImpl::additionalAttributeStyleDecl):
        (DOM::HTMLTableCellElementImpl::isURLAttribute):
        (DOM::HTMLTableCellElementImpl::abbr):
        (DOM::HTMLTableCellElementImpl::setAbbr):
        (DOM::HTMLTableCellElementImpl::align):
        (DOM::HTMLTableCellElementImpl::setAlign):
        (DOM::HTMLTableCellElementImpl::axis):
        (DOM::HTMLTableCellElementImpl::setAxis):
        (DOM::HTMLTableCellElementImpl::bgColor):
        (DOM::HTMLTableCellElementImpl::setBgColor):
        (DOM::HTMLTableCellElementImpl::ch):
        (DOM::HTMLTableCellElementImpl::setCh):
        (DOM::HTMLTableCellElementImpl::chOff):
        (DOM::HTMLTableCellElementImpl::setChOff):
        (DOM::HTMLTableCellElementImpl::setColSpan):
        (DOM::HTMLTableCellElementImpl::headers):
        (DOM::HTMLTableCellElementImpl::setHeaders):
        (DOM::HTMLTableCellElementImpl::height):
        (DOM::HTMLTableCellElementImpl::setHeight):
        (DOM::HTMLTableCellElementImpl::noWrap):
        (DOM::HTMLTableCellElementImpl::setNoWrap):
        (DOM::HTMLTableCellElementImpl::setRowSpan):
        (DOM::HTMLTableCellElementImpl::scope):
        (DOM::HTMLTableCellElementImpl::setScope):
        (DOM::HTMLTableCellElementImpl::vAlign):
        (DOM::HTMLTableCellElementImpl::setVAlign):
        (DOM::HTMLTableCellElementImpl::width):
        (DOM::HTMLTableCellElementImpl::setWidth):
        (DOM::HTMLTableColElementImpl::HTMLTableColElementImpl):
        (DOM::HTMLTableColElementImpl::mapToEntry):
        (DOM::HTMLTableColElementImpl::parseMappedAttribute):
        (DOM::HTMLTableColElementImpl::align):
        (DOM::HTMLTableColElementImpl::setAlign):
        (DOM::HTMLTableColElementImpl::ch):
        (DOM::HTMLTableColElementImpl::setCh):
        (DOM::HTMLTableColElementImpl::chOff):
        (DOM::HTMLTableColElementImpl::setChOff):
        (DOM::HTMLTableColElementImpl::setSpan):
        (DOM::HTMLTableColElementImpl::vAlign):
        (DOM::HTMLTableColElementImpl::setVAlign):
        (DOM::HTMLTableColElementImpl::width):
        (DOM::HTMLTableColElementImpl::setWidth):
        (DOM::HTMLTableCaptionElementImpl::mapToEntry):
        (DOM::HTMLTableCaptionElementImpl::parseMappedAttribute):
        (DOM::HTMLTableCaptionElementImpl::align):
        (DOM::HTMLTableCaptionElementImpl::setAlign):
        * khtml/html/html_tableimpl.h:
        (DOM::HTMLTableRowElementImpl::HTMLTableRowElementImpl):
        (DOM::HTMLTableColElementImpl::endTagRequirement):
        (DOM::HTMLTableColElementImpl::tagPriority):
        (DOM::HTMLTableColElementImpl::checkDTD):
        (DOM::HTMLTableCaptionElementImpl::HTMLTableCaptionElementImpl):
        * khtml/html/htmlfactory.cpp:
        (DOM::headingConstructor):
        (DOM::preConstructor):
        (DOM::modConstructor):
        (DOM::tableColConstructor):
        (DOM::tableCellConstructor):
        (DOM::tableSectionConstructor):
        (DOM::HTMLElementFactory::createHTMLElement):
        * khtml/html/htmlnames.cpp:
        (HTMLNames::initHTMLNames):
        * khtml/html/htmlnames.h:
        * khtml/html/htmlparser.cpp:
        (HTMLParser::parseToken):
        (isTableSection):
        (isTablePart):
        (isTableRelated):
        (HTMLParser::handleError):
        (HTMLParser::headCreateErrorCheck):
        (HTMLParser::bodyCreateErrorCheck):
        (HTMLParser::framesetCreateErrorCheck):
        (HTMLParser::iframeCreateErrorCheck):
        (HTMLParser::ddCreateErrorCheck):
        (HTMLParser::dtCreateErrorCheck):
        (HTMLParser::tableCellCreateErrorCheck):
        (HTMLParser::tableSectionCreateErrorCheck):
        (HTMLParser::noembedCreateErrorCheck):
        (HTMLParser::noframesCreateErrorCheck):
        (HTMLParser::noscriptCreateErrorCheck):
        (HTMLParser::getNode):
        (HTMLParser::processCloseTag):
        (HTMLParser::isHeaderTag):
        (HTMLParser::isInline):
        (HTMLParser::isResidualStyleTag):
        (HTMLParser::isAffectedByResidualStyle):
        (HTMLParser::popBlock):
        (HTMLParser::handleIsindex):
        * khtml/html/htmltokenizer.cpp:
        (khtml::HTMLTokenizer::parseSpecial):
        (khtml::HTMLTokenizer::scriptHandler):
        (khtml::HTMLTokenizer::parseTag):
        * khtml/khtml_part.cpp:
        (KHTMLPart::init):
        (KHTMLPart::backgroundURL):
        (KHTMLPart::updateActions):
        (KHTMLPart::handleMouseMoveEventDrag):
        (KHTMLPart::selectionComputedStyle):
        (KHTMLPart::applyEditingStyleToElement):
        (KHTMLPart::removeEditingStyleFromElement):
        * khtml/khtmlview.cpp:
        (KHTMLView::layout):
        (isSubmitImage):
        * khtml/misc/decoder.cpp:
        (Decoder::decode):
        * khtml/misc/hashtable.h:
        (khtml::::lookup):
        * khtml/rendering/render_applet.cpp:
        (RenderApplet::createWidgetIfNecessary):
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::layoutBlock):
        * khtml/rendering/render_box.cpp:
        (RenderBox::paintRootBoxDecorations):
        (RenderBox::paintBackgroundExtended):
        * khtml/rendering/render_canvasimage.cpp:
        (RenderCanvasImage::paint):
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::addFocusRingRects):
        * khtml/rendering/render_form.cpp:
        (RenderLineEdit::updateFromElement):
        (RenderFieldset::findLegend):
        (RenderSelect::updateFromElement):
        (RenderSelect::layout):
        (RenderSelect::slotSelected):
        (RenderSelect::slotSelectionChanged):
        (RenderSelect::updateSelection):
        (RenderSlider::updateFromElement):
        (RenderSlider::slotSliderValueChanged):
        * khtml/rendering/render_frames.cpp:
        (RenderPartObject::updateWidget):
        (RenderPartObject::slotViewCleared):
        * khtml/rendering/render_image.cpp:
        (RenderImage::paint):
        (RenderImage::imageMap):
        (RenderImage::updateAltText):
        * khtml/rendering/render_layer.cpp:
        (Marquee::marqueeSpeed):
        * khtml/rendering/render_list.cpp:
        (getParentOfFirstLineBox):
        * khtml/rendering/render_object.cpp:
        (RenderObject::isBody):
        (RenderObject::isHR):
        (RenderObject::isHTMLMarquee):
        (RenderObject::sizesToMaxWidth):
        (RenderObject::setStyle):
        (RenderObject::getTextDecorationColors):
        (RenderObject::setPixmap):
        * khtml/rendering/render_table.cpp:
        (RenderTable::addChild):
        (RenderTable::layout):
        (RenderTableSection::addChild):
        (RenderTableRow::addChild):
        (RenderTableCell::updateFromElement):
        (RenderTableCell::calcMinMaxWidth):
        (RenderTableCol::updateFromElement):
        * khtml/rendering/render_theme.cpp:
        (khtml::RenderTheme::isControlContainer):
        (khtml::RenderTheme::isChecked):
        (khtml::RenderTheme::isEnabled):
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createElementNS):
        (DocumentImpl::getElementById):
        (DocumentImpl::getElementByAccessKey):
        (DocumentImpl::body):
        (DocumentImpl::shouldScheduleLayout):
        (DocumentImpl::prepareMouseEvent):
        (DocumentImpl::recalcStyleSelector):
        * khtml/xml/dom_elementimpl.cpp:
        (ElementImpl::getAttribute):
        (ElementImpl::setAttribute):
        (ElementImpl::setAttributeMap):
        (ElementImpl::insertedIntoDocument):
        (ElementImpl::removedFromDocument):
        (ElementImpl::formatForDebugger):
        (NamedAttrMapImpl::setNamedItem):
        (NamedAttrMapImpl::removeNamedItem):
        (NamedAttrMapImpl::operator=):
        (StyledElementImpl::updateStyleAttributeIfNeeded):
        (StyledElementImpl::mapToEntry):
        (StyledElementImpl::parseMappedAttribute):
        * khtml/xml/dom_nodeimpl.cpp:
        (DOM::NodeImpl::maxDeepOffset):
        (DOM::NodeImpl::enclosingBlockFlowOrTableElement):
        (DOM::NodeImpl::enclosingBlockFlowElement):
        (DOM::NodeImpl::enclosingInlineElement):
        (DOM::NodeImpl::rootEditableElement):
        (DOM::NodeImpl::showNode):
        (DOM::NodeImpl::showTreeAndMark):
        (DOM::NameNodeListImpl::nodeMatches):
        * khtml/xml/dom_position.cpp:
        (DOM::Position::downstream):
        (DOM::Position::rendersInDifferentPosition):
        (DOM::Position::leadingWhitespacePosition):
        (DOM::Position::trailingWhitespacePosition):
        * khtml/xml/xml_tokenizer.cpp:
        (khtml::XMLTokenizer::startElement):
        (khtml::XMLTokenizer::insertErrorMessageBlock):
        (khtml::XMLTokenizer::addScripts):
        (khtml::XMLTokenizer::executeScripts):
        * kwq/DOM.mm:
        (+[DOMNode _nodeWithImpl:]):
        * kwq/DOMHTML.mm:
        (-[DOMHTMLElement idName]):
        (-[DOMHTMLElement setIdName:]):
        (-[DOMHTMLLinkElement media]):
        (-[DOMHTMLLinkElement setMedia:]):
        (-[DOMHTMLLinkElement rel]):
        (-[DOMHTMLLinkElement setRel:]):
        (-[DOMHTMLLinkElement rev]):
        (-[DOMHTMLLinkElement setRev:]):
        (-[DOMHTMLLinkElement target]):
        (-[DOMHTMLLinkElement setTarget:]):
        (-[DOMHTMLLinkElement type]):
        (-[DOMHTMLLinkElement setType:]):
        (-[DOMHTMLTitleElement text]):
        (-[DOMHTMLTitleElement setText:]):
        (-[DOMHTMLMetaElement content]):
        (-[DOMHTMLMetaElement setContent:]):
        (-[DOMHTMLMetaElement httpEquiv]):
        (-[DOMHTMLMetaElement setHttpEquiv:]):
        (-[DOMHTMLMetaElement name]):
        (-[DOMHTMLMetaElement setName:]):
        (-[DOMHTMLMetaElement scheme]):
        (-[DOMHTMLMetaElement setScheme:]):
        (-[DOMHTMLBaseElement setHref:]):
        (-[DOMHTMLBaseElement target]):
        (-[DOMHTMLBaseElement setTarget:]):
        (-[DOMHTMLStyleElement disabled]):
        (-[DOMHTMLStyleElement setDisabled:]):
        (-[DOMHTMLStyleElement media]):
        (-[DOMHTMLStyleElement setMedia:]):
        (-[DOMHTMLStyleElement type]):
        (-[DOMHTMLStyleElement setType:]):
        (-[DOMHTMLBodyElement aLink]):
        (-[DOMHTMLBodyElement setALink:]):
        (-[DOMHTMLBodyElement background]):
        (-[DOMHTMLBodyElement setBackground:]):
        (-[DOMHTMLBodyElement bgColor]):
        (-[DOMHTMLBodyElement setBgColor:]):
        (-[DOMHTMLBodyElement link]):
        (-[DOMHTMLBodyElement setLink:]):
        (-[DOMHTMLBodyElement text]):
        (-[DOMHTMLBodyElement setText:]):
        (-[DOMHTMLBodyElement vLink]):
        (-[DOMHTMLBodyElement setVLink:]):
        (-[DOMHTMLFormElement name]):
        (-[DOMHTMLFormElement setName:]):
        (-[DOMHTMLFormElement acceptCharset]):
        (-[DOMHTMLFormElement setAcceptCharset:]):
        (-[DOMHTMLFormElement action]):
        (-[DOMHTMLFormElement setAction:]):
        (-[DOMHTMLFormElement enctype]):
        (-[DOMHTMLFormElement setEnctype:]):
        (-[DOMHTMLFormElement method]):
        (-[DOMHTMLFormElement setMethod:]):
        (-[DOMHTMLFormElement target]):
        (-[DOMHTMLFormElement setTarget:]):
        (-[DOMHTMLTextAreaElement accessKey]):
        (-[DOMHTMLTextAreaElement setAccessKey:]):
        (-[DOMHTMLTextAreaElement cols]):
        (-[DOMHTMLTextAreaElement setCols:]):
        (-[DOMHTMLTextAreaElement disabled]):
        (-[DOMHTMLTextAreaElement setDisabled:]):
        (-[DOMHTMLTextAreaElement readOnly]):
        (-[DOMHTMLTextAreaElement setReadOnly:]):
        (-[DOMHTMLTextAreaElement rows]):
        (-[DOMHTMLTextAreaElement setRows:]):
        (-[DOMHTMLButtonElement accessKey]):
        (-[DOMHTMLButtonElement setAccessKey:]):
        (-[DOMHTMLButtonElement disabled]):
        (-[DOMHTMLButtonElement setDisabled:]):
        (-[DOMHTMLButtonElement value]):
        (-[DOMHTMLButtonElement setValue:]):
        (-[DOMHTMLLabelElement accessKey]):
        (-[DOMHTMLLabelElement setAccessKey:]):
        (-[DOMHTMLLabelElement htmlFor]):
        (-[DOMHTMLLabelElement setHtmlFor:]):
        (-[DOMHTMLLegendElement accessKey]):
        (-[DOMHTMLLegendElement setAccessKey:]):
        (-[DOMHTMLLegendElement align]):
        (-[DOMHTMLLegendElement setAlign:]):
        (-[DOMHTMLUListElement compact]):
        (-[DOMHTMLUListElement setCompact:]):
        (-[DOMHTMLUListElement type]):
        (-[DOMHTMLUListElement setType:]):
        (-[DOMHTMLOListElement start]):
        (-[DOMHTMLOListElement setStart:]):
        (-[DOMHTMLOListElement type]):
        (-[DOMHTMLOListElement setType:]):
        (-[DOMHTMLDListElement compact]):
        (-[DOMHTMLDListElement setCompact:]):
        (-[DOMHTMLDirectoryElement compact]):
        (-[DOMHTMLDirectoryElement setCompact:]):
        (-[DOMHTMLMenuElement compact]):
        (-[DOMHTMLMenuElement setCompact:]):
        (-[DOMHTMLQuoteElement cite]):
        (-[DOMHTMLQuoteElement setCite:]):
        (-[DOMHTMLDivElement align]):
        (-[DOMHTMLDivElement setAlign:]):
        (-[DOMHTMLParagraphElement align]):
        (-[DOMHTMLParagraphElement setAlign:]):
        (-[DOMHTMLHeadingElement align]):
        (-[DOMHTMLHeadingElement setAlign:]):
        (-[DOMHTMLPreElement width]):
        (-[DOMHTMLPreElement setWidth:]):
        (-[DOMHTMLBRElement clear]):
        (-[DOMHTMLBRElement setClear:]):
        (-[DOMHTMLBaseFontElement color]):
        (-[DOMHTMLBaseFontElement setColor:]):
        (-[DOMHTMLBaseFontElement face]):
        (-[DOMHTMLBaseFontElement setFace:]):
        (-[DOMHTMLBaseFontElement size]):
        (-[DOMHTMLBaseFontElement setSize:]):
        (-[DOMHTMLFontElement color]):
        (-[DOMHTMLFontElement setColor:]):
        (-[DOMHTMLFontElement face]):
        (-[DOMHTMLFontElement setFace:]):
        (-[DOMHTMLFontElement size]):
        (-[DOMHTMLFontElement setSize:]):
        (-[DOMHTMLHRElement align]):
        (-[DOMHTMLHRElement setAlign:]):
        (-[DOMHTMLHRElement noShade]):
        (-[DOMHTMLHRElement setNoShade:]):
        (-[DOMHTMLHRElement size]):
        (-[DOMHTMLHRElement setSize:]):
        (-[DOMHTMLHRElement width]):
        (-[DOMHTMLHRElement setWidth:]):
        (-[DOMHTMLModElement cite]):
        (-[DOMHTMLModElement setCite:]):
        (-[DOMHTMLModElement dateTime]):
        (-[DOMHTMLModElement setDateTime:]):
        (-[DOMHTMLAnchorElement accessKey]):
        (-[DOMHTMLAnchorElement setAccessKey:]):
        (-[DOMHTMLAnchorElement charset]):
        (-[DOMHTMLAnchorElement setCharset:]):
        (-[DOMHTMLAnchorElement coords]):
        (-[DOMHTMLAnchorElement setCoords:]):
        (-[DOMHTMLAnchorElement setHref:]):
        (-[DOMHTMLAnchorElement target]):
        (-[DOMHTMLAnchorElement setTarget:]):
        (-[DOMHTMLAnchorElement type]):
        (-[DOMHTMLAnchorElement setType:]):
        (-[DOMHTMLImageElement name]):
        (-[DOMHTMLImageElement setName:]):
        (-[DOMHTMLImageElement align]):
        (-[DOMHTMLImageElement setAlign:]):
        (-[DOMHTMLImageElement alt]):
        (-[DOMHTMLImageElement setAlt:]):
        (-[DOMHTMLImageElement border]):
        (-[DOMHTMLImageElement setBorder:]):
        (-[DOMHTMLImageElement height]):
        (-[DOMHTMLImageElement setHeight:]):
        (-[DOMHTMLImageElement hspace]):
        (-[DOMHTMLImageElement setHspace:]):
        (-[DOMHTMLImageElement isMap]):
        (-[DOMHTMLImageElement setIsMap:]):
        (-[DOMHTMLImageElement longDesc]):
        (-[DOMHTMLImageElement setLongDesc:]):
        (-[DOMHTMLImageElement setSrc:]):
        (-[DOMHTMLImageElement useMap]):
        (-[DOMHTMLImageElement setUseMap:]):
        (-[DOMHTMLImageElement vspace]):
        (-[DOMHTMLImageElement setVspace:]):
        (-[DOMHTMLImageElement width]):
        (-[DOMHTMLImageElement setWidth:]):
        (-[DOMHTMLObjectElement code]):
        (-[DOMHTMLObjectElement setCode:]):
        (-[DOMHTMLObjectElement align]):
        (-[DOMHTMLObjectElement setAlign:]):
        (-[DOMHTMLObjectElement archive]):
        (-[DOMHTMLObjectElement setArchive:]):
        (-[DOMHTMLObjectElement border]):
        (-[DOMHTMLObjectElement setBorder:]):
        (-[DOMHTMLObjectElement codeBase]):
        (-[DOMHTMLObjectElement setCodeBase:]):
        (-[DOMHTMLObjectElement codeType]):
        (-[DOMHTMLObjectElement setCodeType:]):
        (-[DOMHTMLObjectElement data]):
        (-[DOMHTMLObjectElement setData:]):
        (-[DOMHTMLObjectElement declare]):
        (-[DOMHTMLObjectElement setDeclare:]):
        (-[DOMHTMLObjectElement height]):
        (-[DOMHTMLObjectElement setHeight:]):
        (-[DOMHTMLObjectElement hspace]):
        (-[DOMHTMLObjectElement setHspace:]):
        (-[DOMHTMLObjectElement name]):
        (-[DOMHTMLObjectElement setName:]):
        (-[DOMHTMLObjectElement standby]):
        (-[DOMHTMLObjectElement setStandby:]):
        (-[DOMHTMLObjectElement tabIndex]):
        (-[DOMHTMLObjectElement setTabIndex:]):
        (-[DOMHTMLObjectElement type]):
        (-[DOMHTMLObjectElement setType:]):
        (-[DOMHTMLObjectElement useMap]):
        (-[DOMHTMLObjectElement setUseMap:]):
        (-[DOMHTMLObjectElement vspace]):
        (-[DOMHTMLObjectElement setVspace:]):
        (-[DOMHTMLObjectElement width]):
        (-[DOMHTMLObjectElement setWidth:]):
        (-[DOMHTMLParamElement name]):
        (-[DOMHTMLParamElement setName:]):
        (-[DOMHTMLParamElement type]):
        (-[DOMHTMLParamElement setType:]):
        (-[DOMHTMLParamElement value]):
        (-[DOMHTMLParamElement setValue:]):
        (-[DOMHTMLParamElement valueType]):
        (-[DOMHTMLParamElement setValueType:]):
        (-[DOMHTMLAppletElement align]):
        (-[DOMHTMLAppletElement setAlign:]):
        (-[DOMHTMLAppletElement alt]):
        (-[DOMHTMLAppletElement setAlt:]):
        (-[DOMHTMLAppletElement archive]):
        (-[DOMHTMLAppletElement setArchive:]):
        (-[DOMHTMLAppletElement code]):
        (-[DOMHTMLAppletElement setCode:]):
        (-[DOMHTMLAppletElement codeBase]):
        (-[DOMHTMLAppletElement setCodeBase:]):
        (-[DOMHTMLAppletElement height]):
        (-[DOMHTMLAppletElement setHeight:]):
        (-[DOMHTMLAppletElement hspace]):
        (-[DOMHTMLAppletElement setHspace:]):
        (-[DOMHTMLAppletElement name]):
        (-[DOMHTMLAppletElement setName:]):
        (-[DOMHTMLAppletElement object]):
        (-[DOMHTMLAppletElement setObject:]):
        (-[DOMHTMLAppletElement vspace]):
        (-[DOMHTMLAppletElement setVspace:]):
        (-[DOMHTMLAppletElement width]):
        (-[DOMHTMLAppletElement setWidth:]):
        (-[DOMHTMLMapElement name]):
        (-[DOMHTMLMapElement setName:]):
        (-[DOMHTMLAreaElement accessKey]):
        (-[DOMHTMLAreaElement setAccessKey:]):
        (-[DOMHTMLAreaElement alt]):
        (-[DOMHTMLAreaElement setAlt:]):
        (-[DOMHTMLAreaElement coords]):
        (-[DOMHTMLAreaElement setCoords:]):
        (-[DOMHTMLAreaElement setHref:]):
        (-[DOMHTMLAreaElement noHref]):
        (-[DOMHTMLAreaElement setNoHref:]):
        (-[DOMHTMLAreaElement shape]):
        (-[DOMHTMLAreaElement setShape:]):
        (-[DOMHTMLAreaElement tabIndex]):
        (-[DOMHTMLAreaElement setTabIndex:]):
        (-[DOMHTMLAreaElement target]):
        (-[DOMHTMLAreaElement setTarget:]):
        (-[DOMHTMLScriptElement text]):
        (-[DOMHTMLScriptElement setText:]):
        (-[DOMHTMLScriptElement charset]):
        (-[DOMHTMLScriptElement setCharset:]):
        (-[DOMHTMLScriptElement defer]):
        (-[DOMHTMLScriptElement setDefer:]):
        (-[DOMHTMLScriptElement src]):
        (-[DOMHTMLScriptElement setSrc:]):
        (-[DOMHTMLScriptElement type]):
        (-[DOMHTMLScriptElement setType:]):
        (-[DOMHTMLTableCaptionElement align]):
        (-[DOMHTMLTableCaptionElement setAlign:]):
        (-[DOMHTMLTableSectionElement align]):
        (-[DOMHTMLTableSectionElement setAlign:]):
        (-[DOMHTMLTableSectionElement ch]):
        (-[DOMHTMLTableSectionElement setCh:]):
        (-[DOMHTMLTableSectionElement chOff]):
        (-[DOMHTMLTableSectionElement setChOff:]):
        (-[DOMHTMLTableSectionElement vAlign]):
        (-[DOMHTMLTableSectionElement setVAlign:]):
        (-[DOMHTMLTableElement align]):
        (-[DOMHTMLTableElement setAlign:]):
        (-[DOMHTMLTableElement bgColor]):
        (-[DOMHTMLTableElement setBgColor:]):
        (-[DOMHTMLTableElement border]):
        (-[DOMHTMLTableElement setBorder:]):
        (-[DOMHTMLTableElement cellPadding]):
        (-[DOMHTMLTableElement setCellPadding:]):
        (-[DOMHTMLTableElement cellSpacing]):
        (-[DOMHTMLTableElement setCellSpacing:]):
        (-[DOMHTMLTableElement frameBorders]):
        (-[DOMHTMLTableElement setFrameBorders:]):
        (-[DOMHTMLTableElement rules]):
        (-[DOMHTMLTableElement setRules:]):
        (-[DOMHTMLTableElement summary]):
        (-[DOMHTMLTableElement setSummary:]):
        (-[DOMHTMLTableElement width]):
        (-[DOMHTMLTableElement setWidth:]):
        (-[DOMHTMLTableColElement align]):
        (-[DOMHTMLTableColElement setAlign:]):
        (-[DOMHTMLTableColElement ch]):
        (-[DOMHTMLTableColElement setCh:]):
        (-[DOMHTMLTableColElement chOff]):
        (-[DOMHTMLTableColElement setChOff:]):
        (-[DOMHTMLTableColElement span]):
        (-[DOMHTMLTableColElement setSpan:]):
        (-[DOMHTMLTableColElement vAlign]):
        (-[DOMHTMLTableColElement setVAlign:]):
        (-[DOMHTMLTableColElement width]):
        (-[DOMHTMLTableColElement setWidth:]):
        (-[DOMHTMLTableRowElement align]):
        (-[DOMHTMLTableRowElement setAlign:]):
        (-[DOMHTMLTableRowElement bgColor]):
        (-[DOMHTMLTableRowElement setBgColor:]):
        (-[DOMHTMLTableRowElement ch]):
        (-[DOMHTMLTableRowElement setCh:]):
        (-[DOMHTMLTableRowElement chOff]):
        (-[DOMHTMLTableRowElement setChOff:]):
        (-[DOMHTMLTableRowElement vAlign]):
        (-[DOMHTMLTableRowElement setVAlign:]):
        (-[DOMHTMLTableCellElement abbr]):
        (-[DOMHTMLTableCellElement setAbbr:]):
        (-[DOMHTMLTableCellElement align]):
        (-[DOMHTMLTableCellElement setAlign:]):
        (-[DOMHTMLTableCellElement axis]):
        (-[DOMHTMLTableCellElement setAxis:]):
        (-[DOMHTMLTableCellElement bgColor]):
        (-[DOMHTMLTableCellElement setBgColor:]):
        (-[DOMHTMLTableCellElement ch]):
        (-[DOMHTMLTableCellElement setCh:]):
        (-[DOMHTMLTableCellElement chOff]):
        (-[DOMHTMLTableCellElement setChOff:]):
        (-[DOMHTMLTableCellElement colSpan]):
        (-[DOMHTMLTableCellElement setColSpan:]):
        (-[DOMHTMLTableCellElement headers]):
        (-[DOMHTMLTableCellElement setHeaders:]):
        (-[DOMHTMLTableCellElement height]):
        (-[DOMHTMLTableCellElement setHeight:]):
        (-[DOMHTMLTableCellElement noWrap]):
        (-[DOMHTMLTableCellElement setNoWrap:]):
        (-[DOMHTMLTableCellElement rowSpan]):
        (-[DOMHTMLTableCellElement setRowSpan:]):
        (-[DOMHTMLTableCellElement scope]):
        (-[DOMHTMLTableCellElement setScope:]):
        (-[DOMHTMLTableCellElement vAlign]):
        (-[DOMHTMLTableCellElement setVAlign:]):
        (-[DOMHTMLTableCellElement width]):
        (-[DOMHTMLTableCellElement setWidth:]):
        (-[DOMHTMLFrameSetElement rows]):
        (-[DOMHTMLFrameSetElement setRows:]):
        (-[DOMHTMLFrameSetElement cols]):
        (-[DOMHTMLFrameSetElement setCols:]):
        (-[DOMHTMLFrameElement frameBorder]):
        (-[DOMHTMLFrameElement setFrameBorder:]):
        (-[DOMHTMLFrameElement longDesc]):
        (-[DOMHTMLFrameElement setLongDesc:]):
        (-[DOMHTMLFrameElement marginHeight]):
        (-[DOMHTMLFrameElement setMarginHeight:]):
        (-[DOMHTMLFrameElement marginWidth]):
        (-[DOMHTMLFrameElement setMarginWidth:]):
        (-[DOMHTMLFrameElement name]):
        (-[DOMHTMLFrameElement setName:]):
        (-[DOMHTMLFrameElement noResize]):
        (-[DOMHTMLFrameElement setNoResize:]):
        (-[DOMHTMLFrameElement scrolling]):
        (-[DOMHTMLFrameElement setScrolling:]):
        (-[DOMHTMLFrameElement src]):
        (-[DOMHTMLFrameElement setSrc:]):
        (-[DOMHTMLIFrameElement align]):
        (-[DOMHTMLIFrameElement setAlign:]):
        (-[DOMHTMLIFrameElement frameBorder]):
        (-[DOMHTMLIFrameElement setFrameBorder:]):
        (-[DOMHTMLIFrameElement height]):
        (-[DOMHTMLIFrameElement setHeight:]):
        (-[DOMHTMLIFrameElement longDesc]):
        (-[DOMHTMLIFrameElement setLongDesc:]):
        (-[DOMHTMLIFrameElement marginHeight]):
        (-[DOMHTMLIFrameElement setMarginHeight:]):
        (-[DOMHTMLIFrameElement marginWidth]):
        (-[DOMHTMLIFrameElement setMarginWidth:]):
        (-[DOMHTMLIFrameElement name]):
        (-[DOMHTMLIFrameElement setName:]):
        (-[DOMHTMLIFrameElement noResize]):
        (-[DOMHTMLIFrameElement setNoResize:]):
        (-[DOMHTMLIFrameElement scrolling]):
        (-[DOMHTMLIFrameElement setScrolling:]):
        (-[DOMHTMLIFrameElement src]):
        (-[DOMHTMLIFrameElement setSrc:]):
        (-[DOMHTMLIFrameElement width]):
        (-[DOMHTMLIFrameElement setWidth:]):
        (-[DOMHTMLEmbedElement align]):
        (-[DOMHTMLEmbedElement setAlign:]):
        (-[DOMHTMLEmbedElement height]):
        (-[DOMHTMLEmbedElement setHeight:]):
        (-[DOMHTMLEmbedElement name]):
        (-[DOMHTMLEmbedElement setName:]):
        (-[DOMHTMLEmbedElement src]):
        (-[DOMHTMLEmbedElement setSrc:]):
        (-[DOMHTMLEmbedElement type]):
        (-[DOMHTMLEmbedElement setType:]):
        (-[DOMHTMLEmbedElement width]):
        (-[DOMHTMLEmbedElement setWidth:]):
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject role]):
        (-[KWQAccObject helpText]):
        (-[KWQAccObject title]):
        (-[KWQAccObject accessibilityDescription]):
        (-[KWQAccObject accessibilityIsIgnored]):
        (-[KWQAccObject accessibilityAttributeValue:]):
        * kwq/KWQKHTMLPart.cpp:
        (KWQKHTMLPart::isFrameSet):
        * kwq/KWQKHTMLPart.mm:
        (scanForForm):
        (KWQKHTMLPart::currentForm):
        (KWQKHTMLPart::searchForLabelsBeforeElement):
        (KWQKHTMLPart::matchLabelsAgainstElement):
        (KWQKHTMLPart::fileWrapperForElement):
        (listParent):
        (isTextFirstInListItem):
        (KWQKHTMLPart::attributedString):
        (KWQKHTMLPart::styleForSelectionStart):
        (KWQKHTMLPart::setSelectionFromNone):
        * kwq/WebCoreBridge.mm:
        (inputElementFromDOMElement):
        (formElementFromDOMElement):
        (-[WebCoreBridge elementAtPoint:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8769a7c2
This diff is collapsed.
......@@ -36,6 +36,8 @@
#include "khtmlpart_p.h"
using namespace khtml;
using namespace DOM;
using namespace HTMLNames;
#include "css/cssproperties.h"
#include "css/cssvalues.h"
......@@ -542,7 +544,7 @@ static void checkPseudoState( DOM::ElementImpl *e, bool checkVisited = true )
return;
}
const AtomicString& attr = e->getAttribute(HTMLAttributes::href());
const AtomicString& attr = e->getAttribute(hrefAttr);
if (attr.isNull()) {
pseudoState = PseudoNone;
return;
......@@ -618,8 +620,8 @@ bool CSSStyleSelector::canShareStyleWithElement(NodeImpl* n)
(s->focused() == element->focused())) {
bool classesMatch = true;
if (s->hasClass()) {
const AtomicString& class1 = element->getAttribute(HTMLAttributes::classAttr());
const AtomicString& class2 = s->getAttribute(HTMLAttributes::classAttr());
const AtomicString& class1 = element->getAttribute(classAttr);
const AtomicString& class2 = s->getAttribute(classAttr);
classesMatch = (class1 == class2);
}
......@@ -884,23 +886,23 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, DOM::ElementImpl *e
// Sites also commonly use display:inline/block on <td>s and <table>s. In quirks mode we force
// these tags to retain their display types.
if (!strictParsing && e) {
if (e->hasTagName(HTMLTags::td())) {
if (e->hasTagName(tdTag)) {
style->setDisplay(TABLE_CELL);
style->setFloating(FNONE);
}
else if (e->hasTagName(HTMLTags::table()))
else if (e->hasTagName(tableTag))
style->setDisplay(style->isDisplayInlineType() ? INLINE_TABLE : TABLE);
}
// Frames and framesets never honor position:relative or position:absolute. This is necessary to
// fix a crash where a site tries to position these objects. They also never honor display.
if (e && (e->hasTagName(HTMLTags::frame()) || e->hasTagName(HTMLTags::frameset()))) {
if (e && (e->hasTagName(frameTag) || e->hasTagName(framesetTag))) {
style->setPosition(STATIC);
style->setDisplay(BLOCK);
}
// Table headers with a text-align of auto will change the text-align to center.
if (e && e->hasTagName(HTMLTags::th()) && style->textAlign() == TAAUTO)
if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO)
style->setTextAlign(CENTER);
// Mutate the display to BLOCK or TABLE for certain cases, e.g., if someone attempts to
......@@ -1293,7 +1295,7 @@ bool CSSStyleSelector::checkOneSelector(DOM::CSSSelector *sel, DOM::ElementImpl
case CSSSelector::PseudoHover: {
// If we're in quirks mode, then hover should never match anchors with no
// href. This is important for sites like wsj.com.
if (strictParsing || !e->hasTagName(HTMLTags::a()) || e->isLink()) {
if (strictParsing || !e->hasTagName(aTag) || e->isLink()) {
if (element == e && style)
style->setAffectedByHoverRules(true);
if (e->renderer()) {
......@@ -1324,7 +1326,7 @@ bool CSSStyleSelector::checkOneSelector(DOM::CSSSelector *sel, DOM::ElementImpl
case CSSSelector::PseudoActive:
// If we're in quirks mode, then :active should never match anchors with no
// href.
if (strictParsing || !e->hasTagName(HTMLTags::a()) || e->isLink()) {
if (strictParsing || !e->hasTagName(aTag) || e->isLink()) {
if (element == e && style)
style->setAffectedByActiveRules(true);
else if (e->renderer())
......
......@@ -40,6 +40,7 @@
// #define CSS_DEBUG
using namespace DOM;
using namespace HTMLNames;
//
// The following file defines the function
......@@ -717,7 +718,7 @@ specifier:
CSSParser *p = static_cast<CSSParser *>(parser);
if (!p->strict)
$1.lower();
$$->attr = HTMLAttributes::idAttr();
$$->attr = idAttr;
$$->value = atomicString($1);
}
| class
......@@ -732,7 +733,7 @@ class:
CSSParser *p = static_cast<CSSParser *>(parser);
if (!p->strict)
$2.lower();
$$->attr = HTMLAttributes::classAttr();
$$->attr = classAttr;
$$->value = atomicString($2);
}
;
......
......@@ -55,7 +55,7 @@ using DOM::CounterImpl;
using DOM::DocumentImpl;
using DOM::DOMString;
using DOM::ElementImpl;
using DOM::HTMLTags;
using namespace HTMLNames;
using DOM::HTMLStyleElementImpl;
using DOM::MediaListImpl;
using DOM::RectImpl;
......@@ -420,7 +420,7 @@ bool DOMStyleSheetList::getOwnProperty(ExecState *exec, const Identifier& p, Val
// and doesn't look for name attribute (see implementation above).
// But unicity of stylesheet ids is good practice anyway ;)
ElementImpl *element = m_doc->getElementById(p.string());
if (element && element->hasTagName(HTMLTags::style())) {
if (element && element->hasTagName(styleTag)) {
result = getDOMStyleSheet(exec, static_cast<HTMLStyleElementImpl *>(element)->sheet());
return true;
}
......
......@@ -65,7 +65,7 @@ using DOM::HTMLAppletElementImpl;
using DOM::HTMLDocumentImpl;
using DOM::HTMLElementImpl;
using DOM::HTMLEmbedElementImpl;
using DOM::HTMLTags;
using namespace HTMLNames;
using DOM::HTMLObjectElementImpl;
using DOM::NamedNodeMapImpl;
using DOM::Node;
......@@ -1691,18 +1691,18 @@ ValueImp *getRuntimeObject(ExecState *exec, NodeImpl *n)
if (!n)
return 0;
if (n->hasTagName(HTMLTags::applet())) {
if (n->hasTagName(appletTag)) {
HTMLAppletElementImpl *appletElement = static_cast<HTMLAppletElementImpl *>(n);
if (appletElement->getAppletInstance())
// The instance is owned by the applet element.
return new RuntimeObjectImp(appletElement->getAppletInstance(), false);
}
else if (n->hasTagName(HTMLTags::embed())) {
else if (n->hasTagName(embedTag)) {
HTMLEmbedElementImpl *embedElement = static_cast<HTMLEmbedElementImpl *>(n);
if (embedElement->getEmbedInstance())
return new RuntimeObjectImp(embedElement->getEmbedInstance(), false);
}
else if (n->hasTagName(HTMLTags::object())) {
else if (n->hasTagName(objectTag)) {
HTMLObjectElementImpl *objectElement = static_cast<HTMLObjectElementImpl *>(n);
if (objectElement->getObjectInstance())
return new RuntimeObjectImp(objectElement->getObjectInstance(), false);
......@@ -1895,17 +1895,8 @@ bool DOMNamedNodesCollection::getOwnProperty(ExecState *exec, const Identifier&
QValueListConstIterator< SharedPtr<NodeImpl> > end = m_nodes.end();
for (QValueListConstIterator< SharedPtr<NodeImpl> > it = m_nodes.begin(); it != end; it++) {
NodeImpl *node = (*it).get();
NamedNodeMapImpl *attributes = node->attributes();
if (!attributes) {
continue;
}
NodeImpl *idAttr = attributes->getNamedItem("id");
if (!idAttr) {
continue;
}
if (idAttr->nodeValue() == propertyName.string()) {
if (node->hasAttributes() &&
node->attributes()->id() == propertyName.string()) {
result = getDOMNode(exec,node);
return true;
}
......
This diff is collapsed.
......@@ -65,8 +65,7 @@ using DOM::NodeImpl;
using DOM::Position;
using DOM::RangeImpl;
using DOM::TextImpl;
using DOM::HTMLTags;
using DOM::HTMLAttributes;
using namespace HTMLNames;
namespace khtml {
......@@ -251,44 +250,44 @@ bool isStyleSpan(const NodeImpl *node)
return false;
const HTMLElementImpl *elem = static_cast<const HTMLElementImpl *>(node);
return elem->hasLocalName(HTMLAttributes::span()) && elem->getAttribute(HTMLAttributes::classAttr()) == styleSpanClassString();
return elem->hasLocalName(spanAttr) && elem->getAttribute(classAttr) == styleSpanClassString();
}
static bool isEmptyStyleSpan(const NodeImpl *node)
{
if (!node || !node->isHTMLElement() || !node->hasTagName(HTMLTags::span()))
if (!node || !node->isHTMLElement() || !node->hasTagName(spanTag))
return false;
const HTMLElementImpl *elem = static_cast<const HTMLElementImpl *>(node);
CSSMutableStyleDeclarationImpl *inlineStyleDecl = elem->inlineStyleDecl();
return (!inlineStyleDecl || inlineStyleDecl->length() == 0) && elem->getAttribute(HTMLAttributes::classAttr()) == styleSpanClassString();
return (!inlineStyleDecl || inlineStyleDecl->length() == 0) && elem->getAttribute(classAttr) == styleSpanClassString();
}
static bool isEmptyFontTag(const NodeImpl *node)
{
if (!node || !node->hasTagName(HTMLTags::font()))
if (!node || !node->hasTagName(fontTag))
return false;
const ElementImpl *elem = static_cast<const ElementImpl *>(node);
NamedAttrMapImpl *map = elem->attributes(true); // true for read-only
return (!map || map->length() == 1) && elem->getAttribute(HTMLAttributes::classAttr()) == styleSpanClassString();
return (!map || map->length() == 1) && elem->getAttribute(classAttr) == styleSpanClassString();
}
static ElementImpl *createFontElement(DocumentImpl *document)
{
int exceptionCode = 0;
ElementImpl *fontNode = document->createElementNS(HTMLTags::xhtmlNamespaceURI(), "font", exceptionCode);
ElementImpl *fontNode = document->createElementNS(xhtmlNamespaceURI, "font", exceptionCode);
ASSERT(exceptionCode == 0);
fontNode->setAttribute(HTMLAttributes::classAttr(), styleSpanClassString());
fontNode->setAttribute(classAttr, styleSpanClassString());
return fontNode;
}
ElementImpl *createStyleSpanElement(DocumentImpl *document)
{
int exceptionCode = 0;
ElementImpl *styleElement = document->createElementNS(HTMLTags::xhtmlNamespaceURI(), "span", exceptionCode);
ElementImpl *styleElement = document->createElementNS(xhtmlNamespaceURI, "span", exceptionCode);
ASSERT(exceptionCode == 0);
styleElement->setAttribute(HTMLAttributes::classAttr(), styleSpanClassString());
styleElement->setAttribute(classAttr, styleSpanClassString());
return styleElement;
}
......@@ -498,10 +497,10 @@ void ApplyStyleCommand::applyRelativeFontStyleChange(CSSMutableStyleDeclarationI
QString desiredFontSizeString = QString::number(desiredFontSize);
desiredFontSizeString += "px";
inlineStyleDecl->setProperty(CSS_PROP_FONT_SIZE, desiredFontSizeString, false, false);
setNodeAttribute(elem, HTMLAttributes::style(), inlineStyleDecl->cssText());
setNodeAttribute(elem, styleAttr, inlineStyleDecl->cssText());
}
if (inlineStyleDecl->length() == 0) {
removeNodeAttribute(elem, HTMLAttributes::style());
removeNodeAttribute(elem, styleAttr);
if (isEmptyStyleSpan(elem))
emptySpans.append(elem);
}
......@@ -588,7 +587,7 @@ void ApplyStyleCommand::applyInlineStyle(CSSMutableStyleDeclarationImpl *style)
// the current group.
if (node == end.node() ||
runStart->parentNode() != next->parentNode() ||
(next->isElementNode() && !next->hasTagName(HTMLTags::br())) ||
(next->isElementNode() && !next->hasTagName(brTag)) ||
(next->renderer() && !next->renderer()->isInline()))
break;
node = next;
......@@ -613,11 +612,11 @@ bool ApplyStyleCommand::isHTMLStyleNode(CSSMutableStyleDeclarationImpl *style, H
for (QValueListConstIterator<CSSProperty> it = style->valuesIterator(); it != end; ++it) {
switch ((*it).id()) {
case CSS_PROP_FONT_WEIGHT:
if (elem->hasLocalName(HTMLTags::b()))
if (elem->hasLocalName(bTag))
return true;
break;
case CSS_PROP_FONT_STYLE:
if (elem->hasLocalName(HTMLTags::i()))
if (elem->hasLocalName(iTag))
return true;
}
}
......@@ -640,7 +639,7 @@ void ApplyStyleCommand::removeHTMLFontStyle(CSSMutableStyleDeclarationImpl *styl
ASSERT(style);
ASSERT(elem);
if (!elem->hasLocalName(HTMLTags::font()))
if (!elem->hasLocalName(fontTag))
return;
int exceptionCode = 0;
......@@ -648,15 +647,15 @@ void ApplyStyleCommand::removeHTMLFontStyle(CSSMutableStyleDeclarationImpl *styl
for (QValueListConstIterator<CSSProperty> it = style->valuesIterator(); it != end; ++it) {
switch ((*it).id()) {
case CSS_PROP_COLOR:
elem->removeAttribute(HTMLAttributes::color(), exceptionCode);
elem->removeAttribute(colorAttr, exceptionCode);
ASSERT(exceptionCode == 0);
break;
case CSS_PROP_FONT_FAMILY:
elem->removeAttribute(HTMLAttributes::face(), exceptionCode);
elem->removeAttribute(faceAttr, exceptionCode);
ASSERT(exceptionCode == 0);
break;
case CSS_PROP_FONT_SIZE:
elem->removeAttribute(HTMLAttributes::size(), exceptionCode);
elem->removeAttribute(sizeAttr, exceptionCode);
ASSERT(exceptionCode == 0);
break;
}
......@@ -825,7 +824,7 @@ void ApplyStyleCommand::applyTextDecorationStyle(NodeImpl *node, CSSMutableStyle
CSSMutableStyleDeclarationImpl *decl = element->inlineStyleDecl();
if (decl)
cssText += decl->cssText();
setNodeAttribute(element, HTMLAttributes::style(), cssText);
setNodeAttribute(element, styleAttr, cssText);
}
}
......@@ -1133,7 +1132,7 @@ bool ApplyStyleCommand::mergeEndWithNextIfIdentical(const Position &start, const
endOffset = parentLastOffset;
}
if (!endNode->isElementNode() || endNode->hasTagName(HTMLTags::br()))
if (!endNode->isElementNode() || endNode->hasTagName(brTag))
return false;
NodeImpl *nextSibling = endNode->nextSibling();
......@@ -1243,7 +1242,7 @@ void ApplyStyleCommand::addBlockStyleIfNeeded(CSSMutableStyleDeclarationImpl *st
CSSMutableStyleDeclarationImpl *decl = block->inlineStyleDecl();
if (decl)
cssText += decl->cssText();
setNodeAttribute(block, HTMLAttributes::style(), cssText);
setNodeAttribute(block, styleAttr, cssText);
}
}
......@@ -1264,32 +1263,32 @@ void ApplyStyleCommand::addInlineStyleIfNeeded(CSSMutableStyleDeclarationImpl *s
ASSERT(exceptionCode == 0);
insertNodeBefore(fontElement, startNode);
if (styleChange.applyFontColor())
fontElement->setAttribute(HTMLAttributes::color(), styleChange.fontColor());
fontElement->setAttribute(colorAttr, styleChange.fontColor());
if (styleChange.applyFontFace())
fontElement->setAttribute(HTMLAttributes::face(), styleChange.fontFace());
fontElement->setAttribute(faceAttr, styleChange.fontFace());
if (styleChange.applyFontSize())
fontElement->setAttribute(HTMLAttributes::size(), styleChange.fontSize());
fontElement->setAttribute(sizeAttr, styleChange.fontSize());
surroundNodeRangeWithElement(startNode, endNode, fontElement);
}
if (styleChange.cssStyle().length() > 0) {
ElementImpl *styleElement = createStyleSpanElement(document());
styleElement->ref();
styleElement->setAttribute(HTMLAttributes::style(), styleChange.cssStyle());
styleElement->setAttribute(styleAttr, styleChange.cssStyle());
insertNodeBefore(styleElement, startNode);
styleElement->deref();
surroundNodeRangeWithElement(startNode, endNode, styleElement);
}
if (styleChange.applyBold()) {
ElementImpl *boldElement = document()->createElementNS(HTMLTags::xhtmlNamespaceURI(), "b", exceptionCode);
ElementImpl *boldElement = document()->createElementNS(xhtmlNamespaceURI, "b", exceptionCode);
ASSERT(exceptionCode == 0);
insertNodeBefore(boldElement, startNode);
surroundNodeRangeWithElement(startNode, endNode, boldElement);
}
if (styleChange.applyItalic()) {
ElementImpl *italicElement = document()->createElementNS(HTMLTags::xhtmlNamespaceURI(), "i", exceptionCode);
ElementImpl *italicElement = document()->createElementNS(xhtmlNamespaceURI, "i", exceptionCode);
ASSERT(exceptionCode == 0);
insertNodeBefore(italicElement, startNode);
surroundNodeRangeWithElement(startNode, endNode, italicElement);
......
......@@ -43,7 +43,7 @@ using DOM::ElementImpl;
using DOM::NodeImpl;
using DOM::Position;
using DOM::TextImpl;
using DOM::HTMLTags;
using namespace HTMLNames;
namespace khtml {
......@@ -147,7 +147,7 @@ void BreakBlockquoteCommand::doApply()
bool startIsBR = false;
if (startNode != topBlockquote) {
NodeImpl *n = startNode;
startIsBR = n->hasTagName(HTMLTags::br());
startIsBR = n->hasTagName(brTag);
if (startIsBR)
n = n->nextSibling();
while (n) {
......
......@@ -66,9 +66,8 @@ using DOM::NodeImpl;
using DOM::Position;
using DOM::RangeImpl;
using DOM::TextImpl;
using DOM::HTMLAttributes;
using DOM::HTMLTags;
using DOM::QualifiedName;
using namespace HTMLNames;
namespace khtml {
......@@ -129,14 +128,14 @@ void CompositeEditCommand::insertParagraphSeparator()
void CompositeEditCommand::insertNodeBefore(NodeImpl *insertChild, NodeImpl *refChild)
{
ASSERT(!refChild->hasTagName(HTMLTags::body()));
ASSERT(!refChild->hasTagName(bodyTag));
EditCommandPtr cmd(new InsertNodeBeforeCommand(document(), insertChild, refChild));
applyCommandToComposite(cmd);
}
void CompositeEditCommand::insertNodeAfter(NodeImpl *insertChild, NodeImpl *refChild)
{
ASSERT(!refChild->hasTagName(HTMLTags::body()));
ASSERT(!refChild->hasTagName(bodyTag));
if (refChild->parentNode()->lastChild() == refChild) {
appendNode(insertChild, refChild->parentNode());
}
......@@ -496,7 +495,7 @@ NodeImpl *CompositeEditCommand::findBlockPlaceholder(NodeImpl *node)
if (checkMe->isElementNode()) {
ElementImpl *element = static_cast<ElementImpl *>(checkMe);
if (element->enclosingBlockFlowElement() == node &&
element->getAttribute(HTMLAttributes::classAttr()) == blockPlaceholderClassString()) {
element->getAttribute(classAttr) == blockPlaceholderClassString()) {
return element;
}
}
......@@ -547,7 +546,7 @@ void CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary(const Posi
// additional level of quoting.
NodeImpl *startBlock = paragraphStart.node()->enclosingBlockFlowElement();
NodeImpl *newBlock = 0;
if (startBlock->hasTagName(HTMLTags::body()) || (isMailBlockquote(startBlock) && paragraphStart.node() != startBlock))
if (startBlock->hasTagName(bodyTag) || (isMailBlockquote(startBlock) && paragraphStart.node() != startBlock))
newBlock = createDefaultParagraphElement(document());
else
newBlock = startBlock->cloneNode(false);
......@@ -557,10 +556,10 @@ void CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary(const Posi
moveNode = moveNode->traverseNextNode();
NodeImpl *endNode = paragraphEnd.node();
if (paragraphStart.node()->hasTagName(HTMLTags::body())) {
if (paragraphStart.node()->hasTagName(bodyTag)) {
insertNodeAt(newBlock, paragraphStart.node(), 0);
}
else if (paragraphStart.node()->hasTagName(HTMLTags::br())) {
else if (paragraphStart.node()->hasTagName(brTag)) {
insertNodeAfter(newBlock, paragraphStart.node());
}
else {
......@@ -580,9 +579,9 @@ void CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary(const Posi
ElementImpl *createBlockPlaceholderElement(DocumentImpl *document)
{
int exceptionCode = 0;
ElementImpl *breakNode = document->createElementNS(HTMLTags::xhtmlNamespaceURI(), "br", exceptionCode);
ElementImpl *breakNode = document->createElementNS(xhtmlNamespaceURI, "br", exceptionCode);
ASSERT(exceptionCode == 0);
breakNode->setAttribute(HTMLAttributes::classAttr(), blockPlaceholderClassString());
breakNode->setAttribute(classAttr, blockPlaceholderClassString());
return breakNode;
}
......
......@@ -54,7 +54,7 @@ using DOM::NodeImpl;
using DOM::Position;
using DOM::RangeImpl;
using DOM::TextImpl;
using DOM::HTMLTags;
using namespace HTMLNames;
namespace khtml {
......@@ -64,12 +64,12 @@ static bool isListStructureNode(const NodeImpl *node)
// but here we also have to peek at the type of DOM node?
RenderObject *r = node->renderer();
return (r && r->isListItem())
|| node->hasTagName(HTMLTags::ol())
|| node->hasTagName(HTMLTags::ul())
|| node->hasTagName(HTMLTags::dd())
|| node->hasTagName(HTMLTags::dt())
|| node->hasTagName(HTMLTags::dir())
|| node->hasTagName(HTMLTags::menu());
|| node->hasTagName(olTag)
|| node->hasTagName(ulTag)
|| node->hasTagName(ddTag)
|| node->hasTagName(dtTag)
|| node->hasTagName(dirTag)
|| node->hasTagName(menuTag);
}
static int maxDeepOffset(NodeImpl *n)
......@@ -296,8 +296,8 @@ void DeleteSelectionCommand::saveTypingStyleState()
bool DeleteSelectionCommand::handleSpecialCaseBRDelete()
{
// Check for special-case where the selection contains only a BR on a line by itself after another BR.
bool upstreamStartIsBR = m_startNode->hasTagName(HTMLTags::br());
bool downstreamStartIsBR = m_downstreamStart.node()->hasTagName(HTMLTags::br());
bool upstreamStartIsBR = m_startNode->hasTagName(brTag);
bool downstreamStartIsBR = m_downstreamStart.node()->hasTagName(brTag);
bool isBROnLineByItself = upstreamStartIsBR && downstreamStartIsBR && m_downstreamStart.node() == m_upstreamEnd.node();
if (isBROnLineByItself) {
m_endingPosition = Position(m_downstreamStart.node()->parentNode(), m_downstreamStart.node()->nodeIndex());
......@@ -346,11 +346,11 @@ void DeleteSelectionCommand::handleGeneralDelete()
// end of a block other than the block containing the selection start, then do not delete the
// start block, otherwise delete the start block.
// A similar case is provided to cover selections starting in BR elements.
if (startOffset == 1 && m_startNode && m_startNode->hasTagName(HTMLTags::br())) {
if (startOffset == 1 && m_startNode && m_startNode->hasTagName(brTag)) {
setStartNode(m_startNode->traverseNextNode());
startOffset = 0;
}
if (m_startBlock != m_endBlock && startOffset == 0 && m_startNode && m_startNode->hasTagName(HTMLTags::br()) && endAtEndOfBlock) {
if (m_startBlock != m_endBlock && startOffset == 0 && m_startNode && m_startNode->hasTagName(brTag) && endAtEndOfBlock) {
// Don't delete the BR element
setStartNode(m_startNode->traverseNextNode());
}
......@@ -572,7 +572,7 @@ void DeleteSelectionCommand::moveNodesAfterNode()
NodeImpl *moveNode = node;
node = node->nextSibling();
removeNode(moveNode);
if (moveNode->hasTagName(HTMLTags::br()) && !moveNode->renderer()) {
if (moveNode->hasTagName(brTag) && !moveNode->renderer()) {
// Just remove this node, and don't put it back.
// If the BR was not rendered (since it was at the end of a block, for instance),
// putting it back in the document might make it appear, and that is not desirable.
......@@ -583,7 +583,7 @@ void DeleteSelectionCommand::moveNodesAfterNode()
else
insertNodeAfter(moveNode, refNode);
refNode = moveNode;
if (moveNode->hasTagName(HTMLTags::br()))
if (moveNode->hasTagName(brTag))
break;
}
......
......@@ -81,7 +81,7 @@ using DOM::Position;
using DOM::RangeImpl;
using DOM::TextImpl;
using DOM::TreeWalkerImpl;
using DOM::HTMLTags;
using namespace HTMLNames;
#if APPLE_CHANGES
#include "KWQAssertions.h"
......@@ -138,7 +138,7 @@ bool isSpecialElement(const NodeImpl *n)
if (n->isLink())
return true;
if (n->hasTagName(HTMLTags::ul()) || n->hasTagName(HTMLTags::ol()) || n->hasTagName(HTMLTags::dl()))
if (n->hasTagName(ulTag) || n->hasTagName(olTag) || n->hasTagName(dlTag))
return true;
RenderObject *renderer = n->renderer();
......@@ -273,7 +273,7 @@ ElementImpl *createDefaultParagraphElement(DocumentImpl *document)
// We would need this margin-zeroing code back if we ever return to using <p> elements for default paragraphs.
// static const DOMString defaultParagraphStyle("margin-top: 0; margin-bottom: 0");
int exceptionCode = 0;
ElementImpl *element = document->createElementNS(HTMLTags::xhtmlNamespaceURI(), "div", exceptionCode);
ElementImpl *element = document->createElementNS(xhtmlNamespaceURI, "div", exceptionCode);
ASSERT(exceptionCode == 0);
return element;