<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173980] trunk/Source</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173980">173980</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-09-25 16:37:12 -0700 (Thu, 25 Sep 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Use is<HTML*Element>() instead of isHTML*Element() - Part 2
https://bugs.webkit.org/show_bug.cgi?id=137103
Reviewed by Benjamin Poulain.
Source/WebCore:
Use is<HTML*Element>() instead of isHTML*Element() and drop support for
the generated isHTML*Element() macros.
No new tests, no behavior change.
* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::focusedUIElementForPage):
(WebCore::AXObjectCache::getOrCreate):
(WebCore::AXObjectCache::handleAttributeChanged):
(WebCore::AXObjectCache::labelChanged):
* accessibility/AccessibilityListBoxOption.cpp:
(WebCore::AccessibilityListBoxOption::isEnabled):
(WebCore::AccessibilityListBoxOption::stringValue):
(WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::determineAccessibilityRole):
(WebCore::AccessibilityNodeObject::isNativeImage):
(WebCore::AccessibilityNodeObject::anchorElement):
(WebCore::AccessibilityNodeObject::alternativeText):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::anchorElement):
(WebCore::AccessibilityRenderObject::labelElementContainer):
(WebCore::AccessibilityRenderObject::internalLinkElement):
(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
(WebCore::AccessibilityRenderObject::url):
(WebCore::AccessibilityRenderObject::getDocumentLinks):
(WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
(WebCore::AccessibilityRenderObject::accessibilityHitTest):
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
(WebCore::AccessibilityRenderObject::stringValueForMSAA):
(WebCore::AccessibilityRenderObject::isLinked):
* accessibility/AccessibilityTable.cpp:
(WebCore::AccessibilityTable::tableElement):
(WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
(WebCore::AccessibilityTable::title):
* accessibility/atk/WebKitAccessibleInterfaceTable.cpp:
(webkitAccessibleTableGetCaption):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::nameGetter):
* bindings/js/JSNodeCustom.cpp:
(WebCore::isReachableFromDOM):
* css/CSSDefaultStyleSheets.cpp:
(WebCore::elementCanUseSimpleDefaultStyle):
(WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
* css/CSSStyleSheet.cpp:
(WebCore::isAcceptableCSSStyleSheetParent):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::adjustRenderStyle):
* css/StyleSheetList.cpp:
(WebCore::StyleSheetList::getNamedItem):
* dom/CurrentScriptIncrementer.h:
(WebCore::CurrentScriptIncrementer::CurrentScriptIncrementer):
* dom/DataTransfer.cpp:
(WebCore::DataTransfer::setDragImage):
* dom/DocumentOrderedMap.cpp:
(WebCore::keyMatchesMapName):
(WebCore::keyMatchesLowercasedMapName):
(WebCore::keyMatchesLowercasedUsemap):
(WebCore::keyMatchesLabelForAttribute):
* dom/DocumentStyleSheetCollection.cpp:
(WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
* dom/Node.cpp:
(WebCore::Node::enclosingLinkEventParentOrSelf):
* dom/Position.cpp:
(WebCore::endsOfNodeAreVisuallyDistinctPositions):
* dom/ScriptElement.cpp:
(WebCore::toScriptElementIfPossible):
* dom/VisitedLinkState.cpp:
(WebCore::linkHashForElement):
(WebCore::VisitedLinkState::determineLinkStateSlowCase):
* dom/make_names.pl:
(printTypeHelpers):
* editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::handleGeneralDelete):
* editing/Editor.cpp:
(WebCore::imageElementFromImageDocument):
* editing/FrameSelection.cpp:
(WebCore::scanForForm):
* editing/InsertLineBreakCommand.cpp:
(WebCore::InsertLineBreakCommand::doApply):
* editing/InsertParagraphSeparatorCommand.cpp:
(WebCore::InsertParagraphSeparatorCommand::doApply):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::removeHeadContents):
* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_processElement):
* editing/htmlediting.cpp:
(WebCore::isNonTableCellHTMLBlockElement):
* editing/markup.cpp:
(WebCore::ancestorToRetainStructureAndAppearanceForBlock):
(WebCore::collectElementsToRemoveFromFragment):
* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
* html/FormAssociatedElement.cpp:
(WebCore::FormAssociatedElement::findAssociatedForm):
* html/HTMLAnchorElement.cpp:
(WebCore::appendServerMapMousePosition):
* html/HTMLAreaElement.cpp:
(WebCore::HTMLAreaElement::imageElement):
* html/HTMLDocument.cpp:
(WebCore::HTMLDocument::bgColor):
(WebCore::HTMLDocument::setBgColor):
(WebCore::HTMLDocument::fgColor):
(WebCore::HTMLDocument::setFgColor):
(WebCore::HTMLDocument::alinkColor):
(WebCore::HTMLDocument::setAlinkColor):
(WebCore::HTMLDocument::linkColor):
(WebCore::HTMLDocument::setLinkColor):
(WebCore::HTMLDocument::vlinkColor):
(WebCore::HTMLDocument::setVlinkColor):
(WebCore::HTMLDocument::isFrameSet):
* html/HTMLElement.cpp:
(WebCore::HTMLElement::setInnerHTML):
* html/HTMLFieldSetElement.cpp:
(WebCore::updateFromControlElementsAncestorDisabledStateUnder):
(WebCore::HTMLFieldSetElement::disabledStateChanged):
* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::computeIsDisabledByFieldsetAncestor):
* html/HTMLFormControlsCollection.cpp:
(WebCore::HTMLFormControlsCollection::HTMLFormControlsCollection):
(WebCore::HTMLFormControlsCollection::formControlElements):
(WebCore::HTMLFormControlsCollection::formImageElements):
(WebCore::HTMLFormControlsCollection::namedItem):
(WebCore::HTMLFormControlsCollection::updateNamedElementCache):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::rendererIsNeeded):
* html/HTMLFrameElementBase.h:
(WebCore::isHTMLFrameElementBase):
* html/HTMLImageLoader.cpp:
(WebCore::HTMLImageLoader::dispatchLoadEvent):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::dataList):
* html/HTMLLegendElement.cpp:
(WebCore::HTMLLegendElement::virtualForm):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* html/HTMLNameCollection.cpp:
(WebCore::WindowNameCollection::elementMatchesIfNameAttributeMatch):
(WebCore::DocumentNameCollection::elementMatches):
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::ownerDataListElement):
(WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
(WebCore::HTMLOptionElement::isDisabledFormControl):
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::recalcListItems):
* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::caption):
* html/HTMLTablePartElement.cpp:
(WebCore::HTMLTablePartElement::findParentTable):
* html/HTMLTableRowElement.cpp:
(WebCore::HTMLTableRowElement::rowIndex):
* html/HTMLTableRowsCollection.cpp:
(WebCore::HTMLTableRowsCollection::rowAfter):
(WebCore::HTMLTableRowsCollection::lastRow):
* html/HTMLTagNames.in:
* html/LabelsNodeList.cpp:
(WebCore::LabelsNodeList::elementMatches):
* html/MediaDocument.cpp:
(WebCore::descendentVideoElement):
(WebCore::ancestorVideoElement):
* html/RadioInputType.cpp:
(WebCore::RadioInputType::handleKeydownEvent):
* html/RadioNodeList.cpp:
(WebCore::RadioNodeList::RadioNodeList):
(WebCore::RadioNodeList::checkElementMatchesRadioNodeListFilter):
* html/parser/HTMLConstructionSite.cpp:
(WebCore::hasImpliedEndTag):
(WebCore::insert):
(WebCore::HTMLConstructionSite::insertHTMLFormElement):
(WebCore::HTMLConstructionSite::insertTextNode):
(WebCore::HTMLConstructionSite::ownerDocumentForCurrentNode):
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLNames::isScopeMarker):
(WebCore::HTMLNames::isTableScopeMarker):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
(WebCore::HTMLTreeBuilder::processStartTag):
(WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
(WebCore::HTMLTreeBuilder::processEndTag):
(WebCore::HTMLTreeBuilder::processCharacterBuffer):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForNode):
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::inlineStyleSheetText):
* page/DragController.cpp:
(WebCore::DragController::draggableElement):
* page/FocusController.cpp:
(WebCore::FocusController::advanceFocusDirectionally):
* page/PageSerializer.cpp:
(WebCore::PageSerializer::serializeFrame):
* page/SpatialNavigation.cpp:
(WebCore::FocusCandidate::FocusCandidate):
(WebCore::areElementsOnSameLine):
* page/ios/FrameIOS.mm:
(WebCore::ancestorRespondingToClickEvents):
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::altDisplayString):
(WebCore::HitTestResult::mediaSupportsFullscreen):
(WebCore::HitTestResult::mediaElement):
(WebCore::HitTestResult::enterFullscreenForVideo):
(WebCore::HitTestResult::mediaIsVideo):
(WebCore::HitTestResult::isLiveLink):
* rendering/RenderCounter.cpp:
(WebCore::planCounter):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::RenderImage):
(WebCore::RenderImage::paintAreaElementFocusRing):
(WebCore::RenderImage::paintIntoRect):
(WebCore::RenderImage::imageMap):
(WebCore::RenderImage::updateAltText):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::updateFromElement):
(WebCore::RenderListBox::paintItemForeground):
* rendering/RenderMarquee.cpp:
(WebCore::RenderMarquee::marqueeSpeed):
* rendering/RenderMenuList.cpp:
(RenderMenuList::itemText):
(RenderMenuList::itemIsEnabled):
(RenderMenuList::itemIsLabel):
* rendering/RenderMeter.cpp:
(WebCore::RenderMeter::meterElement):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::shouldRespectImageOrientation):
(WebCore::RenderObject::getTextDecorationColors):
(WebCore::RenderObject::offsetParent):
* rendering/RenderProgress.cpp:
(WebCore::RenderProgress::progressElement):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth):
(WebCore::RenderTable::convertStyleLogicalHeightToComputedHeight):
* svg/graphics/SVGImageCache.cpp:
(WebCore::SVGImageCache::imageForRenderer):
* testing/Internals.cpp:
(WebCore::Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks):
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::XMLDocumentParser::startElementNs):
Source/WebKit/win:
Use is<HTML*Element>() instead of isHTML*Element().
* DOMCoreClasses.cpp:
(DOMElement::createInstance):
* DOMHTMLClasses.cpp:
(DOMHTMLFormElement::action):
(DOMHTMLFormElement::method):
* WebFrame.cpp:
(formElementFromDOMElement):
Source/WebKit2:
Use is<HTML*Element>() instead of isHTML*Element().
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::containsAnyFormElements):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::determinePrimarySnapshottedPlugIn):
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::getAssistedNodeInformation):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAXObjectCachecpp">trunk/Source/WebCore/accessibility/AXObjectCache.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityListBoxOptioncpp">trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityNodeObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityTablecpp">trunk/Source/WebCore/accessibility/AccessibilityTable.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityatkWebKitAccessibleInterfaceTablecpp">trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceTable.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSHTMLDocumentCustomcpp">trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSNodeCustomcpp">trunk/Source/WebCore/bindings/js/JSNodeCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSDefaultStyleSheetscpp">trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSDefaultStyleSheetsh">trunk/Source/WebCore/css/CSSDefaultStyleSheets.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSStyleSheetcpp">trunk/Source/WebCore/css/CSSStyleSheet.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleSheetListcpp">trunk/Source/WebCore/css/StyleSheetList.cpp</a></li>
<li><a href="#trunkSourceWebCoredomCurrentScriptIncrementerh">trunk/Source/WebCore/dom/CurrentScriptIncrementer.h</a></li>
<li><a href="#trunkSourceWebCoredomDataTransfercpp">trunk/Source/WebCore/dom/DataTransfer.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumentOrderedMapcpp">trunk/Source/WebCore/dom/DocumentOrderedMap.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumentStyleSheetCollectioncpp">trunk/Source/WebCore/dom/DocumentStyleSheetCollection.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodecpp">trunk/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPositioncpp">trunk/Source/WebCore/dom/Position.cpp</a></li>
<li><a href="#trunkSourceWebCoredomScriptElementcpp">trunk/Source/WebCore/dom/ScriptElement.cpp</a></li>
<li><a href="#trunkSourceWebCoredomVisitedLinkStatecpp">trunk/Source/WebCore/dom/VisitedLinkState.cpp</a></li>
<li><a href="#trunkSourceWebCoredommake_namespl">trunk/Source/WebCore/dom/make_names.pl</a></li>
<li><a href="#trunkSourceWebCoreeditingDeleteSelectionCommandcpp">trunk/Source/WebCore/editing/DeleteSelectionCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorcpp">trunk/Source/WebCore/editing/Editor.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingFrameSelectioncpp">trunk/Source/WebCore/editing/FrameSelection.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingInsertLineBreakCommandcpp">trunk/Source/WebCore/editing/InsertLineBreakCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingInsertParagraphSeparatorCommandcpp">trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingReplaceSelectionCommandcpp">trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingcocoaHTMLConvertermm">trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm</a></li>
<li><a href="#trunkSourceWebCoreeditinghtmleditingcpp">trunk/Source/WebCore/editing/htmlediting.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingmarkupcpp">trunk/Source/WebCore/editing/markup.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlFTPDirectoryDocumentcpp">trunk/Source/WebCore/html/FTPDirectoryDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlFormAssociatedElementcpp">trunk/Source/WebCore/html/FormAssociatedElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLAnchorElementcpp">trunk/Source/WebCore/html/HTMLAnchorElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLAreaElementcpp">trunk/Source/WebCore/html/HTMLAreaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLDocumentcpp">trunk/Source/WebCore/html/HTMLDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLElementcpp">trunk/Source/WebCore/html/HTMLElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFieldSetElementcpp">trunk/Source/WebCore/html/HTMLFieldSetElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormControlElementcpp">trunk/Source/WebCore/html/HTMLFormControlElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormControlsCollectioncpp">trunk/Source/WebCore/html/HTMLFormControlsCollection.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormElementcpp">trunk/Source/WebCore/html/HTMLFormElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFrameElementBaseh">trunk/Source/WebCore/html/HTMLFrameElementBase.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageLoadercpp">trunk/Source/WebCore/html/HTMLImageLoader.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLInputElementcpp">trunk/Source/WebCore/html/HTMLInputElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLLegendElementcpp">trunk/Source/WebCore/html/HTMLLegendElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLNameCollectioncpp">trunk/Source/WebCore/html/HTMLNameCollection.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLOptionElementcpp">trunk/Source/WebCore/html/HTMLOptionElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLSelectElementcpp">trunk/Source/WebCore/html/HTMLSelectElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableElementcpp">trunk/Source/WebCore/html/HTMLTableElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTablePartElementcpp">trunk/Source/WebCore/html/HTMLTablePartElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableRowElementcpp">trunk/Source/WebCore/html/HTMLTableRowElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableRowsCollectioncpp">trunk/Source/WebCore/html/HTMLTableRowsCollection.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTagNamesin">trunk/Source/WebCore/html/HTMLTagNames.in</a></li>
<li><a href="#trunkSourceWebCorehtmlLabelsNodeListcpp">trunk/Source/WebCore/html/LabelsNodeList.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlMediaDocumentcpp">trunk/Source/WebCore/html/MediaDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlRadioInputTypecpp">trunk/Source/WebCore/html/RadioInputType.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlRadioNodeListcpp">trunk/Source/WebCore/html/RadioNodeList.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLConstructionSitecpp">trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLElementStackcpp">trunk/Source/WebCore/html/parser/HTMLElementStack.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLTreeBuildercpp">trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorStyleSheetcpp">trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDragControllercpp">trunk/Source/WebCore/page/DragController.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFocusControllercpp">trunk/Source/WebCore/page/FocusController.cpp</a></li>
<li><a href="#trunkSourceWebCorepagePageSerializercpp">trunk/Source/WebCore/page/PageSerializer.cpp</a></li>
<li><a href="#trunkSourceWebCorepageSpatialNavigationcpp">trunk/Source/WebCore/page/SpatialNavigation.cpp</a></li>
<li><a href="#trunkSourceWebCorepageiosFrameIOSmm">trunk/Source/WebCore/page/ios/FrameIOS.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingHitTestResultcpp">trunk/Source/WebCore/rendering/HitTestResult.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderCountercpp">trunk/Source/WebCore/rendering/RenderCounter.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderImagecpp">trunk/Source/WebCore/rendering/RenderImage.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListBoxcpp">trunk/Source/WebCore/rendering/RenderListBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMarqueecpp">trunk/Source/WebCore/rendering/RenderMarquee.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMenuListcpp">trunk/Source/WebCore/rendering/RenderMenuList.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMetercpp">trunk/Source/WebCore/rendering/RenderMeter.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderObjectcpp">trunk/Source/WebCore/rendering/RenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderProgresscpp">trunk/Source/WebCore/rendering/RenderProgress.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTablecpp">trunk/Source/WebCore/rendering/RenderTable.cpp</a></li>
<li><a href="#trunkSourceWebCoresvggraphicsSVGImageCachecpp">trunk/Source/WebCore/svg/graphics/SVGImageCache.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlparserXMLDocumentParserLibxml2cpp">trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp</a></li>
<li><a href="#trunkSourceWebKitwinChangeLog">trunk/Source/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitwinDOMCoreClassescpp">trunk/Source/WebKit/win/DOMCoreClasses.cpp</a></li>
<li><a href="#trunkSourceWebKitwinDOMHTMLClassescpp">trunk/Source/WebKit/win/DOMHTMLClasses.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebFramecpp">trunk/Source/WebKit/win/WebFrame.cpp</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebFramecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm">trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/ChangeLog        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1,3 +1,247 @@
</span><ins>+2014-09-25 Christophe Dumez <cdumez@apple.com>
+
+ Use is<HTML*Element>() instead of isHTML*Element() - Part 2
+ https://bugs.webkit.org/show_bug.cgi?id=137103
+
+ Reviewed by Benjamin Poulain.
+
+ Use is<HTML*Element>() instead of isHTML*Element() and drop support for
+ the generated isHTML*Element() macros.
+
+ No new tests, no behavior change.
+
+ * accessibility/AXObjectCache.cpp:
+ (WebCore::AXObjectCache::focusedUIElementForPage):
+ (WebCore::AXObjectCache::getOrCreate):
+ (WebCore::AXObjectCache::handleAttributeChanged):
+ (WebCore::AXObjectCache::labelChanged):
+ * accessibility/AccessibilityListBoxOption.cpp:
+ (WebCore::AccessibilityListBoxOption::isEnabled):
+ (WebCore::AccessibilityListBoxOption::stringValue):
+ (WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
+ * accessibility/AccessibilityNodeObject.cpp:
+ (WebCore::AccessibilityNodeObject::determineAccessibilityRole):
+ (WebCore::AccessibilityNodeObject::isNativeImage):
+ (WebCore::AccessibilityNodeObject::anchorElement):
+ (WebCore::AccessibilityNodeObject::alternativeText):
+ * accessibility/AccessibilityRenderObject.cpp:
+ (WebCore::AccessibilityRenderObject::anchorElement):
+ (WebCore::AccessibilityRenderObject::labelElementContainer):
+ (WebCore::AccessibilityRenderObject::internalLinkElement):
+ (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
+ (WebCore::AccessibilityRenderObject::url):
+ (WebCore::AccessibilityRenderObject::getDocumentLinks):
+ (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
+ (WebCore::AccessibilityRenderObject::accessibilityHitTest):
+ (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
+ (WebCore::AccessibilityRenderObject::stringValueForMSAA):
+ (WebCore::AccessibilityRenderObject::isLinked):
+ * accessibility/AccessibilityTable.cpp:
+ (WebCore::AccessibilityTable::tableElement):
+ (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
+ (WebCore::AccessibilityTable::title):
+ * accessibility/atk/WebKitAccessibleInterfaceTable.cpp:
+ (webkitAccessibleTableGetCaption):
+ * bindings/js/JSHTMLDocumentCustom.cpp:
+ (WebCore::JSHTMLDocument::nameGetter):
+ * bindings/js/JSNodeCustom.cpp:
+ (WebCore::isReachableFromDOM):
+ * css/CSSDefaultStyleSheets.cpp:
+ (WebCore::elementCanUseSimpleDefaultStyle):
+ (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
+ * css/CSSStyleSheet.cpp:
+ (WebCore::isAcceptableCSSStyleSheetParent):
+ * css/StyleResolver.cpp:
+ (WebCore::StyleResolver::adjustRenderStyle):
+ * css/StyleSheetList.cpp:
+ (WebCore::StyleSheetList::getNamedItem):
+ * dom/CurrentScriptIncrementer.h:
+ (WebCore::CurrentScriptIncrementer::CurrentScriptIncrementer):
+ * dom/DataTransfer.cpp:
+ (WebCore::DataTransfer::setDragImage):
+ * dom/DocumentOrderedMap.cpp:
+ (WebCore::keyMatchesMapName):
+ (WebCore::keyMatchesLowercasedMapName):
+ (WebCore::keyMatchesLowercasedUsemap):
+ (WebCore::keyMatchesLabelForAttribute):
+ * dom/DocumentStyleSheetCollection.cpp:
+ (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
+ * dom/Node.cpp:
+ (WebCore::Node::enclosingLinkEventParentOrSelf):
+ * dom/Position.cpp:
+ (WebCore::endsOfNodeAreVisuallyDistinctPositions):
+ * dom/ScriptElement.cpp:
+ (WebCore::toScriptElementIfPossible):
+ * dom/VisitedLinkState.cpp:
+ (WebCore::linkHashForElement):
+ (WebCore::VisitedLinkState::determineLinkStateSlowCase):
+ * dom/make_names.pl:
+ (printTypeHelpers):
+ * editing/DeleteSelectionCommand.cpp:
+ (WebCore::DeleteSelectionCommand::handleGeneralDelete):
+ * editing/Editor.cpp:
+ (WebCore::imageElementFromImageDocument):
+ * editing/FrameSelection.cpp:
+ (WebCore::scanForForm):
+ * editing/InsertLineBreakCommand.cpp:
+ (WebCore::InsertLineBreakCommand::doApply):
+ * editing/InsertParagraphSeparatorCommand.cpp:
+ (WebCore::InsertParagraphSeparatorCommand::doApply):
+ * editing/ReplaceSelectionCommand.cpp:
+ (WebCore::removeHeadContents):
+ * editing/cocoa/HTMLConverter.mm:
+ (HTMLConverter::_processElement):
+ * editing/htmlediting.cpp:
+ (WebCore::isNonTableCellHTMLBlockElement):
+ * editing/markup.cpp:
+ (WebCore::ancestorToRetainStructureAndAppearanceForBlock):
+ (WebCore::collectElementsToRemoveFromFragment):
+ * html/FTPDirectoryDocument.cpp:
+ (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
+ * html/FormAssociatedElement.cpp:
+ (WebCore::FormAssociatedElement::findAssociatedForm):
+ * html/HTMLAnchorElement.cpp:
+ (WebCore::appendServerMapMousePosition):
+ * html/HTMLAreaElement.cpp:
+ (WebCore::HTMLAreaElement::imageElement):
+ * html/HTMLDocument.cpp:
+ (WebCore::HTMLDocument::bgColor):
+ (WebCore::HTMLDocument::setBgColor):
+ (WebCore::HTMLDocument::fgColor):
+ (WebCore::HTMLDocument::setFgColor):
+ (WebCore::HTMLDocument::alinkColor):
+ (WebCore::HTMLDocument::setAlinkColor):
+ (WebCore::HTMLDocument::linkColor):
+ (WebCore::HTMLDocument::setLinkColor):
+ (WebCore::HTMLDocument::vlinkColor):
+ (WebCore::HTMLDocument::setVlinkColor):
+ (WebCore::HTMLDocument::isFrameSet):
+ * html/HTMLElement.cpp:
+ (WebCore::HTMLElement::setInnerHTML):
+ * html/HTMLFieldSetElement.cpp:
+ (WebCore::updateFromControlElementsAncestorDisabledStateUnder):
+ (WebCore::HTMLFieldSetElement::disabledStateChanged):
+ * html/HTMLFormControlElement.cpp:
+ (WebCore::HTMLFormControlElement::computeIsDisabledByFieldsetAncestor):
+ * html/HTMLFormControlsCollection.cpp:
+ (WebCore::HTMLFormControlsCollection::HTMLFormControlsCollection):
+ (WebCore::HTMLFormControlsCollection::formControlElements):
+ (WebCore::HTMLFormControlsCollection::formImageElements):
+ (WebCore::HTMLFormControlsCollection::namedItem):
+ (WebCore::HTMLFormControlsCollection::updateNamedElementCache):
+ * html/HTMLFormElement.cpp:
+ (WebCore::HTMLFormElement::rendererIsNeeded):
+ * html/HTMLFrameElementBase.h:
+ (WebCore::isHTMLFrameElementBase):
+ * html/HTMLImageLoader.cpp:
+ (WebCore::HTMLImageLoader::dispatchLoadEvent):
+ * html/HTMLInputElement.cpp:
+ (WebCore::HTMLInputElement::dataList):
+ * html/HTMLLegendElement.cpp:
+ (WebCore::HTMLLegendElement::virtualForm):
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::parseAttribute):
+ * html/HTMLNameCollection.cpp:
+ (WebCore::WindowNameCollection::elementMatchesIfNameAttributeMatch):
+ (WebCore::DocumentNameCollection::elementMatches):
+ * html/HTMLOptionElement.cpp:
+ (WebCore::HTMLOptionElement::ownerDataListElement):
+ (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
+ (WebCore::HTMLOptionElement::isDisabledFormControl):
+ * html/HTMLSelectElement.cpp:
+ (WebCore::HTMLSelectElement::recalcListItems):
+ * html/HTMLTableElement.cpp:
+ (WebCore::HTMLTableElement::caption):
+ * html/HTMLTablePartElement.cpp:
+ (WebCore::HTMLTablePartElement::findParentTable):
+ * html/HTMLTableRowElement.cpp:
+ (WebCore::HTMLTableRowElement::rowIndex):
+ * html/HTMLTableRowsCollection.cpp:
+ (WebCore::HTMLTableRowsCollection::rowAfter):
+ (WebCore::HTMLTableRowsCollection::lastRow):
+ * html/HTMLTagNames.in:
+ * html/LabelsNodeList.cpp:
+ (WebCore::LabelsNodeList::elementMatches):
+ * html/MediaDocument.cpp:
+ (WebCore::descendentVideoElement):
+ (WebCore::ancestorVideoElement):
+ * html/RadioInputType.cpp:
+ (WebCore::RadioInputType::handleKeydownEvent):
+ * html/RadioNodeList.cpp:
+ (WebCore::RadioNodeList::RadioNodeList):
+ (WebCore::RadioNodeList::checkElementMatchesRadioNodeListFilter):
+ * html/parser/HTMLConstructionSite.cpp:
+ (WebCore::hasImpliedEndTag):
+ (WebCore::insert):
+ (WebCore::HTMLConstructionSite::insertHTMLFormElement):
+ (WebCore::HTMLConstructionSite::insertTextNode):
+ (WebCore::HTMLConstructionSite::ownerDocumentForCurrentNode):
+ * html/parser/HTMLElementStack.cpp:
+ (WebCore::HTMLNames::isScopeMarker):
+ (WebCore::HTMLNames::isTableScopeMarker):
+ * html/parser/HTMLTreeBuilder.cpp:
+ (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
+ (WebCore::HTMLTreeBuilder::processStartTag):
+ (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
+ (WebCore::HTMLTreeBuilder::processEndTag):
+ (WebCore::HTMLTreeBuilder::processCharacterBuffer):
+ * inspector/InspectorDOMAgent.cpp:
+ (WebCore::InspectorDOMAgent::buildObjectForNode):
+ * inspector/InspectorStyleSheet.cpp:
+ (WebCore::InspectorStyleSheet::inlineStyleSheetText):
+ * page/DragController.cpp:
+ (WebCore::DragController::draggableElement):
+ * page/FocusController.cpp:
+ (WebCore::FocusController::advanceFocusDirectionally):
+ * page/PageSerializer.cpp:
+ (WebCore::PageSerializer::serializeFrame):
+ * page/SpatialNavigation.cpp:
+ (WebCore::FocusCandidate::FocusCandidate):
+ (WebCore::areElementsOnSameLine):
+ * page/ios/FrameIOS.mm:
+ (WebCore::ancestorRespondingToClickEvents):
+ * rendering/HitTestResult.cpp:
+ (WebCore::HitTestResult::altDisplayString):
+ (WebCore::HitTestResult::mediaSupportsFullscreen):
+ (WebCore::HitTestResult::mediaElement):
+ (WebCore::HitTestResult::enterFullscreenForVideo):
+ (WebCore::HitTestResult::mediaIsVideo):
+ (WebCore::HitTestResult::isLiveLink):
+ * rendering/RenderCounter.cpp:
+ (WebCore::planCounter):
+ * rendering/RenderImage.cpp:
+ (WebCore::RenderImage::RenderImage):
+ (WebCore::RenderImage::paintAreaElementFocusRing):
+ (WebCore::RenderImage::paintIntoRect):
+ (WebCore::RenderImage::imageMap):
+ (WebCore::RenderImage::updateAltText):
+ * rendering/RenderListBox.cpp:
+ (WebCore::RenderListBox::updateFromElement):
+ (WebCore::RenderListBox::paintItemForeground):
+ * rendering/RenderMarquee.cpp:
+ (WebCore::RenderMarquee::marqueeSpeed):
+ * rendering/RenderMenuList.cpp:
+ (RenderMenuList::itemText):
+ (RenderMenuList::itemIsEnabled):
+ (RenderMenuList::itemIsLabel):
+ * rendering/RenderMeter.cpp:
+ (WebCore::RenderMeter::meterElement):
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::shouldRespectImageOrientation):
+ (WebCore::RenderObject::getTextDecorationColors):
+ (WebCore::RenderObject::offsetParent):
+ * rendering/RenderProgress.cpp:
+ (WebCore::RenderProgress::progressElement):
+ * rendering/RenderTable.cpp:
+ (WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth):
+ (WebCore::RenderTable::convertStyleLogicalHeightToComputedHeight):
+ * svg/graphics/SVGImageCache.cpp:
+ (WebCore::SVGImageCache::imageForRenderer):
+ * testing/Internals.cpp:
+ (WebCore::Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks):
+ * xml/parser/XMLDocumentParserLibxml2.cpp:
+ (WebCore::XMLDocumentParser::startElementNs):
+
</ins><span class="cx"> 2014-09-25 Brian J. Burg <burg@cs.washington.edu>
</span><span class="cx">
</span><span class="cx"> Web Replay: Check event loop input extents during replay too
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAXObjectCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AXObjectCache.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AXObjectCache.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/AXObjectCache.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -176,7 +176,7 @@
</span><span class="cx"> // get the focused node in the page
</span><span class="cx"> Document* focusedDocument = page->focusController().focusedOrMainFrame().document();
</span><span class="cx"> Element* focusedElement = focusedDocument->focusedElement();
</span><del>- if (focusedElement && isHTMLAreaElement(focusedElement))
</del><ins>+ if (focusedElement && is<HTMLAreaElement>(focusedElement))
</ins><span class="cx"> return focusedImageMapUIElement(downcast<HTMLAreaElement>(focusedElement));
</span><span class="cx">
</span><span class="cx"> AccessibilityObject* obj = focusedDocument->axObjectCache()->getOrCreate(focusedElement ? static_cast<Node*>(focusedElement) : focusedDocument);
</span><span class="lines">@@ -386,7 +386,7 @@
</span><span class="cx">
</span><span class="cx"> bool insideMeterElement = false;
</span><span class="cx"> #if ENABLE(METER_ELEMENT)
</span><del>- insideMeterElement = isHTMLMeterElement(node->parentElement());
</del><ins>+ insideMeterElement = is<HTMLMeterElement>(node->parentElement());
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> if (!inCanvasSubtree && !isHidden && !insideMeterElement)
</span><span class="lines">@@ -917,7 +917,7 @@
</span><span class="cx"> handleAriaRoleChanged(element);
</span><span class="cx"> else if (attrName == altAttr || attrName == titleAttr)
</span><span class="cx"> textChanged(element);
</span><del>- else if (attrName == forAttr && isHTMLLabelElement(element))
</del><ins>+ else if (attrName == forAttr && is<HTMLLabelElement>(element))
</ins><span class="cx"> labelChanged(element);
</span><span class="cx">
</span><span class="cx"> if (!attrName.localName().string().startsWith("aria-"))
</span><span class="lines">@@ -947,7 +947,7 @@
</span><span class="cx">
</span><span class="cx"> void AXObjectCache::labelChanged(Element* element)
</span><span class="cx"> {
</span><del>- ASSERT(isHTMLLabelElement(element));
</del><ins>+ ASSERT(is<HTMLLabelElement>(element));
</ins><span class="cx"> HTMLElement* correspondingControl = downcast<HTMLLabelElement>(element)->control();
</span><span class="cx"> textChanged(correspondingControl);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityListBoxOptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> if (!m_optionElement)
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- if (isHTMLOptGroupElement(m_optionElement))
</del><ins>+ if (is<HTMLOptGroupElement>(m_optionElement))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true"))
</span><span class="lines">@@ -159,7 +159,7 @@
</span><span class="cx"> if (is<HTMLOptionElement>(m_optionElement))
</span><span class="cx"> return downcast<HTMLOptionElement>(*m_optionElement).text();
</span><span class="cx">
</span><del>- if (isHTMLOptGroupElement(m_optionElement))
</del><ins>+ if (is<HTMLOptGroupElement>(m_optionElement))
</ins><span class="cx"> return downcast<HTMLOptGroupElement>(*m_optionElement).groupLabelText();
</span><span class="cx">
</span><span class="cx"> return String();
</span><span class="lines">@@ -205,7 +205,7 @@
</span><span class="cx"> if (is<HTMLOptionElement>(m_optionElement))
</span><span class="cx"> return downcast<HTMLOptionElement>(*m_optionElement).ownerSelectElement();
</span><span class="cx">
</span><del>- if (isHTMLOptGroupElement(m_optionElement))
</del><ins>+ if (is<HTMLOptGroupElement>(m_optionElement))
</ins><span class="cx"> return downcast<HTMLOptGroupElement>(*m_optionElement).ownerSelectElement();
</span><span class="cx">
</span><span class="cx"> return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityNodeObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -321,7 +321,7 @@
</span><span class="cx"> return DivRole;
</span><span class="cx"> if (node()->hasTagName(pTag))
</span><span class="cx"> return ParagraphRole;
</span><del>- if (isHTMLLabelElement(node()))
</del><ins>+ if (is<HTMLLabelElement>(node()))
</ins><span class="cx"> return LabelRole;
</span><span class="cx"> if (node()->isElementNode() && toElement(node())->isFocusable())
</span><span class="cx"> return GroupRole;
</span><span class="lines">@@ -512,7 +512,7 @@
</span><span class="cx"> if (!node)
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- if (isHTMLImageElement(node))
</del><ins>+ if (is<HTMLImageElement>(node))
</ins><span class="cx"> return true;
</span><span class="cx">
</span><span class="cx"> if (node->hasTagName(appletTag) || node->hasTagName(embedTag) || node->hasTagName(objectTag))
</span><span class="lines">@@ -963,7 +963,7 @@
</span><span class="cx"> // search up the DOM tree for an anchor element
</span><span class="cx"> // NOTE: this assumes that any non-image with an anchor is an HTMLAnchorElement
</span><span class="cx"> for ( ; node; node = node->parentNode()) {
</span><del>- if (isHTMLAnchorElement(node) || (node->renderer() && cache->getOrCreate(node->renderer())->isAnchor()))
</del><ins>+ if (is<HTMLAnchorElement>(node) || (node->renderer() && cache->getOrCreate(node->renderer())->isAnchor()))
</ins><span class="cx"> return toElement(node);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1305,7 +1305,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> // The fieldset element derives its alternative text from the first associated legend element if one is available.
</span><del>- if (isHTMLFieldSetElement(node)) {
</del><ins>+ if (is<HTMLFieldSetElement>(node)) {
</ins><span class="cx"> AccessibilityObject* object = axObjectCache()->getOrCreate(downcast<HTMLFieldSetElement>(*node).legend());
</span><span class="cx"> if (object && !object->isHidden())
</span><span class="cx"> textOrder.append(AccessibilityText(accessibleNameForNode(object->node()), AlternativeText));
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -585,7 +585,7 @@
</span><span class="cx"> // NOTE: this assumes that any non-image with an anchor is an HTMLAnchorElement
</span><span class="cx"> Node* node = currRenderer->node();
</span><span class="cx"> for ( ; node; node = node->parentNode()) {
</span><del>- if (isHTMLAnchorElement(node) || (node->renderer() && cache->getOrCreate(node->renderer())->isAnchor()))
</del><ins>+ if (is<HTMLAnchorElement>(node) || (node->renderer() && cache->getOrCreate(node->renderer())->isAnchor()))
</ins><span class="cx"> return toElement(node);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -782,7 +782,7 @@
</span><span class="cx">
</span><span class="cx"> // find if this has a parent that is a label
</span><span class="cx"> for (Node* parentNode = m_renderer->node(); parentNode; parentNode = parentNode->parentNode()) {
</span><del>- if (isHTMLLabelElement(parentNode))
</del><ins>+ if (is<HTMLLabelElement>(parentNode))
</ins><span class="cx"> return downcast<HTMLLabelElement>(parentNode);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -914,7 +914,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> // Right now, we do not support ARIA links as internal link elements
</span><del>- if (!isHTMLAnchorElement(element))
</del><ins>+ if (!is<HTMLAnchorElement>(element))
</ins><span class="cx"> return nullptr;
</span><span class="cx"> HTMLAnchorElement& anchor = downcast<HTMLAnchorElement>(*element);
</span><span class="cx">
</span><span class="lines">@@ -1275,7 +1275,7 @@
</span><span class="cx">
</span><span class="cx"> // don't ignore labels, because they serve as TitleUIElements
</span><span class="cx"> Node* node = m_renderer->node();
</span><del>- if (node && isHTMLLabelElement(node))
</del><ins>+ if (node && is<HTMLLabelElement>(node))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> // Anything that is content editable should not be ignored.
</span><span class="lines">@@ -1507,7 +1507,7 @@
</span><span class="cx">
</span><span class="cx"> URL AccessibilityRenderObject::url() const
</span><span class="cx"> {
</span><del>- if (isAnchor() && isHTMLAnchorElement(m_renderer->node())) {
</del><ins>+ if (isAnchor() && is<HTMLAnchorElement>(m_renderer->node())) {
</ins><span class="cx"> if (HTMLAnchorElement* anchor = downcast<HTMLAnchorElement>(anchorElement()))
</span><span class="cx"> return anchor->href();
</span><span class="cx"> }
</span><span class="lines">@@ -1515,7 +1515,7 @@
</span><span class="cx"> if (isWebArea())
</span><span class="cx"> return m_renderer->document().url();
</span><span class="cx">
</span><del>- if (isImage() && m_renderer->node() && isHTMLImageElement(m_renderer->node()))
</del><ins>+ if (isImage() && m_renderer->node() && is<HTMLImageElement>(m_renderer->node()))
</ins><span class="cx"> return downcast<HTMLImageElement>(*m_renderer->node()).src();
</span><span class="cx">
</span><span class="cx"> if (isInputImage())
</span><span class="lines">@@ -1759,7 +1759,7 @@
</span><span class="cx"> result.append(axobj);
</span><span class="cx"> } else {
</span><span class="cx"> Node* parent = curr->parentNode();
</span><del>- if (parent && isHTMLAreaElement(curr) && isHTMLMapElement(parent)) {
</del><ins>+ if (parent && is<HTMLAreaElement>(curr) && is<HTMLMapElement>(parent)) {
</ins><span class="cx"> AccessibilityImageMapLink* areaObject = toAccessibilityImageMapLink(axObjectCache()->getOrCreate(ImageMapLinkRole));
</span><span class="cx"> HTMLMapElement& map = downcast<HTMLMapElement>(*parent);
</span><span class="cx"> areaObject->setHTMLAreaElement(downcast<HTMLAreaElement>(curr));
</span><span class="lines">@@ -2158,7 +2158,7 @@
</span><span class="cx">
</span><span class="cx"> AccessibilityObject* parent = nullptr;
</span><span class="cx"> for (Element* mapParent = area->parentElement(); mapParent; mapParent = mapParent->parentElement()) {
</span><del>- if (isHTMLMapElement(mapParent)) {
</del><ins>+ if (is<HTMLMapElement>(mapParent)) {
</ins><span class="cx"> parent = accessibilityParentForImageMap(downcast<HTMLMapElement>(mapParent));
</span><span class="cx"> break;
</span><span class="cx"> }
</span><span class="lines">@@ -2208,7 +2208,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> Node* node = hitTestResult.innerNode()->deprecatedShadowAncestorNode();
</span><span class="cx">
</span><del>- if (isHTMLAreaElement(node))
</del><ins>+ if (is<HTMLAreaElement>(node))
</ins><span class="cx"> return accessibilityImageMapHitTest(downcast<HTMLAreaElement>(node), point);
</span><span class="cx">
</span><span class="cx"> if (is<HTMLOptionElement>(node))
</span><span class="lines">@@ -2572,7 +2572,7 @@
</span><span class="cx"> if (node && node->hasTagName(trTag))
</span><span class="cx"> return RowRole;
</span><span class="cx">
</span><del>- if (node && isHTMLTableElement(node))
</del><ins>+ if (node && is<HTMLTableElement>(node))
</ins><span class="cx"> return TableRole;
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -2586,7 +2586,7 @@
</span><span class="cx"> if (node && node->hasTagName(pTag))
</span><span class="cx"> return ParagraphRole;
</span><span class="cx">
</span><del>- if (node && isHTMLLabelElement(node))
</del><ins>+ if (node && is<HTMLLabelElement>(node))
</ins><span class="cx"> return LabelRole;
</span><span class="cx">
</span><span class="cx"> if (node && node->hasTagName(dfnTag))
</span><span class="lines">@@ -2595,7 +2595,7 @@
</span><span class="cx"> if (node && node->hasTagName(divTag))
</span><span class="cx"> return DivRole;
</span><span class="cx">
</span><del>- if (node && isHTMLFormElement(node))
</del><ins>+ if (node && is<HTMLFormElement>(node))
</ins><span class="cx"> return FormRole;
</span><span class="cx">
</span><span class="cx"> if (node && node->hasTagName(articleTag))
</span><span class="lines">@@ -2617,9 +2617,9 @@
</span><span class="cx"> return LandmarkContentInfoRole;
</span><span class="cx">
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>- if (node && isHTMLVideoElement(node))
</del><ins>+ if (node && is<HTMLVideoElement>(node))
</ins><span class="cx"> return VideoRole;
</span><del>- if (node && isHTMLAudioElement(node))
</del><ins>+ if (node && is<HTMLAudioElement>(node))
</ins><span class="cx"> return AudioRole;
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -3269,7 +3269,7 @@
</span><span class="cx"> {
</span><span class="cx"> if (isLinkable(*this)) {
</span><span class="cx"> Element* anchor = anchorElement();
</span><del>- if (anchor && isHTMLAnchorElement(anchor))
</del><ins>+ if (anchor && is<HTMLAnchorElement>(anchor))
</ins><span class="cx"> return downcast<HTMLAnchorElement>(*anchor).href();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3282,7 +3282,7 @@
</span><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> Element* anchor = anchorElement();
</span><del>- if (!anchor || !isHTMLAnchorElement(anchor))
</del><ins>+ if (!anchor || !is<HTMLAnchorElement>(anchor))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> return !downcast<HTMLAnchorElement>(*anchor).href().isEmpty();
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityTablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityTable.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityTable.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/AccessibilityTable.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> RenderTable* table = toRenderTable(m_renderer);
</span><del>- if (table->element() && isHTMLTableElement(table->element()))
</del><ins>+ if (table->element() && is<HTMLTableElement>(table->element()))
</ins><span class="cx"> return downcast<HTMLTableElement>(table->element());
</span><span class="cx">
</span><span class="cx"> // If the table has a display:table-row-group, then the RenderTable does not have a pointer to it's HTMLTableElement.
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> Element* actualTable = firstBody->element()->parentElement();
</span><del>- if (!actualTable || !isHTMLTableElement(actualTable))
</del><ins>+ if (!actualTable || !is<HTMLTableElement>(actualTable))
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> return downcast<HTMLTableElement>(actualTable);
</span><span class="lines">@@ -328,7 +328,7 @@
</span><span class="cx"> // Gtk+ ATs expect all tables to be exposed as tables.
</span><span class="cx"> #if PLATFORM(GTK) || PLATFORM(EFL)
</span><span class="cx"> Element* tableNode = toRenderTable(m_renderer)->element();
</span><del>- return tableNode && isHTMLTableElement(tableNode);
</del><ins>+ return tableNode && is<HTMLTableElement>(tableNode);
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> return isDataTable();
</span><span class="lines">@@ -607,7 +607,7 @@
</span><span class="cx">
</span><span class="cx"> // see if there is a caption
</span><span class="cx"> Node* tableElement = m_renderer->node();
</span><del>- if (tableElement && isHTMLTableElement(tableElement)) {
</del><ins>+ if (tableElement && is<HTMLTableElement>(tableElement)) {
</ins><span class="cx"> if (HTMLTableCaptionElement* caption = downcast<HTMLTableElement>(*tableElement).caption())
</span><span class="cx"> title = caption->innerText();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityatkWebKitAccessibleInterfaceTablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceTable.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceTable.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceTable.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -244,7 +244,7 @@
</span><span class="cx"> AccessibilityObject* accTable = core(table);
</span><span class="cx"> if (accTable->isAccessibilityRenderObject()) {
</span><span class="cx"> Node* node = accTable->node();
</span><del>- if (node && isHTMLTableElement(node)) {
</del><ins>+ if (node && is<HTMLTableElement>(node)) {
</ins><span class="cx"> HTMLTableCaptionElement* caption = downcast<HTMLTableElement>(*node).caption();
</span><span class="cx"> if (caption)
</span><span class="cx"> return AccessibilityObject::firstAccessibleObjectFromNode(caption->renderer()->element())->wrapper();
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSHTMLDocumentCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Element* element = document.documentNamedItem(*atomicPropertyName);
</span><del>- if (UNLIKELY(isHTMLIFrameElement(element))) {
</del><ins>+ if (UNLIKELY(is<HTMLIFrameElement>(element))) {
</ins><span class="cx"> if (Frame* frame = downcast<HTMLIFrameElement>(*element).contentFrame())
</span><span class="cx"> return JSValue::encode(toJS(exec, frame));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSNodeCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSNodeCustom.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSNodeCustom.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/bindings/js/JSNodeCustom.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -105,12 +105,12 @@
</span><span class="cx"> // because it is the only thing keeping the image element alive, and if
</span><span class="cx"> // the element is destroyed, its load event will not fire.
</span><span class="cx"> // FIXME: The DOM should manage this issue without the help of JavaScript wrappers.
</span><del>- if (isHTMLImageElement(element)) {
</del><ins>+ if (is<HTMLImageElement>(element)) {
</ins><span class="cx"> if (downcast<HTMLImageElement>(element).hasPendingActivity())
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>- else if (isHTMLAudioElement(element)) {
</del><ins>+ else if (is<HTMLAudioElement>(element)) {
</ins><span class="cx"> if (!downcast<HTMLAudioElement>(element).paused())
</span><span class="cx"> return true;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSDefaultStyleSheetscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> #include "ChromeClient.h"
</span><span class="cx"> #include "HTMLAnchorElement.h"
</span><span class="cx"> #include "HTMLAudioElement.h"
</span><ins>+#include "HTMLBRElement.h"
</ins><span class="cx"> #include "MediaQueryEvaluator.h"
</span><span class="cx"> #include "Page.h"
</span><span class="cx"> #include "RenderTheme.h"
</span><span class="lines">@@ -62,9 +63,12 @@
</span><span class="cx"> // FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet.
</span><span class="cx"> static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}head{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto 5px -webkit-focus-ring-color}a:-webkit-any-link{color:-webkit-link;text-decoration:underline}a:-webkit-any-link:active{color:-webkit-activelink}";
</span><span class="cx">
</span><del>-static inline bool elementCanUseSimpleDefaultStyle(Element* e)
</del><ins>+static inline bool elementCanUseSimpleDefaultStyle(Element& element)
</ins><span class="cx"> {
</span><del>- return e->hasTagName(htmlTag) || e->hasTagName(headTag) || e->hasTagName(bodyTag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || isHTMLAnchorElement(e);
</del><ins>+ return is<HTMLHtmlElement>(element) || is<HTMLHeadElement>(element)
+ || is<HTMLBodyElement>(element) || is<HTMLDivElement>(element)
+ || is<HTMLSpanElement>(element) || is<HTMLBRElement>(element)
+ || is<HTMLAnchorElement>(element);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static const MediaQueryEvaluator& screenEval()
</span><span class="lines">@@ -94,7 +98,7 @@
</span><span class="cx"> void CSSDefaultStyleSheets::initDefaultStyle(Element* root)
</span><span class="cx"> {
</span><span class="cx"> if (!defaultStyle) {
</span><del>- if (!root || elementCanUseSimpleDefaultStyle(root))
</del><ins>+ if (!root || elementCanUseSimpleDefaultStyle(*root))
</ins><span class="cx"> loadSimpleDefaultStyle();
</span><span class="cx"> else
</span><span class="cx"> loadFullDefaultStyle();
</span><span class="lines">@@ -146,14 +150,14 @@
</span><span class="cx"> // No need to initialize quirks sheet yet as there are no quirk rules for elements allowed in simple default style.
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, bool& changedDefaultStyle)
</del><ins>+void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element& element, bool& changedDefaultStyle)
</ins><span class="cx"> {
</span><span class="cx"> if (simpleDefaultStyleSheet && !elementCanUseSimpleDefaultStyle(element)) {
</span><span class="cx"> loadFullDefaultStyle();
</span><span class="cx"> changedDefaultStyle = true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if (element->isSVGElement() && !svgStyleSheet) {
</del><ins>+ if (element.isSVGElement() && !svgStyleSheet) {
</ins><span class="cx"> // SVG rules.
</span><span class="cx"> svgStyleSheet = parseUASheet(svgUserAgentStyleSheet, sizeof(svgUserAgentStyleSheet));
</span><span class="cx"> defaultStyle->addRulesFromSheet(svgStyleSheet, screenEval());
</span><span class="lines">@@ -162,7 +166,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(MATHML)
</span><del>- if (element->isMathMLElement() && !mathMLStyleSheet) {
</del><ins>+ if (element.isMathMLElement() && !mathMLStyleSheet) {
</ins><span class="cx"> // MathML rules.
</span><span class="cx"> mathMLStyleSheet = parseUASheet(mathmlUserAgentStyleSheet, sizeof(mathmlUserAgentStyleSheet));
</span><span class="cx"> defaultStyle->addRulesFromSheet(mathMLStyleSheet, screenEval());
</span><span class="lines">@@ -172,10 +176,10 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(VIDEO)
</span><del>- if (!mediaControlsStyleSheet && (element->hasTagName(videoTag) || isHTMLAudioElement(element))) {
- String mediaRules = RenderTheme::themeForPage(element->document().page())->mediaControlsStyleSheet();
</del><ins>+ if (!mediaControlsStyleSheet && (is<HTMLVideoElement>(element) || is<HTMLAudioElement>(element))) {
+ String mediaRules = RenderTheme::themeForPage(element.document().page())->mediaControlsStyleSheet();
</ins><span class="cx"> if (mediaRules.isEmpty())
</span><del>- mediaRules = String(mediaControlsUserAgentStyleSheet, sizeof(mediaControlsUserAgentStyleSheet)) + RenderTheme::themeForPage(element->document().page())->extraMediaControlsStyleSheet();
</del><ins>+ mediaRules = String(mediaControlsUserAgentStyleSheet, sizeof(mediaControlsUserAgentStyleSheet)) + RenderTheme::themeForPage(element.document().page())->extraMediaControlsStyleSheet();
</ins><span class="cx"> mediaControlsStyleSheet = parseUASheet(mediaRules);
</span><span class="cx"> defaultStyle->addRulesFromSheet(mediaControlsStyleSheet, screenEval());
</span><span class="cx"> defaultPrintStyle->addRulesFromSheet(mediaControlsStyleSheet, printEval());
</span><span class="lines">@@ -184,7 +188,7 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(FULLSCREEN_API)
</span><del>- if (!fullscreenStyleSheet && element->document().webkitIsFullScreen()) {
</del><ins>+ if (!fullscreenStyleSheet && element.document().webkitIsFullScreen()) {
</ins><span class="cx"> String fullscreenRules = String(fullscreenUserAgentStyleSheet, sizeof(fullscreenUserAgentStyleSheet)) + RenderTheme::defaultTheme()->extraFullScreenStyleSheet();
</span><span class="cx"> fullscreenStyleSheet = parseUASheet(fullscreenRules);
</span><span class="cx"> defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval());
</span><span class="lines">@@ -194,8 +198,8 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(SERVICE_CONTROLS)
</span><del>- if (!imageControlsStyleSheet && element->isImageControlsRootElement()) {
- String imageControlsRules = RenderTheme::themeForPage(element->document().page())->imageControlsStyleSheet();
</del><ins>+ if (!imageControlsStyleSheet && element.isImageControlsRootElement()) {
+ String imageControlsRules = RenderTheme::themeForPage(element.document().page())->imageControlsStyleSheet();
</ins><span class="cx"> imageControlsStyleSheet = parseUASheet(imageControlsRules);
</span><span class="cx"> defaultStyle->addRulesFromSheet(imageControlsStyleSheet, screenEval());
</span><span class="cx"> defaultPrintStyle->addRulesFromSheet(imageControlsStyleSheet, printEval());
</span><span class="lines">@@ -203,8 +207,8 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- if (!plugInsStyleSheet && (element->hasTagName(objectTag) || element->hasTagName(embedTag))) {
- String plugInsRules = RenderTheme::themeForPage(element->document().page())->extraPlugInsStyleSheet() + element->document().page()->chrome().client().plugInExtraStyleSheet();
</del><ins>+ if (!plugInsStyleSheet && (is<HTMLObjectElement>(element) || is<HTMLEmbedElement>(element))) {
+ String plugInsRules = RenderTheme::themeForPage(element.document().page())->extraPlugInsStyleSheet() + element.document().page()->chrome().client().plugInExtraStyleSheet();
</ins><span class="cx"> if (plugInsRules.isEmpty())
</span><span class="cx"> plugInsRules = String(plugInsUserAgentStyleSheet, sizeof(plugInsUserAgentStyleSheet));
</span><span class="cx"> plugInsStyleSheet = parseUASheet(plugInsRules);
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSDefaultStyleSheetsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSDefaultStyleSheets.h (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSDefaultStyleSheets.h        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/css/CSSDefaultStyleSheets.h        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> static StyleSheetContents* plugInsStyleSheet;
</span><span class="cx"> static StyleSheetContents* imageControlsStyleSheet;
</span><span class="cx">
</span><del>- static void ensureDefaultStyleSheetsForElement(Element*, bool& changedDefaultStyle);
</del><ins>+ static void ensureDefaultStyleSheetsForElement(Element&, bool& changedDefaultStyle);
</ins><span class="cx"> static void loadFullDefaultStyle();
</span><span class="cx"> static void loadSimpleDefaultStyle();
</span><span class="cx"> static void initDefaultStyle(Element*);
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSStyleSheet.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSStyleSheet.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/css/CSSStyleSheet.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -36,6 +36,7 @@
</span><span class="cx"> #include "MediaList.h"
</span><span class="cx"> #include "Node.h"
</span><span class="cx"> #include "SVGNames.h"
</span><ins>+#include "SVGStyleElement.h"
</ins><span class="cx"> #include "SecurityOrigin.h"
</span><span class="cx"> #include "StyleResolver.h"
</span><span class="cx"> #include "StyleRule.h"
</span><span class="lines">@@ -67,9 +68,9 @@
</span><span class="cx"> // Only these nodes can be parents of StyleSheets, and they need to call clearOwnerNode() when moved out of document.
</span><span class="cx"> return !parentNode
</span><span class="cx"> || parentNode->isDocumentNode()
</span><del>- || parentNode->hasTagName(HTMLNames::linkTag)
- || isHTMLStyleElement(parentNode)
- || parentNode->hasTagName(SVGNames::styleTag)
</del><ins>+ || is<HTMLLinkElement>(parentNode)
+ || is<HTMLStyleElement>(parentNode)
+ || is<SVGStyleElement>(parentNode)
</ins><span class="cx"> || parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -783,7 +783,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool needsCollection = false;
</span><del>- CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(element, needsCollection);
</del><ins>+ CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(*element, needsCollection);
</ins><span class="cx"> if (needsCollection)
</span><span class="cx"> m_ruleSets.collectFeatures();
</span><span class="cx">
</span><span class="lines">@@ -1170,7 +1170,7 @@
</span><span class="cx"> if (e->hasTagName(tdTag)) {
</span><span class="cx"> style.setDisplay(TABLE_CELL);
</span><span class="cx"> style.setFloating(NoFloat);
</span><del>- } else if (isHTMLTableElement(e))
</del><ins>+ } else if (is<HTMLTableElement>(e))
</ins><span class="cx"> style.setDisplay(style.isDisplayInlineType() ? INLINE_TABLE : TABLE);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1187,7 +1187,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Tables never support the -webkit-* values for text-align and will reset back to the default.
</span><del>- if (e && isHTMLTableElement(e) && (style.textAlign() == WEBKIT_LEFT || style.textAlign() == WEBKIT_CENTER || style.textAlign() == WEBKIT_RIGHT))
</del><ins>+ if (e && is<HTMLTableElement>(e) && (style.textAlign() == WEBKIT_LEFT || style.textAlign() == WEBKIT_CENTER || style.textAlign() == WEBKIT_RIGHT))
</ins><span class="cx"> style.setTextAlign(TASTART);
</span><span class="cx">
</span><span class="cx"> // Frames and framesets never honor position:relative or position:absolute. This is necessary to
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleSheetListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleSheetList.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleSheetList.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/css/StyleSheetList.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx"> // and doesn't look for name attribute.
</span><span class="cx"> // But unicity of stylesheet ids is good practice anyway ;)
</span><span class="cx"> Element* element = m_document->getElementById(name);
</span><del>- if (element && isHTMLStyleElement(element))
</del><ins>+ if (element && is<HTMLStyleElement>(element))
</ins><span class="cx"> return downcast<HTMLStyleElement>(element);
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomCurrentScriptIncrementerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CurrentScriptIncrementer.h (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CurrentScriptIncrementer.h        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/CurrentScriptIncrementer.h        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx"> public:
</span><span class="cx"> CurrentScriptIncrementer(Document* document, Element* element)
</span><span class="cx"> : m_document(document)
</span><del>- , m_isHTMLScriptElement(isHTMLScriptElement(element))
</del><ins>+ , m_isHTMLScriptElement(is<HTMLScriptElement>(element))
</ins><span class="cx"> {
</span><span class="cx"> if (m_isHTMLScriptElement)
</span><span class="cx"> m_document->pushCurrentScript(downcast<HTMLScriptElement>(element));
</span></span></pre></div>
<a id="trunkSourceWebCoredomDataTransfercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DataTransfer.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DataTransfer.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/DataTransfer.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -254,7 +254,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> CachedImage* image = nullptr;
</span><del>- if (element && isHTMLImageElement(element) && !element->inDocument())
</del><ins>+ if (element && is<HTMLImageElement>(element) && !element->inDocument())
</ins><span class="cx"> image = downcast<HTMLImageElement>(*element).cachedImage();
</span><span class="cx">
</span><span class="cx"> m_dragLocation = IntPoint(x, y);
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentOrderedMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentOrderedMap.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentOrderedMap.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/DocumentOrderedMap.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -53,23 +53,23 @@
</span><span class="cx">
</span><span class="cx"> inline bool keyMatchesMapName(const AtomicStringImpl& key, const Element& element)
</span><span class="cx"> {
</span><del>- return isHTMLMapElement(element) && downcast<HTMLMapElement>(element).getName().impl() == &key;
</del><ins>+ return is<HTMLMapElement>(element) && downcast<HTMLMapElement>(element).getName().impl() == &key;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool keyMatchesLowercasedMapName(const AtomicStringImpl& key, const Element& element)
</span><span class="cx"> {
</span><del>- return isHTMLMapElement(element) && downcast<HTMLMapElement>(element).getName().lower().impl() == &key;
</del><ins>+ return is<HTMLMapElement>(element) && downcast<HTMLMapElement>(element).getName().lower().impl() == &key;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool keyMatchesLowercasedUsemap(const AtomicStringImpl& key, const Element& element)
</span><span class="cx"> {
</span><span class="cx"> // FIXME: HTML5 specification says we should match both image and object elements.
</span><del>- return isHTMLImageElement(element) && downcast<HTMLImageElement>(element).matchesLowercasedUsemap(key);
</del><ins>+ return is<HTMLImageElement>(element) && downcast<HTMLImageElement>(element).matchesLowercasedUsemap(key);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool keyMatchesLabelForAttribute(const AtomicStringImpl& key, const Element& element)
</span><span class="cx"> {
</span><del>- return isHTMLLabelElement(element) && element.fastGetAttribute(forAttr).impl() == &key;
</del><ins>+ return is<HTMLLabelElement>(element) && element.fastGetAttribute(forAttr).impl() == &key;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool keyMatchesWindowNamedItem(const AtomicStringImpl& key, const Element& element)
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentStyleSheetCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentStyleSheetCollection.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentStyleSheetCollection.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/DocumentStyleSheetCollection.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx"> Element& element = toElement(*node);
</span><span class="cx"> AtomicString title = element.fastGetAttribute(titleAttr);
</span><span class="cx"> bool enabledViaScript = false;
</span><del>- if (isHTMLLinkElement(element)) {
</del><ins>+ if (is<HTMLLinkElement>(element)) {
</ins><span class="cx"> // <LINK> element
</span><span class="cx"> HTMLLinkElement& linkElement = downcast<HTMLLinkElement>(element);
</span><span class="cx"> if (linkElement.isDisabled())
</span><span class="lines">@@ -307,7 +307,7 @@
</span><span class="cx"> // set of sheets that will be enabled.
</span><span class="cx"> if (is<SVGStyleElement>(element))
</span><span class="cx"> sheet = downcast<SVGStyleElement>(element).sheet();
</span><del>- else if (isHTMLLinkElement(element))
</del><ins>+ else if (is<HTMLLinkElement>(element))
</ins><span class="cx"> sheet = downcast<HTMLLinkElement>(element).sheet();
</span><span class="cx"> else
</span><span class="cx"> sheet = downcast<HTMLStyleElement>(element).sheet();
</span><span class="lines">@@ -322,7 +322,7 @@
</span><span class="cx"> // we are NOT an alternate sheet, then establish
</span><span class="cx"> // us as the preferred set. Otherwise, just ignore
</span><span class="cx"> // this sheet.
</span><del>- if (isHTMLStyleElement(element) || !rel.contains("alternate"))
</del><ins>+ if (is<HTMLStyleElement>(element) || !rel.contains("alternate"))
</ins><span class="cx"> m_preferredStylesheetSetName = m_selectedStylesheetSetName = title;
</span><span class="cx"> }
</span><span class="cx"> if (title != m_preferredStylesheetSetName)
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/Node.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1716,7 +1716,7 @@
</span><span class="cx"> // For imagemaps, the enclosing link element is the associated area element not the image itself.
</span><span class="cx"> // So we don't let images be the enclosing link element, even though isLink sometimes returns
</span><span class="cx"> // true for them.
</span><del>- if (node->isLink() && !isHTMLImageElement(node))
</del><ins>+ if (node->isLink() && !is<HTMLImageElement>(node))
</ins><span class="cx"> return toElement(node);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomPositioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Position.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Position.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/Position.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -529,7 +529,7 @@
</span><span class="cx"> return true;
</span><span class="cx">
</span><span class="cx"> // Don't include inline tables.
</span><del>- if (isHTMLTableElement(node))
</del><ins>+ if (is<HTMLTableElement>(node))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> // There is a VisiblePosition inside an empty inline-block container.
</span></span></pre></div>
<a id="trunkSourceWebCoredomScriptElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ScriptElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ScriptElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/ScriptElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -382,7 +382,7 @@
</span><span class="cx">
</span><span class="cx"> ScriptElement* toScriptElementIfPossible(Element* element)
</span><span class="cx"> {
</span><del>- if (isHTMLScriptElement(element))
</del><ins>+ if (is<HTMLScriptElement>(element))
</ins><span class="cx"> return downcast<HTMLScriptElement>(element);
</span><span class="cx">
</span><span class="cx"> if (is<SVGScriptElement>(element))
</span></span></pre></div>
<a id="trunkSourceWebCoredomVisitedLinkStatecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/VisitedLinkState.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/VisitedLinkState.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/VisitedLinkState.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">
</span><span class="cx"> inline static LinkHash linkHashForElement(Document& document, Element& element)
</span><span class="cx"> {
</span><del>- if (isHTMLAnchorElement(element))
</del><ins>+ if (is<HTMLAnchorElement>(element))
</ins><span class="cx"> return downcast<HTMLAnchorElement>(element).visitedLinkHash();
</span><span class="cx"> if (const AtomicString* attribute = linkAttribute(element))
</span><span class="cx"> return WebCore::visitedLinkHash(document.baseURL(), *attribute);
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> return InsideVisitedLink;
</span><span class="cx">
</span><span class="cx"> LinkHash hash;
</span><del>- if (isHTMLAnchorElement(element))
</del><ins>+ if (is<HTMLAnchorElement>(element))
</ins><span class="cx"> hash = downcast<HTMLAnchorElement>(element).visitedLinkHash();
</span><span class="cx"> else
</span><span class="cx"> hash = WebCore::visitedLinkHash(element.document().baseURL(), *attribute);
</span></span></pre></div>
<a id="trunkSourceWebCoredommake_namespl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/make_names.pl (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/make_names.pl        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/dom/make_names.pl        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -659,15 +659,7 @@
</span><span class="cx"> };
</span><span class="cx"> END
</span><span class="cx"> ;
</span><del>- if ($parameters{namespace} eq "HTML") {
- print F <<END
-// FIXME: Remove these macros once the code has been ported to using
-// is<*Element>().
-#define is$class(x) WebCore::is<WebCore::$class>(x)
-END
- ;
- }
- print F "\n";
</del><ins>+ print F "\n";
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingDeleteSelectionCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/DeleteSelectionCommand.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/DeleteSelectionCommand.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/DeleteSelectionCommand.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -457,7 +457,7 @@
</span><span class="cx"> makeStylingElementsDirectChildrenOfEditableRootToPreventStyleLoss();
</span><span class="cx">
</span><span class="cx"> // Never remove the start block unless it's a table, in which case we won't merge content in.
</span><del>- if (startNode == m_startBlock && startOffset == 0 && canHaveChildrenForEditing(startNode) && !isHTMLTableElement(startNode)) {
</del><ins>+ if (startNode == m_startBlock && !startOffset && canHaveChildrenForEditing(startNode) && !is<HTMLTableElement>(startNode)) {
</ins><span class="cx"> startOffset = 0;
</span><span class="cx"> startNode = NodeTraversal::next(startNode);
</span><span class="cx"> if (!startNode)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/Editor.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/Editor.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/Editor.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx"> Node* node = body->firstChild();
</span><span class="cx"> if (!node)
</span><span class="cx"> return nullptr;
</span><del>- if (!isHTMLImageElement(node))
</del><ins>+ if (!is<HTMLImageElement>(node))
</ins><span class="cx"> return nullptr;
</span><span class="cx"> return downcast<HTMLImageElement>(node);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingFrameSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/FrameSelection.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/FrameSelection.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/FrameSelection.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -2021,7 +2021,7 @@
</span><span class="cx"> auto descendants = descendantsOfType<HTMLElement>(start->document());
</span><span class="cx"> for (auto it = descendants.from(*start), end = descendants.end(); it != end; ++it) {
</span><span class="cx"> HTMLElement& element = *it;
</span><del>- if (isHTMLFormElement(&element))
</del><ins>+ if (is<HTMLFormElement>(&element))
</ins><span class="cx"> return downcast<HTMLFormElement>(&element);
</span><span class="cx"> if (is<HTMLFormControlElement>(element))
</span><span class="cx"> return downcast<HTMLFormControlElement>(element).form();
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingInsertLineBreakCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/InsertLineBreakCommand.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/InsertLineBreakCommand.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/InsertLineBreakCommand.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #include "Frame.h"
</span><span class="cx"> #include "FrameSelection.h"
</span><span class="cx"> #include "HTMLElement.h"
</span><ins>+#include "HTMLHRElement.h"
</ins><span class="cx"> #include "HTMLNames.h"
</span><span class="cx"> #include "HTMLTableElement.h"
</span><span class="cx"> #include "RenderElement.h"
</span><span class="lines">@@ -114,7 +115,7 @@
</span><span class="cx"> // FIXME: Need to merge text nodes when inserting just after or before text.
</span><span class="cx">
</span><span class="cx"> if (isEndOfParagraph(caret) && !lineBreakExistsAtVisiblePosition(caret)) {
</span><del>- bool needExtraLineBreak = !pos.deprecatedNode()->hasTagName(hrTag) && !isHTMLTableElement(pos.deprecatedNode());
</del><ins>+ bool needExtraLineBreak = !is<HTMLHRElement>(pos.deprecatedNode()) && !is<HTMLTableElement>(pos.deprecatedNode());
</ins><span class="cx">
</span><span class="cx"> insertNodeAt(nodeToInsert.get(), pos);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingInsertParagraphSeparatorCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx"> if (!startBlock
</span><span class="cx"> || !startBlock->nonShadowBoundaryParentNode()
</span><span class="cx"> || isTableCell(startBlock.get())
</span><del>- || isHTMLFormElement(startBlock.get())
</del><ins>+ || is<HTMLFormElement>(startBlock.get())
</ins><span class="cx"> // FIXME: If the node is hidden, we don't have a canonical position so we will do the wrong thing for tables and <hr>. https://bugs.webkit.org/show_bug.cgi?id=40342
</span><span class="cx"> || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->renderer() && canonicalPos.deprecatedNode()->renderer()->isTable())
</span><span class="cx"> || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->hasTagName(hrTag))) {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingReplaceSelectionCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -721,7 +721,7 @@
</span><span class="cx"> auto it = descendantsOfType<Element>(*fragment.fragment()).begin();
</span><span class="cx"> auto end = descendantsOfType<Element>(*fragment.fragment()).end();
</span><span class="cx"> while (it != end) {
</span><del>- if (it->hasTagName(baseTag) || it->hasTagName(linkTag) || it->hasTagName(metaTag) || it->hasTagName(styleTag) || isHTMLTitleElement(*it)) {
</del><ins>+ if (is<HTMLBaseElement>(*it) || is<HTMLLinkElement>(*it) || is<HTMLMetaElement>(*it) || is<HTMLStyleElement>(*it) || is<HTMLTitleElement>(*it)) {
</ins><span class="cx"> toRemove.append(&*it);
</span><span class="cx"> it.traverseNextSkippingChildren();
</span><span class="cx"> continue;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingcocoaHTMLConvertermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -2034,7 +2034,7 @@
</span><span class="cx"> if (!listStyleType.length())
</span><span class="cx"> listStyleType = "decimal";
</span><span class="cx"> list = adoptNS([[PlatformNSTextList alloc] initWithMarkerFormat:String("{" + listStyleType + "}") options:0]);
</span><del>- if (isHTMLOListElement(element)) {
</del><ins>+ if (is<HTMLOListElement>(element)) {
</ins><span class="cx"> NSInteger startingItemNumber = downcast<HTMLOListElement>(element).start();
</span><span class="cx"> [list setStartingItemNumber:startingItemNumber];
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditinghtmleditingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/htmlediting.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/htmlediting.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/htmlediting.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1204,7 +1204,7 @@
</span><span class="cx"> return element->hasTagName(listingTag)
</span><span class="cx"> || element->hasTagName(olTag)
</span><span class="cx"> || element->hasTagName(preTag)
</span><del>- || isHTMLTableElement(element)
</del><ins>+ || is<HTMLTableElement>(element)
</ins><span class="cx"> || element->hasTagName(ulTag)
</span><span class="cx"> || element->hasTagName(xmpTag)
</span><span class="cx"> || element->hasTagName(h1Tag)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmarkupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/markup.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/markup.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/editing/markup.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -452,7 +452,7 @@
</span><span class="cx">
</span><span class="cx"> if (commonAncestorBlock->hasTagName(tbodyTag) || commonAncestorBlock->hasTagName(trTag)) {
</span><span class="cx"> ContainerNode* table = commonAncestorBlock->parentNode();
</span><del>- while (table && !isHTMLTableElement(table))
</del><ins>+ while (table && !is<HTMLTableElement>(table))
</ins><span class="cx"> table = table->parentNode();
</span><span class="cx">
</span><span class="cx"> return table;
</span><span class="lines">@@ -934,7 +934,7 @@
</span><span class="cx"> collectElementsToRemoveFromFragment(element);
</span><span class="cx"> continue;
</span><span class="cx"> }
</span><del>- if (isHTMLHeadElement(element) || isHTMLBodyElement(element))
</del><ins>+ if (is<HTMLHeadElement>(element) || is<HTMLBodyElement>(element))
</ins><span class="cx"> toRemove.append(element);
</span><span class="cx"> }
</span><span class="cx"> return toRemove;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFTPDirectoryDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -300,7 +300,7 @@
</span><span class="cx"> RefPtr<Element> tableElement = document()->getElementById(String(ASCIILiteral("ftpDirectoryTable")));
</span><span class="cx"> if (!tableElement)
</span><span class="cx"> LOG_ERROR("Unable to find element by id \"ftpDirectoryTable\" in the template document.");
</span><del>- else if (!isHTMLTableElement(tableElement.get()))
</del><ins>+ else if (!is<HTMLTableElement>(tableElement.get()))
</ins><span class="cx"> LOG_ERROR("Element of id \"ftpDirectoryTable\" is not a table element");
</span><span class="cx"> else
</span><span class="cx"> m_tableElement = downcast<HTMLTableElement>(tableElement.get());
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFormAssociatedElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FormAssociatedElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FormAssociatedElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/FormAssociatedElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> // treeScope().getElementById() over the given element.
</span><span class="cx"> HTMLFormElement* newForm = nullptr;
</span><span class="cx"> Element* newFormCandidate = element->treeScope().getElementById(formId);
</span><del>- if (newFormCandidate && isHTMLFormElement(newFormCandidate))
</del><ins>+ if (newFormCandidate && is<HTMLFormElement>(newFormCandidate))
</ins><span class="cx"> newForm = downcast<HTMLFormElement>(newFormCandidate);
</span><span class="cx"> return newForm;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLAnchorElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLAnchorElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLAnchorElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLAnchorElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> ASSERT(event->target());
</span><span class="cx"> Node* target = event->target()->toNode();
</span><span class="cx"> ASSERT(target);
</span><del>- if (!isHTMLImageElement(target))
</del><ins>+ if (!is<HTMLImageElement>(target))
</ins><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> HTMLImageElement& imageElement = downcast<HTMLImageElement>(*target);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLAreaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLAreaElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLAreaElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLAreaElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -182,7 +182,7 @@
</span><span class="cx"> HTMLImageElement* HTMLAreaElement::imageElement() const
</span><span class="cx"> {
</span><span class="cx"> Node* mapElement = parentNode();
</span><del>- if (!mapElement || !isHTMLMapElement(mapElement))
</del><ins>+ if (!mapElement || !is<HTMLMapElement>(mapElement))
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> return downcast<HTMLMapElement>(*mapElement).imageElement();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLDocument.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLDocument.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLDocument.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx"> const AtomicString& HTMLDocument::bgColor() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return emptyAtom;
</span><span class="cx"> return bodyElement->fastGetAttribute(bgcolorAttr);
</span><span class="cx"> }
</span><span class="lines">@@ -147,7 +147,7 @@
</span><span class="cx"> void HTMLDocument::setBgColor(const String& value)
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return;
</span><span class="cx"> bodyElement->setAttribute(bgcolorAttr, value);
</span><span class="cx"> }
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx"> const AtomicString& HTMLDocument::fgColor() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return emptyAtom;
</span><span class="cx"> return bodyElement->fastGetAttribute(textAttr);
</span><span class="cx"> }
</span><span class="lines">@@ -163,7 +163,7 @@
</span><span class="cx"> void HTMLDocument::setFgColor(const String& value)
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return;
</span><span class="cx"> bodyElement->setAttribute(textAttr, value);
</span><span class="cx"> }
</span><span class="lines">@@ -171,7 +171,7 @@
</span><span class="cx"> const AtomicString& HTMLDocument::alinkColor() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return emptyAtom;
</span><span class="cx"> return bodyElement->fastGetAttribute(alinkAttr);
</span><span class="cx"> }
</span><span class="lines">@@ -179,7 +179,7 @@
</span><span class="cx"> void HTMLDocument::setAlinkColor(const String& value)
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return;
</span><span class="cx"> bodyElement->setAttribute(alinkAttr, value);
</span><span class="cx"> }
</span><span class="lines">@@ -187,7 +187,7 @@
</span><span class="cx"> const AtomicString& HTMLDocument::linkColor() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return emptyAtom;
</span><span class="cx"> return bodyElement->fastGetAttribute(linkAttr);
</span><span class="cx"> }
</span><span class="lines">@@ -195,7 +195,7 @@
</span><span class="cx"> void HTMLDocument::setLinkColor(const String& value)
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return;
</span><span class="cx"> return bodyElement->setAttribute(linkAttr, value);
</span><span class="cx"> }
</span><span class="lines">@@ -203,7 +203,7 @@
</span><span class="cx"> const AtomicString& HTMLDocument::vlinkColor() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return emptyAtom;
</span><span class="cx"> return bodyElement->fastGetAttribute(vlinkAttr);
</span><span class="cx"> }
</span><span class="lines">@@ -211,7 +211,7 @@
</span><span class="cx"> void HTMLDocument::setVlinkColor(const String& value)
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- if (!bodyElement || !isHTMLBodyElement(bodyElement))
</del><ins>+ if (!bodyElement || !is<HTMLBodyElement>(bodyElement))
</ins><span class="cx"> return;
</span><span class="cx"> return bodyElement->setAttribute(vlinkAttr, value);
</span><span class="cx"> }
</span><span class="lines">@@ -340,7 +340,7 @@
</span><span class="cx"> bool HTMLDocument::isFrameSet() const
</span><span class="cx"> {
</span><span class="cx"> HTMLElement* bodyElement = body();
</span><del>- return bodyElement && isHTMLFrameSetElement(bodyElement);
</del><ins>+ return bodyElement && is<HTMLFrameSetElement>(bodyElement);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<Document> HTMLDocument::cloneDocumentWithoutChildren() const
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -427,7 +427,7 @@
</span><span class="cx"> if (RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(html, this, AllowScriptingContent, ec)) {
</span><span class="cx"> ContainerNode* container = this;
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(*this))
</del><ins>+ if (is<HTMLTemplateElement>(*this))
</ins><span class="cx"> container = downcast<HTMLTemplateElement>(*this).content();
</span><span class="cx"> #endif
</span><span class="cx"> replaceChildrenWithFragment(*container, fragment.release(), ec);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFieldSetElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFieldSetElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFieldSetElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLFieldSetElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> while (control) {
</span><span class="cx"> control->setAncestorDisabled(isDisabled);
</span><span class="cx"> // Don't call setAncestorDisabled(false) on form contorls inside disabled fieldsets.
</span><del>- if (isHTMLFieldSetElement(control) && control->fastHasAttribute(disabledAttr))
</del><ins>+ if (is<HTMLFieldSetElement>(control) && control->fastHasAttribute(disabledAttr))
</ins><span class="cx"> control = Traversal<HTMLFormControlElement>::nextSkippingChildren(control, &startNode);
</span><span class="cx"> else
</span><span class="cx"> control = Traversal<HTMLFormControlElement>::next(control, &startNode);
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> bool thisFieldsetIsDisabled = fastHasAttribute(disabledAttr);
</span><span class="cx"> bool hasSeenFirstLegendElement = false;
</span><span class="cx"> for (HTMLElement* control = Traversal<HTMLElement>::firstChild(this); control; control = Traversal<HTMLElement>::nextSibling(control)) {
</span><del>- if (!hasSeenFirstLegendElement && isHTMLLegendElement(control)) {
</del><ins>+ if (!hasSeenFirstLegendElement && is<HTMLLegendElement>(control)) {
</ins><span class="cx"> hasSeenFirstLegendElement = true;
</span><span class="cx"> updateFromControlElementsAncestorDisabledStateUnder(*control, false /* isDisabled */);
</span><span class="cx"> continue;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormControlElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormControlElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -103,9 +103,9 @@
</span><span class="cx"> {
</span><span class="cx"> Element* previousAncestor = nullptr;
</span><span class="cx"> for (Element* ancestor = parentElement(); ancestor; ancestor = ancestor->parentElement()) {
</span><del>- if (isHTMLFieldSetElement(ancestor) && ancestor->fastHasAttribute(disabledAttr)) {
</del><ins>+ if (is<HTMLFieldSetElement>(ancestor) && ancestor->fastHasAttribute(disabledAttr)) {
</ins><span class="cx"> HTMLFieldSetElement& fieldSetAncestor = downcast<HTMLFieldSetElement>(*ancestor);
</span><del>- bool isInFirstLegend = previousAncestor && isHTMLLegendElement(previousAncestor) && previousAncestor == fieldSetAncestor.legend();
</del><ins>+ bool isInFirstLegend = previousAncestor && is<HTMLLegendElement>(previousAncestor) && previousAncestor == fieldSetAncestor.legend();
</ins><span class="cx"> return !isInFirstLegend;
</span><span class="cx"> }
</span><span class="cx"> previousAncestor = ancestor;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormControlsCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormControlsCollection.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormControlsCollection.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLFormControlsCollection.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> , m_cachedElement(nullptr)
</span><span class="cx"> , m_cachedElementOffsetInArray(0)
</span><span class="cx"> {
</span><del>- ASSERT(isHTMLFormElement(ownerNode) || isHTMLFieldSetElement(ownerNode));
</del><ins>+ ASSERT(is<HTMLFormElement>(ownerNode) || is<HTMLFieldSetElement>(ownerNode));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRef<HTMLFormControlsCollection> HTMLFormControlsCollection::create(ContainerNode& ownerNode, CollectionType)
</span><span class="lines">@@ -54,15 +54,15 @@
</span><span class="cx">
</span><span class="cx"> const Vector<FormAssociatedElement*>& HTMLFormControlsCollection::formControlElements() const
</span><span class="cx"> {
</span><del>- ASSERT(isHTMLFormElement(ownerNode()) || ownerNode().hasTagName(fieldsetTag));
- if (isHTMLFormElement(ownerNode()))
</del><ins>+ ASSERT(is<HTMLFormElement>(ownerNode()) || is<HTMLFieldSetElement>(ownerNode()));
+ if (is<HTMLFormElement>(ownerNode()))
</ins><span class="cx"> return downcast<HTMLFormElement>(ownerNode()).associatedElements();
</span><span class="cx"> return downcast<HTMLFieldSetElement>(ownerNode()).associatedElements();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const Vector<HTMLImageElement*>& HTMLFormControlsCollection::formImageElements() const
</span><span class="cx"> {
</span><del>- ASSERT(isHTMLFormElement(ownerNode()));
</del><ins>+ ASSERT(is<HTMLFormElement>(ownerNode()));
</ins><span class="cx"> return downcast<HTMLFormElement>(ownerNode()).imageElements();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -128,7 +128,7 @@
</span><span class="cx"> // attribute. If a match is not found, the method then searches for an
</span><span class="cx"> // object with a matching name attribute, but only on those elements
</span><span class="cx"> // that are allowed a name attribute.
</span><del>- const Vector<HTMLImageElement*>* imagesElements = ownerNode().hasTagName(fieldsetTag) ? nullptr : &formImageElements();
</del><ins>+ const Vector<HTMLImageElement*>* imagesElements = is<HTMLFieldSetElement>(ownerNode()) ? nullptr : &formImageElements();
</ins><span class="cx"> if (HTMLElement* item = firstNamedItem(formControlElements(), imagesElements, idAttr, name))
</span><span class="cx"> return item;
</span><span class="cx">
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if (isHTMLFormElement(ownerNode())) {
</del><ins>+ if (is<HTMLFormElement>(ownerNode())) {
</ins><span class="cx"> const Vector<HTMLImageElement*>& imageElementsArray = formImageElements();
</span><span class="cx"> for (unsigned i = 0; i < imageElementsArray.size(); ++i) {
</span><span class="cx"> HTMLImageElement& element = *imageElementsArray[i];
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLFormElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> // FIXME: Shouldn't we also check for table caption (see |formIsTablePart| below).
</span><del>- bool parentIsTableElementPart = (parentRenderer->isTable() && isHTMLTableElement(parent))
</del><ins>+ bool parentIsTableElementPart = (parentRenderer->isTable() && is<HTMLTableElement>(parent))
</ins><span class="cx"> || (parentRenderer->isTableRow() && parent->hasTagName(trTag))
</span><span class="cx"> || (parentRenderer->isTableSection() && parent->hasTagName(tbodyTag))
</span><span class="cx"> || (parentRenderer->isRenderTableCol() && parent->hasTagName(colTag))
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFrameElementBaseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFrameElementBase.h (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFrameElementBase.h        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLFrameElementBase.h        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -77,8 +77,8 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> void isHTMLFrameElementBase(const HTMLFrameElementBase&); // Catch unnecessary runtime check of type known at compile time.
</span><del>-inline bool isHTMLFrameElementBase(const HTMLElement& element) { return isHTMLFrameElement(element) || isHTMLIFrameElement(element); }
-inline bool isHTMLFrameElementBase(const Node& node) { return isHTMLFrameElement(node) || isHTMLIFrameElement(node); }
</del><ins>+inline bool isHTMLFrameElementBase(const HTMLElement& element) { return is<HTMLFrameElement>(element) || is<HTMLIFrameElement>(element); }
+inline bool isHTMLFrameElementBase(const Node& node) { return is<HTMLFrameElement>(node) || is<HTMLIFrameElement>(node); }
</ins><span class="cx">
</span><span class="cx"> NODE_TYPE_CASTS(HTMLFrameElementBase)
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageLoader.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageLoader.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLImageLoader.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx"> void HTMLImageLoader::dispatchLoadEvent()
</span><span class="cx"> {
</span><span class="cx"> // HTMLVideoElement uses this class to load the poster image, but it should not fire events for loading or failure.
</span><del>- if (isHTMLVideoElement(element()))
</del><ins>+ if (is<HTMLVideoElement>(element()))
</ins><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> bool errorOccurred = image()->errorOccurred();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLInputElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLInputElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLInputElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLInputElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1521,7 +1521,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> Element* element = treeScope().getElementById(fastGetAttribute(listAttr));
</span><del>- if (!element || !isHTMLDataListElement(element))
</del><ins>+ if (!element || !is<HTMLDataListElement>(element))
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> return downcast<HTMLDataListElement>(element);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLLegendElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLLegendElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLLegendElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLLegendElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> // its parent, then the form attribute must return the same value as the
</span><span class="cx"> // form attribute on that fieldset element. Otherwise, it must return null.
</span><span class="cx"> ContainerNode* fieldset = parentNode();
</span><del>- if (!fieldset || !isHTMLFieldSetElement(fieldset))
</del><ins>+ if (!fieldset || !is<HTMLFieldSetElement>(fieldset))
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> return downcast<HTMLFieldSetElement>(*fieldset).form();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -4882,7 +4882,7 @@
</span><span class="cx"> m_isInVideoFullscreen = true;
</span><span class="cx"> if (hasMediaControls())
</span><span class="cx"> mediaControls()->enteredFullscreen();
</span><del>- if (document().page() && isHTMLVideoElement(this)) {
</del><ins>+ if (document().page() && is<HTMLVideoElement>(this)) {
</ins><span class="cx"> HTMLVideoElement& asVideo = downcast<HTMLVideoElement>(*this);
</span><span class="cx"> if (document().page()->chrome().client().supportsVideoFullscreen()) {
</span><span class="cx"> document().page()->chrome().client().enterVideoFullscreenForVideoElement(&asVideo);
</span><span class="lines">@@ -4906,7 +4906,7 @@
</span><span class="cx"> m_isInVideoFullscreen = false;
</span><span class="cx"> if (hasMediaControls())
</span><span class="cx"> mediaControls()->exitedFullscreen();
</span><del>- if (document().page() && isHTMLVideoElement(this)) {
</del><ins>+ if (document().page() && is<HTMLVideoElement>(this)) {
</ins><span class="cx"> if (m_mediaSession->requiresFullscreenForVideoPlayback(*this))
</span><span class="cx"> pauseInternal();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLNameCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLNameCollection.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLNameCollection.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLNameCollection.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -51,8 +51,8 @@
</span><span class="cx">
</span><span class="cx"> bool WindowNameCollection::elementMatchesIfNameAttributeMatch(const Element& element)
</span><span class="cx"> {
</span><del>- return isHTMLImageElement(element) || isHTMLFormElement(element) || element.hasTagName(appletTag)
- || element.hasTagName(embedTag) || element.hasTagName(objectTag);
</del><ins>+ return is<HTMLImageElement>(element) || is<HTMLFormElement>(element) || is<HTMLAppletElement>(element)
+ || is<HTMLEmbedElement>(element) || is<HTMLObjectElement>(element);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool WindowNameCollection::elementMatches(const Element& element, const AtomicStringImpl* name)
</span><span class="lines">@@ -81,13 +81,13 @@
</span><span class="cx"> {
</span><span class="cx"> // Find images, forms, applets, embeds, objects and iframes by name, applets and object by id, and images by id
</span><span class="cx"> // but only if they have a name attribute (this very strange rule matches IE)
</span><del>- if (isHTMLFormElement(element) || element.hasTagName(embedTag) || element.hasTagName(iframeTag))
</del><ins>+ if (is<HTMLFormElement>(element) || is<HTMLEmbedElement>(element) || is<HTMLIFrameElement>(element))
</ins><span class="cx"> return element.getNameAttribute().impl() == name;
</span><del>- if (element.hasTagName(appletTag))
</del><ins>+ if (is<HTMLAppletElement>(element))
</ins><span class="cx"> return element.getNameAttribute().impl() == name || element.getIdAttribute().impl() == name;
</span><span class="cx"> if (is<HTMLObjectElement>(element))
</span><span class="cx"> return (element.getNameAttribute().impl() == name || element.getIdAttribute().impl() == name) && downcast<HTMLObjectElement>(element).isDocNamedItem();
</span><del>- if (isHTMLImageElement(element))
</del><ins>+ if (is<HTMLImageElement>(element))
</ins><span class="cx"> return element.getNameAttribute().impl() == name || (element.getIdAttribute().impl() == name && element.hasName());
</span><span class="cx"> return false;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOptionElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOptionElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOptionElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLOptionElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -257,7 +257,7 @@
</span><span class="cx"> HTMLDataListElement* HTMLOptionElement::ownerDataListElement() const
</span><span class="cx"> {
</span><span class="cx"> for (ContainerNode* parent = parentNode(); parent ; parent = parent->parentNode()) {
</span><del>- if (isHTMLDataListElement(parent))
</del><ins>+ if (is<HTMLDataListElement>(parent))
</ins><span class="cx"> return downcast<HTMLDataListElement>(parent);
</span><span class="cx"> }
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -302,7 +302,7 @@
</span><span class="cx"> String HTMLOptionElement::textIndentedToRespectGroupLabel() const
</span><span class="cx"> {
</span><span class="cx"> ContainerNode* parent = parentNode();
</span><del>- if (parent && isHTMLOptGroupElement(parent))
</del><ins>+ if (parent && is<HTMLOptGroupElement>(parent))
</ins><span class="cx"> return " " + text();
</span><span class="cx"> return text();
</span><span class="cx"> }
</span><span class="lines">@@ -316,7 +316,7 @@
</span><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> HTMLElement& parentElement = toHTMLElement(*parentNode());
</span><del>- return isHTMLOptGroupElement(parentElement) && parentElement.isDisabledFormControl();
</del><ins>+ return is<HTMLOptGroupElement>(parentElement) && parentElement.isDisabledFormControl();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Node::InsertionNotificationRequest HTMLOptionElement::insertedInto(ContainerNode& insertionPoint)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLSelectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLSelectElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLSelectElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLSelectElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -790,7 +790,7 @@
</span><span class="cx"> // optgroup tags may not nest. However, both FireFox and IE will
</span><span class="cx"> // flatten the tree automatically, so we follow suit.
</span><span class="cx"> // (http://www.w3.org/TR/html401/interact/forms.html#h-17.6)
</span><del>- if (isHTMLOptGroupElement(current)) {
</del><ins>+ if (is<HTMLOptGroupElement>(current)) {
</ins><span class="cx"> m_listItems.append(current);
</span><span class="cx"> if (Element* nextElement = ElementTraversal::firstWithin(current)) {
</span><span class="cx"> currentElement = nextElement;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLTableElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> HTMLTableCaptionElement* HTMLTableElement::caption() const
</span><span class="cx"> {
</span><span class="cx"> for (Node* child = firstChild(); child; child = child->nextSibling()) {
</span><del>- if (isHTMLTableCaptionElement(child))
</del><ins>+ if (is<HTMLTableCaptionElement>(child))
</ins><span class="cx"> return downcast<HTMLTableCaptionElement>(child);
</span><span class="cx"> }
</span><span class="cx"> return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTablePartElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTablePartElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTablePartElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLTablePartElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> HTMLTableElement* HTMLTablePartElement::findParentTable() const
</span><span class="cx"> {
</span><span class="cx"> ContainerNode* parent = parentNode();
</span><del>- while (parent && !isHTMLTableElement(parent))
</del><ins>+ while (parent && !is<HTMLTableElement>(parent))
</ins><span class="cx"> parent = parent->parentNode();
</span><span class="cx"> return downcast<HTMLTableElement>(parent);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableRowElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableRowElement.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableRowElement.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLTableRowElement.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx"> if (!table)
</span><span class="cx"> return -1;
</span><span class="cx"> table = table->parentNode();
</span><del>- if (!table || !isHTMLTableElement(table))
</del><ins>+ if (!table || !is<HTMLTableElement>(table))
</ins><span class="cx"> return -1;
</span><span class="cx">
</span><span class="cx"> // To match Firefox, the row indices work like this:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableRowsCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableRowsCollection.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableRowsCollection.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLTableRowsCollection.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -97,7 +97,7 @@
</span><span class="cx"> else if (isInSection(*previous, tbodyTag))
</span><span class="cx"> child = ElementTraversal::nextSibling(previous->parentNode());
</span><span class="cx"> for (; child; child = ElementTraversal::nextSibling(child)) {
</span><del>- if (isHTMLTableRowElement(child))
</del><ins>+ if (is<HTMLTableRowElement>(child))
</ins><span class="cx"> return downcast<HTMLTableRowElement>(child);
</span><span class="cx"> if (child->hasTagName(tbodyTag)) {
</span><span class="cx"> if (auto row = childrenOfType<HTMLTableRowElement>(*child).first())
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> for (auto* child = ElementTraversal::lastChild(table); child; child = ElementTraversal::previousSibling(child)) {
</span><del>- if (isHTMLTableRowElement(child))
</del><ins>+ if (is<HTMLTableRowElement>(child))
</ins><span class="cx"> return downcast<HTMLTableRowElement>(child);
</span><span class="cx"> if (child->hasTagName(tbodyTag)) {
</span><span class="cx"> if (auto* row = childrenOfType<HTMLTableRowElement>(*child).last())
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTagNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTagNames.in (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTagNames.in        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/HTMLTagNames.in        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx"> big interfaceName=HTMLElement
</span><span class="cx"> blockquote interfaceName=HTMLQuoteElement
</span><span class="cx"> body generateTypeHelpers
</span><del>-br interfaceName=HTMLBRElement
</del><ins>+br interfaceName=HTMLBRElement, generateTypeHelpers
</ins><span class="cx"> button constructorNeedsFormElement, generateTypeHelpers
</span><span class="cx"> canvas generateTypeHelpers
</span><span class="cx"> caption interfaceName=HTMLTableCaptionElement, generateTypeHelpers
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx"> head generateTypeHelpers
</span><span class="cx"> header interfaceName=HTMLElement
</span><span class="cx"> hgroup interfaceName=HTMLElement
</span><del>-hr interfaceName=HTMLHRElement
</del><ins>+hr interfaceName=HTMLHRElement, generateTypeHelpers
</ins><span class="cx"> html generateTypeHelpers
</span><span class="cx"> i interfaceName=HTMLElement
</span><span class="cx"> iframe interfaceName=HTMLIFrameElement, generateTypeHelpers
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx"> select constructorNeedsFormElement, generateTypeHelpers
</span><span class="cx"> small interfaceName=HTMLElement
</span><span class="cx"> source wrapperOnlyIfMediaIsAvailable, conditional=VIDEO, generateTypeHelpers
</span><del>-span
</del><ins>+span generateTypeHelpers
</ins><span class="cx"> strike interfaceName=HTMLElement
</span><span class="cx"> strong interfaceName=HTMLElement
</span><span class="cx"> style constructorNeedsCreatedByParser, generateTypeHelpers
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlLabelsNodeListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/LabelsNodeList.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/LabelsNodeList.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/LabelsNodeList.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">
</span><span class="cx"> bool LabelsNodeList::elementMatches(Element& testNode) const
</span><span class="cx"> {
</span><del>- return isHTMLLabelElement(testNode) && downcast<HTMLLabelElement>(testNode).control() == &ownerNode();
</del><ins>+ return is<HTMLLabelElement>(testNode) && downcast<HTMLLabelElement>(testNode).control() == &ownerNode();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaDocument.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaDocument.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/MediaDocument.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -160,7 +160,7 @@
</span><span class="cx">
</span><span class="cx"> static inline HTMLVideoElement* descendentVideoElement(ContainerNode& node)
</span><span class="cx"> {
</span><del>- if (isHTMLVideoElement(node))
</del><ins>+ if (is<HTMLVideoElement>(node))
</ins><span class="cx"> return downcast<HTMLVideoElement>(&node);
</span><span class="cx">
</span><span class="cx"> RefPtr<NodeList> nodeList = node.getElementsByTagNameNS(videoTag.namespaceURI(), videoTag.localName());
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">
</span><span class="cx"> static inline HTMLVideoElement* ancestorVideoElement(Node* node)
</span><span class="cx"> {
</span><del>- while (node && !isHTMLVideoElement(node))
</del><ins>+ while (node && !is<HTMLVideoElement>(node))
</ins><span class="cx"> node = node->parentOrShadowHostNode();
</span><span class="cx">
</span><span class="cx"> return downcast<HTMLVideoElement>(node);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlRadioInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/RadioInputType.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/RadioInputType.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/RadioInputType.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> Node* node = &element();
</span><span class="cx"> while ((node = (forward ? NodeTraversal::next(node) : NodeTraversal::previous(node)))) {
</span><span class="cx"> // Once we encounter a form element, we know we're through.
</span><del>- if (isHTMLFormElement(node))
</del><ins>+ if (is<HTMLFormElement>(node))
</ins><span class="cx"> break;
</span><span class="cx"> // Look for more radio buttons.
</span><span class="cx"> if (!is<HTMLInputElement>(node))
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlRadioNodeListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/RadioNodeList.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/RadioNodeList.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/RadioNodeList.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> RadioNodeList::RadioNodeList(ContainerNode& rootNode, const AtomicString& name)
</span><span class="cx"> : CachedLiveNodeList(rootNode, InvalidateForFormControls)
</span><span class="cx"> , m_name(name)
</span><del>- , m_isRootedAtDocument(isHTMLFormElement(ownerNode()))
</del><ins>+ , m_isRootedAtDocument(is<HTMLFormElement>(ownerNode()))
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> bool RadioNodeList::checkElementMatchesRadioNodeListFilter(const Element& testElement) const
</span><span class="cx"> {
</span><span class="cx"> ASSERT(is<HTMLObjectElement>(testElement) || is<HTMLFormControlElement>(testElement));
</span><del>- if (isHTMLFormElement(ownerNode())) {
</del><ins>+ if (is<HTMLFormElement>(ownerNode())) {
</ins><span class="cx"> HTMLFormElement* formElement = nullptr;
</span><span class="cx"> if (testElement.hasTagName(objectTag))
</span><span class="cx"> formElement = downcast<HTMLObjectElement>(testElement).form();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLConstructionSitecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> || item->hasTagName(dtTag)
</span><span class="cx"> || item->hasTagName(liTag)
</span><span class="cx"> || is<HTMLOptionElement>(item->node())
</span><del>- || isHTMLOptGroupElement(item->node())
</del><ins>+ || is<HTMLOptGroupElement>(item->node())
</ins><span class="cx"> || item->hasTagName(pTag)
</span><span class="cx"> || item->hasTagName(rbTag)
</span><span class="cx"> || item->hasTagName(rpTag)
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> static inline void insert(HTMLConstructionSiteTask& task)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(*task.parent))
</del><ins>+ if (is<HTMLTemplateElement>(*task.parent))
</ins><span class="cx"> task.parent = downcast<HTMLTemplateElement>(*task.parent).content();
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -458,7 +458,7 @@
</span><span class="cx"> void HTMLConstructionSite::insertHTMLFormElement(AtomicHTMLToken* token, bool isDemoted)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<Element> element = createHTMLElement(token);
</span><del>- ASSERT(isHTMLFormElement(element.get()));
</del><ins>+ ASSERT(is<HTMLFormElement>(element.get()));
</ins><span class="cx"> RefPtr<HTMLFormElement> form = static_pointer_cast<HTMLFormElement>(element.release());
</span><span class="cx"> if (!insideTemplateElement())
</span><span class="cx"> m_form = form;
</span><span class="lines">@@ -531,7 +531,7 @@
</span><span class="cx"> findFosterSite(task);
</span><span class="cx">
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(*task.parent))
</del><ins>+ if (is<HTMLTemplateElement>(*task.parent))
</ins><span class="cx"> task.parent = downcast<HTMLTemplateElement>(*task.parent).content();
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="lines">@@ -618,7 +618,7 @@
</span><span class="cx"> inline Document& HTMLConstructionSite::ownerDocumentForCurrentNode()
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(currentNode()))
</del><ins>+ if (is<HTMLTemplateElement>(currentNode()))
</ins><span class="cx"> return downcast<HTMLTemplateElement>(*currentElement()).content()->document();
</span><span class="cx"> #endif
</span><span class="cx"> return currentNode()->document();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLElementStackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLElementStack.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> || item->hasTagName(captionTag)
</span><span class="cx"> || item->hasTagName(marqueeTag)
</span><span class="cx"> || item->hasTagName(objectTag)
</span><del>- || isHTMLTableElement(item->node())
</del><ins>+ || is<HTMLTableElement>(item->node())
</ins><span class="cx"> || item->hasTagName(tdTag)
</span><span class="cx"> || item->hasTagName(thTag)
</span><span class="cx"> || item->hasTagName(MathMLNames::miTag)
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">
</span><span class="cx"> inline bool isTableScopeMarker(HTMLStackItem* item)
</span><span class="cx"> {
</span><del>- return isHTMLTableElement(item->node())
</del><ins>+ return is<HTMLTableElement>(item->node())
</ins><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><span class="cx"> || item->hasTagName(templateTag)
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLTreeBuildercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -298,7 +298,7 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> resetInsertionModeAppropriately();
</span><del>- m_tree.setForm(!contextElement || isHTMLFormElement(contextElement) ? downcast<HTMLFormElement>(contextElement) : HTMLFormElement::findClosestFormAncestor(*contextElement));
</del><ins>+ m_tree.setForm(!contextElement || is<HTMLFormElement>(contextElement) ? downcast<HTMLFormElement>(contextElement) : HTMLFormElement::findClosestFormAncestor(*contextElement));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1372,7 +1372,7 @@
</span><span class="cx"> AtomicHTMLToken endOption(HTMLToken::EndTag, optionTag.localName());
</span><span class="cx"> processEndTag(&endOption);
</span><span class="cx"> }
</span><del>- if (isHTMLOptGroupElement(m_tree.currentStackItem()->node())) {
</del><ins>+ if (is<HTMLOptGroupElement>(m_tree.currentStackItem()->node())) {
</ins><span class="cx"> AtomicHTMLToken endOptgroup(HTMLToken::EndTag, optgroupTag.localName());
</span><span class="cx"> processEndTag(&endOptgroup);
</span><span class="cx"> }
</span><span class="lines">@@ -1629,7 +1629,7 @@
</span><span class="cx"> while (item->node() != m_tree.openElements()->rootNode() && !item->hasTagName(templateTag)) {
</span><span class="cx"> nodeRecord = nodeRecord->next();
</span><span class="cx"> item = nodeRecord->stackItem();
</span><del>- if (isHTMLTableElement(item->node()))
</del><ins>+ if (is<HTMLTableElement>(item->node()))
</ins><span class="cx"> return setInsertionMode(InsertionMode::InSelectInTable);
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -1647,7 +1647,7 @@
</span><span class="cx"> if (item->hasTagName(colgroupTag)) {
</span><span class="cx"> return setInsertionMode(InsertionMode::InColumnGroup);
</span><span class="cx"> }
</span><del>- if (isHTMLTableElement(item->node()))
</del><ins>+ if (is<HTMLTableElement>(item->node()))
</ins><span class="cx"> return setInsertionMode(InsertionMode::InTable);
</span><span class="cx"> if (item->hasTagName(headTag)) {
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><span class="lines">@@ -2234,9 +2234,9 @@
</span><span class="cx"> case InsertionMode::InSelect:
</span><span class="cx"> ASSERT(insertionMode() == InsertionMode::InSelect || insertionMode() == InsertionMode::InSelectInTable);
</span><span class="cx"> if (token->name() == optgroupTag) {
</span><del>- if (is<HTMLOptionElement>(m_tree.currentStackItem()->node()) && m_tree.oneBelowTop() && isHTMLOptGroupElement(m_tree.oneBelowTop()->node()))
</del><ins>+ if (is<HTMLOptionElement>(m_tree.currentStackItem()->node()) && m_tree.oneBelowTop() && is<HTMLOptGroupElement>(m_tree.oneBelowTop()->node()))
</ins><span class="cx"> processFakeEndTag(optionTag);
</span><del>- if (isHTMLOptGroupElement(m_tree.currentStackItem()->node())) {
</del><ins>+ if (is<HTMLOptGroupElement>(m_tree.currentStackItem()->node())) {
</ins><span class="cx"> m_tree.openElements()->pop();
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="lines">@@ -2486,7 +2486,7 @@
</span><span class="cx"> ASSERT(insertionMode() == InsertionMode::InTable || insertionMode() == InsertionMode::InTableBody || insertionMode() == InsertionMode::InRow);
</span><span class="cx"> ASSERT(m_pendingTableCharacters.isEmpty());
</span><span class="cx"> if (m_tree.currentStackItem()->isElementNode()
</span><del>- && (isHTMLTableElement(m_tree.currentStackItem()->node())
</del><ins>+ && (is<HTMLTableElement>(m_tree.currentStackItem()->node())
</ins><span class="cx"> || m_tree.currentStackItem()->hasTagName(HTMLNames::tbodyTag)
</span><span class="cx"> || m_tree.currentStackItem()->hasTagName(HTMLNames::tfootTag)
</span><span class="cx"> || m_tree.currentStackItem()->hasTagName(HTMLNames::theadTag)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1297,7 +1297,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(element))
</del><ins>+ if (is<HTMLTemplateElement>(element))
</ins><span class="cx"> value->setTemplateContent(buildObjectForNode(downcast<HTMLTemplateElement>(*element).content(), 0, nodesMap));
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1392,7 +1392,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> Element* ownerElement = toElement(ownerNode);
</span><span class="cx">
</span><del>- if (!isHTMLStyleElement(ownerElement) && !ownerElement->hasTagName(SVGNames::styleTag))
</del><ins>+ if (!is<HTMLStyleElement>(ownerElement) && !is<SVGStyleElement>(ownerElement))
</ins><span class="cx"> return false;
</span><span class="cx"> *result = ownerElement->textContent();
</span><span class="cx"> return true;
</span></span></pre></div>
<a id="trunkSourceWebCorepageDragControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DragController.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DragController.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/page/DragController.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -639,13 +639,13 @@
</span><span class="cx"> }
</span><span class="cx"> if (dragMode == DRAG_AUTO) {
</span><span class="cx"> if ((m_dragSourceAction & DragSourceActionImage)
</span><del>- && isHTMLImageElement(element)
</del><ins>+ && is<HTMLImageElement>(element)
</ins><span class="cx"> && sourceFrame->settings().loadsImagesAutomatically()) {
</span><span class="cx"> state.type = static_cast<DragSourceAction>(state.type | DragSourceActionImage);
</span><span class="cx"> return element;
</span><span class="cx"> }
</span><span class="cx"> if ((m_dragSourceAction & DragSourceActionLink)
</span><del>- && isHTMLAnchorElement(element)
</del><ins>+ && is<HTMLAnchorElement>(element)
</ins><span class="cx"> && downcast<HTMLAnchorElement>(*element).isLiveLink()) {
</span><span class="cx"> state.type = static_cast<DragSourceAction>(state.type | DragSourceActionLink);
</span><span class="cx"> return element;
</span></span></pre></div>
<a id="trunkSourceWebCorepageFocusControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FocusController.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FocusController.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/page/FocusController.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -884,7 +884,7 @@
</span><span class="cx"> if (!hasOffscreenRect(focusedElement)) {
</span><span class="cx"> container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, focusedElement);
</span><span class="cx"> startingRect = nodeRectInAbsoluteCoordinates(focusedElement, true /* ignore border */);
</span><del>- } else if (isHTMLAreaElement(focusedElement)) {
</del><ins>+ } else if (is<HTMLAreaElement>(focusedElement)) {
</ins><span class="cx"> HTMLAreaElement& area = downcast<HTMLAreaElement>(*focusedElement);
</span><span class="cx"> container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, area.imageElement());
</span><span class="cx"> startingRect = virtualRectForAreaElementAndDirection(&area, direction);
</span></span></pre></div>
<a id="trunkSourceWebCorepagePageSerializercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/PageSerializer.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -230,19 +230,19 @@
</span><span class="cx"> if (element->isStyledElement())
</span><span class="cx"> retrieveResourcesForProperties(toStyledElement(element)->inlineStyle(), document);
</span><span class="cx">
</span><del>- if (isHTMLImageElement(element)) {
</del><ins>+ if (is<HTMLImageElement>(element)) {
</ins><span class="cx"> HTMLImageElement& imageElement = downcast<HTMLImageElement>(*element);
</span><span class="cx"> URL url = document->completeURL(imageElement.fastGetAttribute(HTMLNames::srcAttr));
</span><span class="cx"> CachedImage* cachedImage = imageElement.cachedImage();
</span><span class="cx"> addImageToResources(cachedImage, imageElement.renderer(), url);
</span><del>- } else if (isHTMLLinkElement(element)) {
</del><ins>+ } else if (is<HTMLLinkElement>(element)) {
</ins><span class="cx"> HTMLLinkElement& linkElement = downcast<HTMLLinkElement>(*element);
</span><span class="cx"> if (CSSStyleSheet* sheet = linkElement.sheet()) {
</span><span class="cx"> URL url = document->completeURL(linkElement.getAttribute(HTMLNames::hrefAttr));
</span><span class="cx"> serializeCSSStyleSheet(sheet, url);
</span><span class="cx"> ASSERT(m_resourceURLs.contains(url));
</span><span class="cx"> }
</span><del>- } else if (isHTMLStyleElement(element)) {
</del><ins>+ } else if (is<HTMLStyleElement>(element)) {
</ins><span class="cx"> if (CSSStyleSheet* sheet = downcast<HTMLStyleElement>(*element).sheet())
</span><span class="cx"> serializeCSSStyleSheet(sheet, URL());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorepageSpatialNavigationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SpatialNavigation.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SpatialNavigation.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/page/SpatialNavigation.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> ASSERT(node);
</span><span class="cx"> ASSERT(node->isElementNode());
</span><span class="cx">
</span><del>- if (isHTMLAreaElement(node)) {
</del><ins>+ if (is<HTMLAreaElement>(node)) {
</ins><span class="cx"> HTMLAreaElement& area = downcast<HTMLAreaElement>(*node);
</span><span class="cx"> HTMLImageElement* image = area.imageElement();
</span><span class="cx"> if (!image || !image->renderer())
</span><span class="lines">@@ -607,7 +607,7 @@
</span><span class="cx"> if (!firstCandidate.rect.intersects(secondCandidate.rect))
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- if (isHTMLAreaElement(firstCandidate.focusableNode) || isHTMLAreaElement(secondCandidate.focusableNode))
</del><ins>+ if (is<HTMLAreaElement>(firstCandidate.focusableNode) || is<HTMLAreaElement>(secondCandidate.focusableNode))
</ins><span class="cx"> return false;
</span><span class="cx">
</span><span class="cx"> if (!firstCandidate.visibleNode->renderer()->isRenderInline() || !secondCandidate.visibleNode->renderer()->isRenderInline())
</span></span></pre></div>
<a id="trunkSourceWebCorepageiosFrameIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ios/FrameIOS.mm (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ios/FrameIOS.mm        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/page/ios/FrameIOS.mm        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -351,7 +351,7 @@
</span><span class="cx"> // If we are interested about the frame, use it.
</span><span class="cx"> if (nodeBounds) {
</span><span class="cx"> // This is a check to see whether this node is an area element. The only way this can happen is if this is the first check.
</span><del>- if (node == hitTestResult.innerNode() && node != hitTestResult.innerNonSharedNode() && isHTMLAreaElement(node))
</del><ins>+ if (node == hitTestResult.innerNode() && node != hitTestResult.innerNonSharedNode() && is<HTMLAreaElement>(node))
</ins><span class="cx"> *nodeBounds = snappedIntRect(downcast<HTMLAreaElement>(*node).computeRect(hitTestResult.innerNonSharedNode()->renderer()));
</span><span class="cx"> else if (node && node->renderer())
</span><span class="cx"> *nodeBounds = node->renderer()->absoluteBoundingBoxRect(true);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/HitTestResult.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/HitTestResult.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/HitTestResult.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -273,7 +273,7 @@
</span><span class="cx"> if (!m_innerNonSharedNode)
</span><span class="cx"> return String();
</span><span class="cx">
</span><del>- if (isHTMLImageElement(*m_innerNonSharedNode)) {
</del><ins>+ if (is<HTMLImageElement>(*m_innerNonSharedNode)) {
</ins><span class="cx"> HTMLImageElement& image = downcast<HTMLImageElement>(*m_innerNonSharedNode);
</span><span class="cx"> return displayString(image.fastGetAttribute(altAttr), m_innerNonSharedNode.get());
</span><span class="cx"> }
</span><span class="lines">@@ -362,7 +362,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(VIDEO)
</span><span class="cx"> HTMLMediaElement* mediaElt(mediaElement());
</span><del>- return (mediaElt && isHTMLVideoElement(mediaElt) && mediaElt->supportsFullscreen());
</del><ins>+ return (mediaElt && is<HTMLVideoElement>(mediaElt) && mediaElt->supportsFullscreen());
</ins><span class="cx"> #else
</span><span class="cx"> return false;
</span><span class="cx"> #endif
</span><span class="lines">@@ -377,7 +377,7 @@
</span><span class="cx"> if (!(m_innerNonSharedNode->renderer() && m_innerNonSharedNode->renderer()->isMedia()))
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- if (isHTMLVideoElement(m_innerNonSharedNode.get()) || isHTMLAudioElement(m_innerNonSharedNode.get()))
</del><ins>+ if (is<HTMLVideoElement>(m_innerNonSharedNode.get()) || is<HTMLAudioElement>(m_innerNonSharedNode.get()))
</ins><span class="cx"> return toHTMLMediaElement(m_innerNonSharedNode.get());
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="lines">@@ -424,7 +424,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(VIDEO)
</span><span class="cx"> HTMLMediaElement* mediaElement(this->mediaElement());
</span><del>- if (mediaElement && isHTMLVideoElement(mediaElement)) {
</del><ins>+ if (mediaElement && is<HTMLVideoElement>(mediaElement)) {
</ins><span class="cx"> HTMLVideoElement& videoElement = downcast<HTMLVideoElement>(*mediaElement);
</span><span class="cx"> if (!videoElement.isFullscreen() && mediaElement->supportsFullscreen()) {
</span><span class="cx"> UserGestureIndicator indicator(DefinitelyProcessingUserGesture);
</span><span class="lines">@@ -482,7 +482,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(VIDEO)
</span><span class="cx"> if (HTMLMediaElement* mediaElt = mediaElement())
</span><del>- return isHTMLVideoElement(mediaElt);
</del><ins>+ return is<HTMLVideoElement>(mediaElt);
</ins><span class="cx"> #endif
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="lines">@@ -516,7 +516,7 @@
</span><span class="cx"> if (!m_innerURLElement)
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- if (isHTMLAnchorElement(*m_innerURLElement))
</del><ins>+ if (is<HTMLAnchorElement>(*m_innerURLElement))
</ins><span class="cx"> return downcast<HTMLAnchorElement>(*m_innerURLElement).isLiveLink();
</span><span class="cx">
</span><span class="cx"> if (is<SVGAElement>(*m_innerURLElement))
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderCountercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderCounter.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderCounter.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderCounter.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> if (Element* element = renderer.element()) {
</span><del>- if (isHTMLOListElement(element)) {
</del><ins>+ if (is<HTMLOListElement>(element)) {
</ins><span class="cx"> value = downcast<HTMLOListElement>(*element).start();
</span><span class="cx"> isReset = true;
</span><span class="cx"> return true;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderImage.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx"> updateAltText();
</span><span class="cx"> imageResource().initialize(this);
</span><span class="cx">
</span><del>- if (isHTMLImageElement(element))
</del><ins>+ if (is<HTMLImageElement>(element))
</ins><span class="cx"> m_hasShadowControls = downcast<HTMLImageElement>(element).hasShadowControls();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -514,7 +514,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> Element* focusedElement = document().focusedElement();
</span><del>- if (!focusedElement || !isHTMLAreaElement(focusedElement))
</del><ins>+ if (!focusedElement || !is<HTMLAreaElement>(focusedElement))
</ins><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> HTMLAreaElement& areaElement = downcast<HTMLAreaElement>(*focusedElement);
</span><span class="lines">@@ -560,7 +560,7 @@
</span><span class="cx"> if (!img || img->isNull())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- HTMLImageElement* imageElement = (element() && isHTMLImageElement(element())) ? downcast<HTMLImageElement>(element()) : nullptr;
</del><ins>+ HTMLImageElement* imageElement = (element() && is<HTMLImageElement>(element())) ? downcast<HTMLImageElement>(element()) : nullptr;
</ins><span class="cx"> CompositeOperator compositeOperator = imageElement ? imageElement->compositeOperator() : CompositeSourceOver;
</span><span class="cx"> Image* image = imageResource().image().get();
</span><span class="cx"> bool useLowQualityScaling = shouldPaintAtLowQuality(context, image, image, LayoutSize(rect.size()));
</span><span class="lines">@@ -622,7 +622,7 @@
</span><span class="cx">
</span><span class="cx"> HTMLMapElement* RenderImage::imageMap() const
</span><span class="cx"> {
</span><del>- HTMLImageElement* image = element() && isHTMLImageElement(element()) ? downcast<HTMLImageElement>(element()) : nullptr;
</del><ins>+ HTMLImageElement* image = element() && is<HTMLImageElement>(element()) ? downcast<HTMLImageElement>(element()) : nullptr;
</ins><span class="cx"> return image ? image->treeScope().getImageMap(image->fastGetAttribute(usemapAttr)) : nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -657,7 +657,7 @@
</span><span class="cx">
</span><span class="cx"> if (is<HTMLInputElement>(*element()))
</span><span class="cx"> m_altText = downcast<HTMLInputElement>(*element()).altText();
</span><del>- else if (isHTMLImageElement(*element()))
</del><ins>+ else if (is<HTMLImageElement>(*element()))
</ins><span class="cx"> m_altText = downcast<HTMLImageElement>(*element()).altText();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx"> Font itemFont = style().font();
</span><span class="cx"> if (is<HTMLOptionElement>(element))
</span><span class="cx"> text = downcast<HTMLOptionElement>(*element).textIndentedToRespectGroupLabel();
</span><del>- else if (isHTMLOptGroupElement(element)) {
</del><ins>+ else if (is<HTMLOptGroupElement>(element)) {
</ins><span class="cx"> text = downcast<HTMLOptGroupElement>(*element).groupLabelText();
</span><span class="cx"> FontDescription d = itemFont.fontDescription();
</span><span class="cx"> d.setWeight(d.bolderWeight());
</span><span class="lines">@@ -388,7 +388,7 @@
</span><span class="cx"> bool isOptionElement = is<HTMLOptionElement>(listItemElement);
</span><span class="cx"> if (isOptionElement)
</span><span class="cx"> itemText = downcast<HTMLOptionElement>(*listItemElement).textIndentedToRespectGroupLabel();
</span><del>- else if (isHTMLOptGroupElement(listItemElement))
</del><ins>+ else if (is<HTMLOptGroupElement>(listItemElement))
</ins><span class="cx"> itemText = downcast<HTMLOptGroupElement>(*listItemElement).groupLabelText();
</span><span class="cx"> applyTextTransform(style(), itemText, ' ');
</span><span class="cx">
</span><span class="lines">@@ -409,7 +409,7 @@
</span><span class="cx"> LayoutRect r = itemBoundingBoxRect(paintOffset, listIndex);
</span><span class="cx"> r.move(itemOffsetForAlignment(textRun, itemStyle, itemFont, r));
</span><span class="cx">
</span><del>- if (isHTMLOptGroupElement(listItemElement)) {
</del><ins>+ if (is<HTMLOptGroupElement>(listItemElement)) {
</ins><span class="cx"> FontDescription d = itemFont.fontDescription();
</span><span class="cx"> d.setWeight(d.bolderWeight());
</span><span class="cx"> itemFont = Font(d, itemFont.letterSpacing(), itemFont.wordSpacing());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMarqueecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMarquee.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMarquee.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderMarquee.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> {
</span><span class="cx"> int result = m_layer->renderer().style().marqueeSpeed();
</span><span class="cx"> Element* element = m_layer->renderer().element();
</span><del>- if (element && isHTMLMarqueeElement(element))
</del><ins>+ if (element && is<HTMLMarqueeElement>(element))
</ins><span class="cx"> result = std::max(result, downcast<HTMLMarqueeElement>(*element).minimumDelay());
</span><span class="cx"> return result;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMenuListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMenuList.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMenuList.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderMenuList.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -450,7 +450,7 @@
</span><span class="cx">
</span><span class="cx"> String itemString;
</span><span class="cx"> Element* element = listItems[listIndex];
</span><del>- if (isHTMLOptGroupElement(element))
</del><ins>+ if (is<HTMLOptGroupElement>(element))
</ins><span class="cx"> itemString = downcast<HTMLOptGroupElement>(*element).groupLabelText();
</span><span class="cx"> else if (is<HTMLOptionElement>(element))
</span><span class="cx"> itemString = downcast<HTMLOptionElement>(*element).textIndentedToRespectGroupLabel();
</span><span class="lines">@@ -497,7 +497,7 @@
</span><span class="cx">
</span><span class="cx"> bool groupEnabled = true;
</span><span class="cx"> if (Element* parentElement = element->parentElement()) {
</span><del>- if (isHTMLOptGroupElement(parentElement))
</del><ins>+ if (is<HTMLOptGroupElement>(parentElement))
</ins><span class="cx"> groupEnabled = !parentElement->isDisabledFormControl();
</span><span class="cx"> }
</span><span class="cx"> if (!groupEnabled)
</span><span class="lines">@@ -645,7 +645,7 @@
</span><span class="cx"> bool RenderMenuList::itemIsLabel(unsigned listIndex) const
</span><span class="cx"> {
</span><span class="cx"> const Vector<HTMLElement*>& listItems = selectElement().listItems();
</span><del>- return listIndex < listItems.size() && isHTMLOptGroupElement(listItems[listIndex]);
</del><ins>+ return listIndex < listItems.size() && is<HTMLOptGroupElement>(listItems[listIndex]);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool RenderMenuList::itemIsSelected(unsigned listIndex) const
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMetercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMeter.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMeter.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderMeter.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> {
</span><span class="cx"> ASSERT(element());
</span><span class="cx">
</span><del>- if (isHTMLMeterElement(element()))
</del><ins>+ if (is<HTMLMeterElement>(element()))
</ins><span class="cx"> return downcast<HTMLMeterElement>(element());
</span><span class="cx">
</span><span class="cx"> ASSERT(element()->shadowHost());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -41,6 +41,7 @@
</span><span class="cx"> #include "HTMLElement.h"
</span><span class="cx"> #include "HTMLImageElement.h"
</span><span class="cx"> #include "HTMLNames.h"
</span><ins>+#include "HTMLTableCellElement.h"
</ins><span class="cx"> #include "HTMLTableElement.h"
</span><span class="cx"> #include "HitTestResult.h"
</span><span class="cx"> #include "LogicalSelectionOffsetCaches.h"
</span><span class="lines">@@ -1917,7 +1918,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> // Respect the image's orientation if it's being used as a full-page image or it's
</span><span class="cx"> // an <img> and the setting to respect it everywhere is set.
</span><del>- return (frame().settings().shouldRespectImageOrientation() && node() && isHTMLImageElement(node())) ? RespectImageOrientation : DoNotRespectImageOrientation;
</del><ins>+ return (frame().settings().shouldRespectImageOrientation() && node() && is<HTMLImageElement>(node())) ? RespectImageOrientation : DoNotRespectImageOrientation;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool RenderObject::hasOutlineAnnotation() const
</span><span class="lines">@@ -2297,7 +2298,7 @@
</span><span class="cx"> curr = curr->parent();
</span><span class="cx"> if (curr && curr->isAnonymousBlock() && toRenderBlock(curr)->continuation())
</span><span class="cx"> curr = toRenderBlock(curr)->continuation();
</span><del>- } while (curr && decorations && (!quirksMode || !curr->node() || (!isHTMLAnchorElement(curr->node()) && !curr->node()->hasTagName(fontTag))));
</del><ins>+ } while (curr && decorations && (!quirksMode || !curr->node() || (!is<HTMLAnchorElement>(curr->node()) && !curr->node()->hasTagName(fontTag))));
</ins><span class="cx">
</span><span class="cx"> // If we bailed out, use the element we bailed out at (typically a <font> or <a> element).
</span><span class="cx"> if (decorations && curr) {
</span><span class="lines">@@ -2443,7 +2444,7 @@
</span><span class="cx"> auto curr = parent();
</span><span class="cx"> while (curr && (!curr->element() || (!curr->isPositioned() && !curr->isBody())) && !curr->isRenderNamedFlowThread()) {
</span><span class="cx"> Element* element = curr->element();
</span><del>- if (!skipTables && element && (isHTMLTableElement(element) || element->hasTagName(tdTag) || element->hasTagName(thTag)))
</del><ins>+ if (!skipTables && element && (is<HTMLTableElement>(*element) || isHTMLTableCellElement(*element)))
</ins><span class="cx"> break;
</span><span class="cx">
</span><span class="cx"> float newZoom = curr->style().effectiveZoom();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderProgresscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderProgress.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderProgress.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderProgress.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> if (!element())
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- if (isHTMLProgressElement(element()))
</del><ins>+ if (is<HTMLProgressElement>(element()))
</ins><span class="cx"> return downcast<HTMLProgressElement>(element());
</span><span class="cx">
</span><span class="cx"> ASSERT(element()->shadowHost());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTable.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTable.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/rendering/RenderTable.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -350,7 +350,7 @@
</span><span class="cx">
</span><span class="cx"> // HTML tables' width styles already include borders and paddings, but CSS tables' width styles do not.
</span><span class="cx"> LayoutUnit borders = 0;
</span><del>- bool isCSSTable = !element() || !isHTMLTableElement(element());
</del><ins>+ bool isCSSTable = !element() || !is<HTMLTableElement>(element());
</ins><span class="cx"> if (isCSSTable && styleLogicalWidth.isSpecified() && styleLogicalWidth.isPositive() && style().boxSizing() == CONTENT_BOX)
</span><span class="cx"> borders = borderStart() + borderEnd() + (collapseBorders() ? LayoutUnit() : paddingStart() + paddingEnd());
</span><span class="cx">
</span><span class="lines">@@ -364,7 +364,7 @@
</span><span class="cx"> // HTML tables size as though CSS height includes border/padding, CSS tables do not.
</span><span class="cx"> LayoutUnit borders = LayoutUnit();
</span><span class="cx"> // FIXME: We cannot apply box-sizing: content-box on <table> which other browsers allow.
</span><del>- if ((element() && isHTMLTableElement(element())) || style().boxSizing() == BORDER_BOX) {
</del><ins>+ if ((element() && is<HTMLTableElement>(element())) || style().boxSizing() == BORDER_BOX) {
</ins><span class="cx"> LayoutUnit borderAndPaddingBefore = borderBefore() + (collapseBorders() ? LayoutUnit() : paddingBefore());
</span><span class="cx"> LayoutUnit borderAndPaddingAfter = borderAfter() + (collapseBorders() ? LayoutUnit() : paddingAfter());
</span><span class="cx"> borders = borderAndPaddingBefore + borderAndPaddingAfter;
</span></span></pre></div>
<a id="trunkSourceWebCoresvggraphicsSVGImageCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/graphics/SVGImageCache.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/graphics/SVGImageCache.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/svg/graphics/SVGImageCache.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx"> RefPtr<SVGImageForContainer> imageForContainer = it->value;
</span><span class="cx">
</span><span class="cx"> Node* node = renderer->node();
</span><del>- if (node && isHTMLImageElement(node)) {
</del><ins>+ if (node && is<HTMLImageElement>(node)) {
</ins><span class="cx"> const AtomicString& urlString = downcast<HTMLImageElement>(*node).imageSourceURL();
</span><span class="cx"> URL url = node->document().completeURL(urlString);
</span><span class="cx"> imageForContainer->setURL(url);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/testing/Internals.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1918,7 +1918,7 @@
</span><span class="cx"> document = contextDocument();
</span><span class="cx"> else if (node->isDocumentNode())
</span><span class="cx"> document = toDocument(node);
</span><del>- else if (isHTMLIFrameElement(node))
</del><ins>+ else if (is<HTMLIFrameElement>(node))
</ins><span class="cx"> document = downcast<HTMLIFrameElement>(*node).contentDocument();
</span><span class="cx"> else {
</span><span class="cx"> ec = TypeError;
</span></span></pre></div>
<a id="trunkSourceWebCorexmlparserXMLDocumentParserLibxml2cpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -850,7 +850,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> #if ENABLE(TEMPLATE_ELEMENT)
</span><del>- if (isHTMLTemplateElement(*newElement))
</del><ins>+ if (is<HTMLTemplateElement>(*newElement))
</ins><span class="cx"> pushCurrentNode(downcast<HTMLTemplateElement>(*newElement).content());
</span><span class="cx"> else
</span><span class="cx"> pushCurrentNode(newElement.get());
</span></span></pre></div>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit/win/ChangeLog        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2014-09-25 Christophe Dumez <cdumez@apple.com>
+
+ Use is<HTML*Element>() instead of isHTML*Element() - Part 2
+ https://bugs.webkit.org/show_bug.cgi?id=137103
+
+ Reviewed by Benjamin Poulain.
+
+ Use is<HTML*Element>() instead of isHTML*Element().
+
+ * DOMCoreClasses.cpp:
+ (DOMElement::createInstance):
+ * DOMHTMLClasses.cpp:
+ (DOMHTMLFormElement::action):
+ (DOMHTMLFormElement::method):
+ * WebFrame.cpp:
+ (formElementFromDOMElement):
+
</ins><span class="cx"> 2014-09-24 Christophe Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> Add initial is<>() / downcast<>() support for any type of Nodes
</span></span></pre></div>
<a id="trunkSourceWebKitwinDOMCoreClassescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/DOMCoreClasses.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/DOMCoreClasses.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit/win/DOMCoreClasses.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1500,7 +1500,7 @@
</span><span class="cx"> HRESULT hr;
</span><span class="cx"> IDOMElement* domElement = 0;
</span><span class="cx">
</span><del>- if (isHTMLFormElement(e)) {
</del><ins>+ if (WebCore::is<WebCore::HTMLFormElement>(e)) {
</ins><span class="cx"> DOMHTMLFormElement* newElement = new DOMHTMLFormElement(e);
</span><span class="cx"> hr = newElement->QueryInterface(IID_IDOMElement, (void**)&domElement);
</span><span class="cx"> } else if (e->hasTagName(iframeTag)) {
</span></span></pre></div>
<a id="trunkSourceWebKitwinDOMHTMLClassescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/DOMHTMLClasses.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/DOMHTMLClasses.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit/win/DOMHTMLClasses.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -559,7 +559,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLFormElement::action(
</span><span class="cx"> /* [retval][out] */ BSTR* result)
</span><span class="cx"> {
</span><del>- ASSERT(m_element && isHTMLFormElement(m_element));
</del><ins>+ ASSERT(m_element && is<HTMLFormElement>(m_element));
</ins><span class="cx"> WTF::String actionString = downcast<HTMLFormElement>(*m_element).action();
</span><span class="cx"> *result = BString(actionString).release();
</span><span class="cx"> return S_OK;
</span><span class="lines">@@ -589,7 +589,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLFormElement::method(
</span><span class="cx"> /* [retval][out] */ BSTR* result)
</span><span class="cx"> {
</span><del>- ASSERT(m_element && isHTMLFormElement(m_element));
</del><ins>+ ASSERT(m_element && is<HTMLFormElement>(m_element));
</ins><span class="cx"> WTF::String methodString = downcast<HTMLFormElement>(*m_element).method();
</span><span class="cx"> *result = BString(methodString).release();
</span><span class="cx"> return S_OK;
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebFrame.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebFrame.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit/win/WebFrame.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx"> Element* ele;
</span><span class="cx"> hr = elePriv->coreElement((void**)&ele);
</span><span class="cx"> elePriv->Release();
</span><del>- if (SUCCEEDED(hr) && ele && isHTMLFormElement(ele))
</del><ins>+ if (SUCCEEDED(hr) && ele && is<HTMLFormElement>(ele))
</ins><span class="cx"> return downcast<HTMLFormElement>(ele);
</span><span class="cx"> }
</span><span class="cx"> return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit2/ChangeLog        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2014-09-25 Christophe Dumez <cdumez@apple.com>
+
+ Use is<HTML*Element>() instead of isHTML*Element() - Part 2
+ https://bugs.webkit.org/show_bug.cgi?id=137103
+
+ Reviewed by Benjamin Poulain.
+
+ Use is<HTML*Element>() instead of isHTML*Element().
+
+ * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+ (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
+ * WebProcess/WebPage/WebFrame.cpp:
+ (WebKit::WebFrame::containsAnyFormElements):
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::WebPage::getAssistedNodeInformation):
+
</ins><span class="cx"> 2014-09-25 Anders Carlsson <andersca@apple.com>
</span><span class="cx">
</span><span class="cx"> Expand WK_MAC_TBA and WK_IOS_TBA to the current deployment target version (or NA).
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -276,7 +276,7 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebFrame> InjectedBundleNodeHandle::htmlIFrameElementContentFrame()
</span><span class="cx"> {
</span><del>- if (!isHTMLIFrameElement(*m_node))
</del><ins>+ if (!is<HTMLIFrameElement>(*m_node))
</ins><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> Frame* frame = downcast<HTMLIFrameElement>(*m_node).contentFrame();
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -615,7 +615,7 @@
</span><span class="cx"> for (Node* node = document->documentElement(); node; node = NodeTraversal::next(node)) {
</span><span class="cx"> if (!node->isElementNode())
</span><span class="cx"> continue;
</span><del>- if (isHTMLFormElement(node))
</del><ins>+ if (is<HTMLFormElement>(node))
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> return false;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -4609,7 +4609,7 @@
</span><span class="cx"> inflatedPluginRect.inflateY(yOffset);
</span><span class="cx">
</span><span class="cx"> if (element != &plugInImageElement) {
</span><del>- if (!(isHTMLImageElement(element)
</del><ins>+ if (!(is<HTMLImageElement>(element)
</ins><span class="cx"> && inflatedPluginRect.contains(elementRectRelativeToTopDocument)
</span><span class="cx"> && elementRectRelativeToTopDocument.width() > pluginRenderBox.width() * minimumOverlappingImageToPluginDimensionScale
</span><span class="cx"> && elementRectRelativeToTopDocument.height() > pluginRenderBox.height() * minimumOverlappingImageToPluginDimensionScale))
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (173979 => 173980)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2014-09-25 23:16:57 UTC (rev 173979)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2014-09-25 23:37:12 UTC (rev 173980)
</span><span class="lines">@@ -2080,7 +2080,7 @@
</span><span class="cx"> if (is<HTMLOptionElement>(item)) {
</span><span class="cx"> HTMLOptionElement& option = downcast<HTMLOptionElement>(*item);
</span><span class="cx"> information.selectOptions.append(OptionItem(option.text(), false, parentGroupID, option.selected(), option.fastHasAttribute(WebCore::HTMLNames::disabledAttr)));
</span><del>- } else if (isHTMLOptGroupElement(item)) {
</del><ins>+ } else if (is<HTMLOptGroupElement>(item)) {
</ins><span class="cx"> HTMLOptGroupElement& group = downcast<HTMLOptGroupElement>(*item);
</span><span class="cx"> parentGroupID++;
</span><span class="cx"> information.selectOptions.append(OptionItem(group.groupLabelText(), true, 0, false, group.fastHasAttribute(WebCore::HTMLNames::disabledAttr)));
</span></span></pre>
</div>
</div>
</body>
</html>