<!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>[173932] 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/173932">173932</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-09-24 14:25:22 -0700 (Wed, 24 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
https://bugs.webkit.org/show_bug.cgi?id=137068

Reviewed by Ryosuke Niwa.

Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
Remaining usages will be updated in a follow-up patch to
reduce the size of the change.

Source/WebCore:

No new tests, no behavior change.

* accessibility/AccessibilityListBoxOption.cpp:
(WebCore::AccessibilityListBoxOption::isSelected):
(WebCore::AccessibilityListBoxOption::canSetSelectedAttribute):
(WebCore::AccessibilityListBoxOption::stringValue):
(WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
* accessibility/AccessibilityMediaControls.cpp:
(WebCore::AccessibilityMediaTimeline::valueDescription):
* accessibility/AccessibilityMenuListOption.cpp:
(WebCore::AccessibilityMenuListOption::setElement):
* accessibility/AccessibilityMenuListPopup.cpp:
(WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::determineAccessibilityRole):
(WebCore::AccessibilityNodeObject::isNativeTextControl):
(WebCore::AccessibilityNodeObject::isNativeImage):
(WebCore::AccessibilityNodeObject::isInputImage):
(WebCore::AccessibilityNodeObject::isReadOnly):
(WebCore::AccessibilityNodeObject::valueForRange):
(WebCore::AccessibilityNodeObject::maxValueForRange):
(WebCore::AccessibilityNodeObject::minValueForRange):
(WebCore::isNodeActionElement):
(WebCore::AccessibilityNodeObject::titleElementText):
(WebCore::AccessibilityNodeObject::visibleText):
(WebCore::AccessibilityNodeObject::title):
(WebCore::AccessibilityNodeObject::colorValue):
(WebCore::accessibleNameForNode):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::isFileUploadButton):
(WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
(WebCore::AccessibilityRenderObject::setValue):
(WebCore::AccessibilityRenderObject::accessibilityHitTest):
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
(WebCore::AccessibilityRenderObject::addTextFieldChildren):
* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::notifyChildrenSelectionChange):
* css/SelectorCheckerTestFunctions.h:
(WebCore::isDisabled):
(WebCore::isEnabled):
(WebCore::isChecked):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::adjustRenderStyle):
* dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::dispatchEvent):
* editing/FrameSelection.cpp:
(WebCore::FrameSelection::selectAll):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::shouldPerformSmartReplace):
* editing/VisibleSelection.cpp:
(WebCore::VisibleSelection::isInPasswordField):
* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_processElement):
* editing/gtk/EditorGtk.cpp:
(WebCore::elementURL):
* editing/ios/EditorIOS.mm:
(WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
* editing/markup.cpp:
(WebCore::StyledMarkupAccumulator::appendText):
(WebCore::isPlainTextMarkup):
(WebCore::collectElementsToRemoveFromFragment):
* html/HTMLCollection.cpp:
(WebCore::isMatchingElement):
* html/HTMLEmbedElement.cpp:
(WebCore::HTMLEmbedElement::rendererIsNeeded):
* html/HTMLFormControlElement.cpp:
(WebCore::shouldAutofocus):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::getTextFieldValues):
(WebCore::HTMLFormElement::formElementIndex):
* html/HTMLImageLoader.cpp:
(WebCore::HTMLImageLoader::dispatchLoadEvent):
(WebCore::HTMLImageLoader::notifyFinished):
* html/HTMLNameCollection.cpp:
(WebCore::DocumentNameCollection::elementMatchesIfIdAttributeMatch):
(WebCore::DocumentNameCollection::elementMatchesIfNameAttributeMatch):
(WebCore::DocumentNameCollection::elementMatches):
* html/HTMLOptGroupElement.cpp:
(WebCore::HTMLOptGroupElement::recalcSelectOptions):
(WebCore::HTMLOptGroupElement::ownerSelectElement):
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::index):
(WebCore::HTMLOptionElement::ownerSelectElement):
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::add):
(WebCore::HTMLSelectElement::value):
(WebCore::HTMLSelectElement::setValue):
(WebCore::HTMLSelectElement::childShouldCreateRenderer):
(WebCore::HTMLSelectElement::setLength):
(WebCore::HTMLSelectElement::nextValidIndex):
(WebCore::HTMLSelectElement::saveLastSelection):
(WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
(WebCore::HTMLSelectElement::updateListBoxSelection):
(WebCore::HTMLSelectElement::listBoxOnChange):
(WebCore::HTMLSelectElement::recalcListItems):
(WebCore::HTMLSelectElement::selectedIndex):
(WebCore::HTMLSelectElement::selectOption):
(WebCore::HTMLSelectElement::optionToListIndex):
(WebCore::HTMLSelectElement::listToOptionIndex):
(WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
(WebCore::HTMLSelectElement::saveFormControlState):
(WebCore::HTMLSelectElement::searchOptionsForValue):
(WebCore::HTMLSelectElement::restoreFormControlState):
(WebCore::HTMLSelectElement::appendFormData):
(WebCore::HTMLSelectElement::reset):
(WebCore::HTMLSelectElement::updateSelectedState):
(WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
(WebCore::HTMLSelectElement::lastSelectedListIndex):
(WebCore::HTMLSelectElement::optionAtIndex):
(WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
(WebCore::HTMLSelectElement::length):
* html/HTMLTagNames.in:
* html/RadioInputType.cpp:
(WebCore::RadioInputType::handleKeydownEvent):
(WebCore::RadioInputType::isKeyboardFocusable):
* html/parser/HTMLConstructionSite.cpp:
(WebCore::hasImpliedEndTag):
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLNames::isSelectScopeMarker):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processStartTagForInBody):
(WebCore::HTMLTreeBuilder::processStartTag):
(WebCore::HTMLTreeBuilder::processEndTag):
* html/shadow/MediaControlElementTypes.cpp:
(WebCore::mediaControlElementType):
* loader/FormSubmission.cpp:
(WebCore::FormSubmission::create):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::handleFallbackContent):
* loader/ImageLoader.cpp:
(WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
* loader/SubframeLoader.cpp:
(WebCore::SubframeLoader::requestObject):
* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create):
* page/Chrome.cpp:
(WebCore::Chrome::setToolTip):
* page/EventHandler.cpp:
(WebCore::isSubmitImage):
(WebCore::EventHandler::handleMousePressEvent):
* page/FocusController.cpp:
(WebCore::clearSelectionIfNeeded):
* page/FrameView.cpp:
(WebCore::FrameView::addEmbeddedObjectToUpdate):
(WebCore::FrameView::updateEmbeddedObject):
* page/PageSerializer.cpp:
(WebCore::frameOwnerURLAttributeName):
* page/SpatialNavigation.cpp:
(WebCore::canScrollInDirection):
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::altDisplayString):
(WebCore::HitTestResult::absoluteImageURL):
(WebCore::HitTestResult::absolutePDFURL):
(WebCore::HitTestResult::isContentEditable):
* rendering/RenderBlockFlow.cpp:
(WebCore::resizeTextPermitted):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::sizesLogicalWidthToFitContent):
* rendering/RenderButton.cpp:
(WebCore::RenderButton::updateFromElement):
(WebCore::RenderButton::canHaveGeneratedChildren):
* rendering/RenderDetailsMarker.cpp:
(WebCore::RenderDetailsMarker::isOpen):
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::uploadButton):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::updateAltText):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::updateFromElement):
(WebCore::RenderListBox::addFocusRingRects):
(WebCore::RenderListBox::paintItemForeground):
(WebCore::RenderListBox::paintItemBackground):
* rendering/RenderMenuList.cpp:
(WebCore::selectedOptionCount):
(RenderMenuList::updateOptionsWidth):
(RenderMenuList::setTextFromOption):
(RenderMenuList::itemText):
(RenderMenuList::itemIsEnabled):
(RenderMenuList::itemIsSelected):
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::paintSliderTicks):
* testing/Internals.cpp:
(WebCore::Internals::selectColorInColorChooser):
(WebCore::Internals::wasLastChangeUserEdit):
(WebCore::Internals::isSelectPopupVisible):
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::XMLDocumentParser::startElementNs):

Source/WebKit/ios:

* WebCoreSupport/WebChromeClientIOS.mm:
(WebChromeClientIOS::focusedElementChanged):

Source/WebKit/mac:

* WebCoreSupport/WebChromeClient.mm:
(WebChromeClient::focusedElementChanged):
* WebCoreSupport/WebEditorClient.mm:
(WebEditorClient::textFieldDidBeginEditing):
(WebEditorClient::textFieldDidEndEditing):
(WebEditorClient::textDidChangeInTextField):
(WebEditorClient::doTextFieldCommandFromEvent):
(WebEditorClient::textWillBeDeletedInTextField):
(WebEditorClient::textDidChangeInTextArea):
* WebView/WebHTMLRepresentation.mm:
(inputElementFromDOMElement):

Source/WebKit/win:

* DOMCoreClasses.cpp:
(DOMElement::createInstance):
* DOMHTMLClasses.cpp:
(DOMHTMLOptionElement::text):
(DOMHTMLOptionElement::label):
(DOMHTMLInputElement::form):
(DOMHTMLInputElement::disabled):
(DOMHTMLInputElement::readOnly):
(DOMHTMLInputElement::setType):
(DOMHTMLInputElement::value):
(DOMHTMLInputElement::setValue):
(DOMHTMLInputElement::setValueForUser):
(DOMHTMLInputElement::select):
(DOMHTMLInputElement::setSelectionStart):
(DOMHTMLInputElement::selectionStart):
(DOMHTMLInputElement::setSelectionEnd):
(DOMHTMLInputElement::selectionEnd):
(DOMHTMLInputElement::isTextField):
(DOMHTMLInputElement::rectOnScreen):
(DOMHTMLInputElement::replaceCharactersInRange):
(DOMHTMLInputElement::selectedRange):
(DOMHTMLInputElement::setAutofilled):
(DOMHTMLInputElement::isAutofilled):
(DOMHTMLInputElement::isUserEdited):
(DOMHTMLTextAreaElement::form):
(DOMHTMLTextAreaElement::value):
(DOMHTMLTextAreaElement::setValue):
(DOMHTMLTextAreaElement::select):
(DOMHTMLTextAreaElement::isUserEdited):
* WebFrame.cpp:
(inputElementFromDOMElement):

Source/WebKit2:

* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
(WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
(WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
(WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
(WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
(WebKit::InjectedBundleNodeHandle::isTextField):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::focusedElementChanged):
* WebProcess/WebCoreSupport/WebEditorClient.cpp:
(WebKit::WebEditorClient::textFieldDidBeginEditing):
(WebKit::WebEditorClient::textFieldDidEndEditing):
(WebKit::WebEditorClient::textDidChangeInTextField):
(WebKit::WebEditorClient::textDidChangeInTextArea):
(WebKit::WebEditorClient::doTextFieldCommandFromEvent):
(WebKit::WebEditorClient::textWillBeDeletedInTextField):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::containsAnyFormControls):
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::setAssistedNodeValue):
(WebKit::WebPage::setAssistedNodeValueAsNumber):
(WebKit::WebPage::setAssistedNodeSelectedIndex):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityListBoxOptioncpp">trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityMediaControlscpp">trunk/Source/WebCore/accessibility/AccessibilityMediaControls.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityMenuListOptioncpp">trunk/Source/WebCore/accessibility/AccessibilityMenuListOption.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityMenuListPopupcpp">trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.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="#trunkSourceWebCoreaccessibilityatkAXObjectCacheAtkcpp">trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp</a></li>
<li><a href="#trunkSourceWebCorecssSelectorCheckerTestFunctionsh">trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
<li><a href="#trunkSourceWebCoredomEventDispatchercpp">trunk/Source/WebCore/dom/EventDispatcher.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingFrameSelectioncpp">trunk/Source/WebCore/editing/FrameSelection.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingReplaceSelectionCommandcpp">trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingVisibleSelectioncpp">trunk/Source/WebCore/editing/VisibleSelection.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingcocoaHTMLConvertermm">trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm</a></li>
<li><a href="#trunkSourceWebCoreeditinggtkEditorGtkcpp">trunk/Source/WebCore/editing/gtk/EditorGtk.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingiosEditorIOSmm">trunk/Source/WebCore/editing/ios/EditorIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreeditingmarkupcpp">trunk/Source/WebCore/editing/markup.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLCollectioncpp">trunk/Source/WebCore/html/HTMLCollection.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLEmbedElementcpp">trunk/Source/WebCore/html/HTMLEmbedElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormControlElementcpp">trunk/Source/WebCore/html/HTMLFormControlElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormElementcpp">trunk/Source/WebCore/html/HTMLFormElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageLoadercpp">trunk/Source/WebCore/html/HTMLImageLoader.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLNameCollectioncpp">trunk/Source/WebCore/html/HTMLNameCollection.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLOptGroupElementcpp">trunk/Source/WebCore/html/HTMLOptGroupElement.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="#trunkSourceWebCorehtmlHTMLTagNamesin">trunk/Source/WebCore/html/HTMLTagNames.in</a></li>
<li><a href="#trunkSourceWebCorehtmlRadioInputTypecpp">trunk/Source/WebCore/html/RadioInputType.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="#trunkSourceWebCorehtmlshadowMediaControlElementTypescpp">trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFormSubmissioncpp">trunk/Source/WebCore/loader/FormSubmission.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderImageLoadercpp">trunk/Source/WebCore/loader/ImageLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderSubframeLoadercpp">trunk/Source/WebCore/loader/SubframeLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderarchivecfLegacyWebArchivecpp">trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp</a></li>
<li><a href="#trunkSourceWebCorepageChromecpp">trunk/Source/WebCore/page/Chrome.cpp</a></li>
<li><a href="#trunkSourceWebCorepageEventHandlercpp">trunk/Source/WebCore/page/EventHandler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFocusControllercpp">trunk/Source/WebCore/page/FocusController.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/page/FrameView.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="#trunkSourceWebCorerenderingHitTestResultcpp">trunk/Source/WebCore/rendering/HitTestResult.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockFlowcpp">trunk/Source/WebCore/rendering/RenderBlockFlow.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxcpp">trunk/Source/WebCore/rendering/RenderBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderButtoncpp">trunk/Source/WebCore/rendering/RenderButton.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderDetailsMarkercpp">trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderFileUploadControlcpp">trunk/Source/WebCore/rendering/RenderFileUploadControl.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="#trunkSourceWebCorerenderingRenderMenuListcpp">trunk/Source/WebCore/rendering/RenderMenuList.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemecpp">trunk/Source/WebCore/rendering/RenderTheme.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="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm">trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebChromeClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebEditorClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebHTMLRepresentationmm">trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm</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="#trunkSourceWebKit2WebProcessWebCoreSupportWebChromeClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebEditorClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebFramecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.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 (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/ChangeLog        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1,3 +1,202 @@
</span><ins>+2014-09-24  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
+        https://bugs.webkit.org/show_bug.cgi?id=137068
+
+        Reviewed by Ryosuke Niwa.
+
+        Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
+        Remaining usages will be updated in a follow-up patch to
+        reduce the size of the change.
+
+        No new tests, no behavior change.
+
+        * accessibility/AccessibilityListBoxOption.cpp:
+        (WebCore::AccessibilityListBoxOption::isSelected):
+        (WebCore::AccessibilityListBoxOption::canSetSelectedAttribute):
+        (WebCore::AccessibilityListBoxOption::stringValue):
+        (WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
+        * accessibility/AccessibilityMediaControls.cpp:
+        (WebCore::AccessibilityMediaTimeline::valueDescription):
+        * accessibility/AccessibilityMenuListOption.cpp:
+        (WebCore::AccessibilityMenuListOption::setElement):
+        * accessibility/AccessibilityMenuListPopup.cpp:
+        (WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
+        * accessibility/AccessibilityNodeObject.cpp:
+        (WebCore::AccessibilityNodeObject::determineAccessibilityRole):
+        (WebCore::AccessibilityNodeObject::isNativeTextControl):
+        (WebCore::AccessibilityNodeObject::isNativeImage):
+        (WebCore::AccessibilityNodeObject::isInputImage):
+        (WebCore::AccessibilityNodeObject::isReadOnly):
+        (WebCore::AccessibilityNodeObject::valueForRange):
+        (WebCore::AccessibilityNodeObject::maxValueForRange):
+        (WebCore::AccessibilityNodeObject::minValueForRange):
+        (WebCore::isNodeActionElement):
+        (WebCore::AccessibilityNodeObject::titleElementText):
+        (WebCore::AccessibilityNodeObject::visibleText):
+        (WebCore::AccessibilityNodeObject::title):
+        (WebCore::AccessibilityNodeObject::colorValue):
+        (WebCore::accessibleNameForNode):
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::isFileUploadButton):
+        (WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
+        (WebCore::AccessibilityRenderObject::setValue):
+        (WebCore::AccessibilityRenderObject::accessibilityHitTest):
+        (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
+        (WebCore::AccessibilityRenderObject::addTextFieldChildren):
+        * accessibility/atk/AXObjectCacheAtk.cpp:
+        (WebCore::notifyChildrenSelectionChange):
+        * css/SelectorCheckerTestFunctions.h:
+        (WebCore::isDisabled):
+        (WebCore::isEnabled):
+        (WebCore::isChecked):
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::adjustRenderStyle):
+        * dom/EventDispatcher.cpp:
+        (WebCore::EventDispatcher::dispatchEvent):
+        * editing/FrameSelection.cpp:
+        (WebCore::FrameSelection::selectAll):
+        * editing/ReplaceSelectionCommand.cpp:
+        (WebCore::ReplaceSelectionCommand::shouldPerformSmartReplace):
+        * editing/VisibleSelection.cpp:
+        (WebCore::VisibleSelection::isInPasswordField):
+        * editing/cocoa/HTMLConverter.mm:
+        (HTMLConverter::_processElement):
+        * editing/gtk/EditorGtk.cpp:
+        (WebCore::elementURL):
+        * editing/ios/EditorIOS.mm:
+        (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
+        * editing/markup.cpp:
+        (WebCore::StyledMarkupAccumulator::appendText):
+        (WebCore::isPlainTextMarkup):
+        (WebCore::collectElementsToRemoveFromFragment):
+        * html/HTMLCollection.cpp:
+        (WebCore::isMatchingElement):
+        * html/HTMLEmbedElement.cpp:
+        (WebCore::HTMLEmbedElement::rendererIsNeeded):
+        * html/HTMLFormControlElement.cpp:
+        (WebCore::shouldAutofocus):
+        * html/HTMLFormElement.cpp:
+        (WebCore::HTMLFormElement::getTextFieldValues):
+        (WebCore::HTMLFormElement::formElementIndex):
+        * html/HTMLImageLoader.cpp:
+        (WebCore::HTMLImageLoader::dispatchLoadEvent):
+        (WebCore::HTMLImageLoader::notifyFinished):
+        * html/HTMLNameCollection.cpp:
+        (WebCore::DocumentNameCollection::elementMatchesIfIdAttributeMatch):
+        (WebCore::DocumentNameCollection::elementMatchesIfNameAttributeMatch):
+        (WebCore::DocumentNameCollection::elementMatches):
+        * html/HTMLOptGroupElement.cpp:
+        (WebCore::HTMLOptGroupElement::recalcSelectOptions):
+        (WebCore::HTMLOptGroupElement::ownerSelectElement):
+        * html/HTMLOptionElement.cpp:
+        (WebCore::HTMLOptionElement::index):
+        (WebCore::HTMLOptionElement::ownerSelectElement):
+        * html/HTMLSelectElement.cpp:
+        (WebCore::HTMLSelectElement::add):
+        (WebCore::HTMLSelectElement::value):
+        (WebCore::HTMLSelectElement::setValue):
+        (WebCore::HTMLSelectElement::childShouldCreateRenderer):
+        (WebCore::HTMLSelectElement::setLength):
+        (WebCore::HTMLSelectElement::nextValidIndex):
+        (WebCore::HTMLSelectElement::saveLastSelection):
+        (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
+        (WebCore::HTMLSelectElement::updateListBoxSelection):
+        (WebCore::HTMLSelectElement::listBoxOnChange):
+        (WebCore::HTMLSelectElement::recalcListItems):
+        (WebCore::HTMLSelectElement::selectedIndex):
+        (WebCore::HTMLSelectElement::selectOption):
+        (WebCore::HTMLSelectElement::optionToListIndex):
+        (WebCore::HTMLSelectElement::listToOptionIndex):
+        (WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
+        (WebCore::HTMLSelectElement::saveFormControlState):
+        (WebCore::HTMLSelectElement::searchOptionsForValue):
+        (WebCore::HTMLSelectElement::restoreFormControlState):
+        (WebCore::HTMLSelectElement::appendFormData):
+        (WebCore::HTMLSelectElement::reset):
+        (WebCore::HTMLSelectElement::updateSelectedState):
+        (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
+        (WebCore::HTMLSelectElement::lastSelectedListIndex):
+        (WebCore::HTMLSelectElement::optionAtIndex):
+        (WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
+        (WebCore::HTMLSelectElement::length):
+        * html/HTMLTagNames.in:
+        * html/RadioInputType.cpp:
+        (WebCore::RadioInputType::handleKeydownEvent):
+        (WebCore::RadioInputType::isKeyboardFocusable):
+        * html/parser/HTMLConstructionSite.cpp:
+        (WebCore::hasImpliedEndTag):
+        * html/parser/HTMLElementStack.cpp:
+        (WebCore::HTMLNames::isSelectScopeMarker):
+        * html/parser/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::processStartTagForInBody):
+        (WebCore::HTMLTreeBuilder::processStartTag):
+        (WebCore::HTMLTreeBuilder::processEndTag):
+        * html/shadow/MediaControlElementTypes.cpp:
+        (WebCore::mediaControlElementType):
+        * loader/FormSubmission.cpp:
+        (WebCore::FormSubmission::create):
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::handleFallbackContent):
+        * loader/ImageLoader.cpp:
+        (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
+        * loader/SubframeLoader.cpp:
+        (WebCore::SubframeLoader::requestObject):
+        * loader/archive/cf/LegacyWebArchive.cpp:
+        (WebCore::LegacyWebArchive::create):
+        * page/Chrome.cpp:
+        (WebCore::Chrome::setToolTip):
+        * page/EventHandler.cpp:
+        (WebCore::isSubmitImage):
+        (WebCore::EventHandler::handleMousePressEvent):
+        * page/FocusController.cpp:
+        (WebCore::clearSelectionIfNeeded):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::addEmbeddedObjectToUpdate):
+        (WebCore::FrameView::updateEmbeddedObject):
+        * page/PageSerializer.cpp:
+        (WebCore::frameOwnerURLAttributeName):
+        * page/SpatialNavigation.cpp:
+        (WebCore::canScrollInDirection):
+        * rendering/HitTestResult.cpp:
+        (WebCore::HitTestResult::altDisplayString):
+        (WebCore::HitTestResult::absoluteImageURL):
+        (WebCore::HitTestResult::absolutePDFURL):
+        (WebCore::HitTestResult::isContentEditable):
+        * rendering/RenderBlockFlow.cpp:
+        (WebCore::resizeTextPermitted):
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::sizesLogicalWidthToFitContent):
+        * rendering/RenderButton.cpp:
+        (WebCore::RenderButton::updateFromElement):
+        (WebCore::RenderButton::canHaveGeneratedChildren):
+        * rendering/RenderDetailsMarker.cpp:
+        (WebCore::RenderDetailsMarker::isOpen):
+        * rendering/RenderFileUploadControl.cpp:
+        (WebCore::RenderFileUploadControl::uploadButton):
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::updateAltText):
+        * rendering/RenderListBox.cpp:
+        (WebCore::RenderListBox::updateFromElement):
+        (WebCore::RenderListBox::addFocusRingRects):
+        (WebCore::RenderListBox::paintItemForeground):
+        (WebCore::RenderListBox::paintItemBackground):
+        * rendering/RenderMenuList.cpp:
+        (WebCore::selectedOptionCount):
+        (RenderMenuList::updateOptionsWidth):
+        (RenderMenuList::setTextFromOption):
+        (RenderMenuList::itemText):
+        (RenderMenuList::itemIsEnabled):
+        (RenderMenuList::itemIsSelected):
+        * rendering/RenderTheme.cpp:
+        (WebCore::RenderTheme::paintSliderTicks):
+        * testing/Internals.cpp:
+        (WebCore::Internals::selectColorInColorChooser):
+        (WebCore::Internals::wasLastChangeUserEdit):
+        (WebCore::Internals::isSelectPopupVisible):
+        * xml/parser/XMLDocumentParserLibxml2.cpp:
+        (WebCore::XMLDocumentParser::startElementNs):
+
</ins><span class="cx"> 2014-09-24  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] Remove MediaPlayer::setHasPlaybackTargetAvailabilityListeners
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityListBoxOptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityListBoxOption.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">     if (!m_optionElement)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    if (!isHTMLOptionElement(m_optionElement))
</del><ins>+    if (!is&lt;HTMLOptionElement&gt;(m_optionElement))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     return downcast&lt;HTMLOptionElement&gt;(*m_optionElement).selected();
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">     if (!m_optionElement)
</span><span class="cx">         return false;
</span><span class="cx">     
</span><del>-    if (!isHTMLOptionElement(m_optionElement))
</del><ins>+    if (!is&lt;HTMLOptionElement&gt;(m_optionElement))
</ins><span class="cx">         return false;
</span><span class="cx">     
</span><span class="cx">     if (m_optionElement-&gt;isDisabledFormControl())
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">     if (!ariaLabel.isNull())
</span><span class="cx">         return ariaLabel;
</span><span class="cx">     
</span><del>-    if (isHTMLOptionElement(m_optionElement))
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(m_optionElement))
</ins><span class="cx">         return downcast&lt;HTMLOptionElement&gt;(*m_optionElement).text();
</span><span class="cx">     
</span><span class="cx">     if (isHTMLOptGroupElement(m_optionElement))
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx">     if (!m_optionElement)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    if (isHTMLOptionElement(m_optionElement))
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(m_optionElement))
</ins><span class="cx">         return downcast&lt;HTMLOptionElement&gt;(*m_optionElement).ownerSelectElement();
</span><span class="cx"> 
</span><span class="cx">     if (isHTMLOptGroupElement(m_optionElement))
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityMediaControlscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityMediaControls.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityMediaControls.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityMediaControls.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -274,7 +274,7 @@
</span><span class="cx"> String AccessibilityMediaTimeline::valueDescription() const
</span><span class="cx"> {
</span><span class="cx">     Node* node = m_renderer-&gt;node();
</span><del>-    if (!isHTMLInputElement(node))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">         return String();
</span><span class="cx"> 
</span><span class="cx">     float time = downcast&lt;HTMLInputElement&gt;(*node).value().toFloat();
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityMenuListOptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityMenuListOption.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityMenuListOption.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityMenuListOption.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AccessibilityMenuListOption::setElement(HTMLElement* element)
</span><span class="cx"> {
</span><del>-    ASSERT_ARG(element, isHTMLOptionElement(element));
</del><ins>+    ASSERT_ARG(element, is&lt;HTMLOptionElement&gt;(element));
</ins><span class="cx">     m_element = element;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityMenuListPopupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> 
</span><span class="cx"> AccessibilityMenuListOption* AccessibilityMenuListPopup::menuListOptionAccessibilityObject(HTMLElement* element) const
</span><span class="cx"> {
</span><del>-    if (!element || !isHTMLOptionElement(element) || !element-&gt;inRenderedDocument())
</del><ins>+    if (!element || !is&lt;HTMLOptionElement&gt;(element) || !element-&gt;inRenderedDocument())
</ins><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><span class="cx">     AccessibilityObject* object = document()-&gt;axObjectCache()-&gt;getOrCreate(MenuListOptionRole);
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityNodeObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -290,7 +290,7 @@
</span><span class="cx">         return StaticTextRole;
</span><span class="cx">     if (node()-&gt;hasTagName(buttonTag))
</span><span class="cx">         return buttonRoleType();
</span><del>-    if (isHTMLInputElement(node())) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node());
</span><span class="cx">         if (input.isCheckbox())
</span><span class="cx">             return CheckBoxRole;
</span><span class="lines">@@ -313,7 +313,7 @@
</span><span class="cx">         HTMLSelectElement&amp; selectElement = downcast&lt;HTMLSelectElement&gt;(*node());
</span><span class="cx">         return selectElement.multiple() ? ListBoxRole : PopUpButtonRole;
</span><span class="cx">     }
</span><del>-    if (isHTMLTextAreaElement(node()))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(node()))
</ins><span class="cx">         return TextAreaRole;
</span><span class="cx">     if (headingLevel())
</span><span class="cx">         return HeadingRole;
</span><span class="lines">@@ -465,10 +465,10 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    if (isHTMLTextAreaElement(node))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(node))
</ins><span class="cx">         return true;
</span><span class="cx"> 
</span><del>-    if (isHTMLInputElement(node)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         return input.isText() || input.isNumberField();
</span><span class="cx">     }
</span><span class="lines">@@ -518,7 +518,7 @@
</span><span class="cx">     if (node-&gt;hasTagName(appletTag) || node-&gt;hasTagName(embedTag) || node-&gt;hasTagName(objectTag))
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><del>-    if (isHTMLInputElement(node)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         return input.isImageButton();
</span><span class="cx">     }
</span><span class="lines">@@ -553,7 +553,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return false;
</span><span class="cx">  
</span><del>-    if (roleValue() == ButtonRole &amp;&amp; isHTMLInputElement(node)) {
</del><ins>+    if (roleValue() == ButtonRole &amp;&amp; is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         return input.isImageButton();
</span><span class="cx">     }
</span><span class="lines">@@ -738,10 +738,10 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><del>-    if (isHTMLTextAreaElement(node))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(node))
</ins><span class="cx">         return toHTMLFormControlElement(node)-&gt;isReadOnly();
</span><span class="cx"> 
</span><del>-    if (isHTMLInputElement(node)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         if (input.isTextField())
</span><span class="cx">             return input.isReadOnly();
</span><span class="lines">@@ -837,7 +837,7 @@
</span><span class="cx"> 
</span><span class="cx"> float AccessibilityNodeObject::valueForRange() const
</span><span class="cx"> {
</span><del>-    if (node() &amp;&amp; isHTMLInputElement(node())) {
</del><ins>+    if (node() &amp;&amp; is&lt;HTMLInputElement&gt;(node())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node());
</span><span class="cx">         if (input.isRangeControl())
</span><span class="cx">             return input.valueAsNumber();
</span><span class="lines">@@ -851,7 +851,7 @@
</span><span class="cx"> 
</span><span class="cx"> float AccessibilityNodeObject::maxValueForRange() const
</span><span class="cx"> {
</span><del>-    if (node() &amp;&amp; isHTMLInputElement(node())) {
</del><ins>+    if (node() &amp;&amp; is&lt;HTMLInputElement&gt;(node())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node());
</span><span class="cx">         if (input.isRangeControl())
</span><span class="cx">             return input.maximum();
</span><span class="lines">@@ -865,7 +865,7 @@
</span><span class="cx"> 
</span><span class="cx"> float AccessibilityNodeObject::minValueForRange() const
</span><span class="cx"> {
</span><del>-    if (node() &amp;&amp; isHTMLInputElement(node())) {
</del><ins>+    if (node() &amp;&amp; is&lt;HTMLInputElement&gt;(node())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node());
</span><span class="cx">         if (input.isRangeControl())
</span><span class="cx">             return input.minimum();
</span><span class="lines">@@ -973,7 +973,7 @@
</span><span class="cx"> 
</span><span class="cx"> static bool isNodeActionElement(Node* node)
</span><span class="cx"> {
</span><del>-    if (isHTMLInputElement(node)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         if (!input.isDisabledFormControl() &amp;&amp; (input.isRadioButton() || input.isCheckbox() || input.isTextButton() || input.isFileUpload() || input.isImageButton()))
</span><span class="cx">             return true;
</span><span class="lines">@@ -1251,7 +1251,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return;
</span><span class="cx">     
</span><del>-    bool isInputTag = isHTMLInputElement(node);
</del><ins>+    bool isInputTag = is&lt;HTMLInputElement&gt;(node);
</ins><span class="cx">     if (isInputTag || AccessibilityObject::isARIAInput(ariaRoleAttribute()) || isControl()) {
</span><span class="cx">         HTMLLabelElement* label = labelForElement(toElement(node));
</span><span class="cx">         if (label) {
</span><span class="lines">@@ -1328,7 +1328,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return;
</span><span class="cx">     
</span><del>-    bool isInputTag = isHTMLInputElement(node);
</del><ins>+    bool isInputTag = is&lt;HTMLInputElement&gt;(node);
</ins><span class="cx">     if (isInputTag) {
</span><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         if (input.isTextButton()) {
</span><span class="lines">@@ -1683,7 +1683,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    bool isInputTag = isHTMLInputElement(node);
</del><ins>+    bool isInputTag = is&lt;HTMLInputElement&gt;(node);
</ins><span class="cx">     if (isInputTag) {
</span><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         if (input.isTextButton())
</span><span class="lines">@@ -1809,7 +1809,7 @@
</span><span class="cx">     if (!isColorWell())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    if (!node() || !isHTMLInputElement(node()))
</del><ins>+    if (!node() || !is&lt;HTMLInputElement&gt;(node()))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node());
</span><span class="lines">@@ -1841,7 +1841,7 @@
</span><span class="cx">     if (!alt.isEmpty())
</span><span class="cx">         return alt;
</span><span class="cx">     
</span><del>-    if (isHTMLInputElement(node))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">         return downcast&lt;HTMLInputElement&gt;(*node).value();
</span><span class="cx">     
</span><span class="cx">     // If the node can be turned into an AX object, we can use standard name computation rules.
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -523,7 +523,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool AccessibilityRenderObject::isFileUploadButton() const
</span><span class="cx"> {
</span><del>-    if (m_renderer &amp;&amp; m_renderer-&gt;node() &amp;&amp; isHTMLInputElement(m_renderer-&gt;node())) {
</del><ins>+    if (m_renderer &amp;&amp; m_renderer-&gt;node() &amp;&amp; is&lt;HTMLInputElement&gt;(m_renderer-&gt;node())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*m_renderer-&gt;node());
</span><span class="cx">         return input.isFileUpload();
</span><span class="cx">     }
</span><span class="lines">@@ -950,7 +950,7 @@
</span><span class="cx">         return;
</span><span class="cx">     
</span><span class="cx">     Node* node = m_renderer-&gt;node();
</span><del>-    if (!node || !isHTMLInputElement(node))
</del><ins>+    if (!node || !is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">         return;
</span><span class="cx">     
</span><span class="cx">     HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="lines">@@ -968,7 +968,7 @@
</span><span class="cx">         unsigned length = list-&gt;length();
</span><span class="cx">         for (unsigned i = 0; i &lt; length; ++i) {
</span><span class="cx">             Node* item = list-&gt;item(i);
</span><del>-            if (isHTMLInputElement(item)) {
</del><ins>+            if (is&lt;HTMLInputElement&gt;(item)) {
</ins><span class="cx">                 HTMLInputElement&amp; associateElement = downcast&lt;HTMLInputElement&gt;(*item);
</span><span class="cx">                 if (associateElement.isRadioButton() &amp;&amp; associateElement.name() == input.name()) {
</span><span class="cx">                     if (AccessibilityObject* object = axObjectCache()-&gt;getOrCreate(&amp;associateElement))
</span><span class="lines">@@ -1687,9 +1687,9 @@
</span><span class="cx">     RenderBoxModelObject* renderer = toRenderBoxModelObject(m_renderer);
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Do we want to do anything here for ARIA textboxes?
</span><del>-    if (renderer-&gt;isTextField() &amp;&amp; isHTMLInputElement(element))
</del><ins>+    if (renderer-&gt;isTextField() &amp;&amp; is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         downcast&lt;HTMLInputElement&gt;(element).setValue(string);
</span><del>-    else if (renderer-&gt;isTextArea() &amp;&amp; isHTMLTextAreaElement(element))
</del><ins>+    else if (renderer-&gt;isTextArea() &amp;&amp; is&lt;HTMLTextAreaElement&gt;(element))
</ins><span class="cx">         downcast&lt;HTMLTextAreaElement&gt;(element).setValue(string);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2211,7 +2211,7 @@
</span><span class="cx">     if (isHTMLAreaElement(node))
</span><span class="cx">         return accessibilityImageMapHitTest(downcast&lt;HTMLAreaElement&gt;(node), point);
</span><span class="cx">     
</span><del>-    if (isHTMLOptionElement(node))
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(node))
</ins><span class="cx">         node = downcast&lt;HTMLOptionElement&gt;(*node).ownerSelectElement();
</span><span class="cx">     
</span><span class="cx">     RenderObject* obj = node-&gt;renderer();
</span><span class="lines">@@ -2483,7 +2483,7 @@
</span><span class="cx">     if (m_renderer-&gt;isText())
</span><span class="cx">         return StaticTextRole;
</span><span class="cx">     if (cssBox &amp;&amp; cssBox-&gt;isImage()) {
</span><del>-        if (node &amp;&amp; isHTMLInputElement(node))
</del><ins>+        if (node &amp;&amp; is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">             return ariaHasPopup() ? PopUpButtonRole : ButtonRole;
</span><span class="cx">         if (isSVGImage())
</span><span class="cx">             return SVGRootRole;
</span><span class="lines">@@ -2502,7 +2502,7 @@
</span><span class="cx">     if (cssBox &amp;&amp; cssBox-&gt;isTextArea())
</span><span class="cx">         return TextAreaRole;
</span><span class="cx"> 
</span><del>-    if (node &amp;&amp; isHTMLInputElement(node)) {
</del><ins>+    if (node &amp;&amp; is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         if (input.isCheckbox())
</span><span class="cx">             return CheckBoxRole;
</span><span class="lines">@@ -2836,7 +2836,7 @@
</span><span class="cx"> void AccessibilityRenderObject::addTextFieldChildren()
</span><span class="cx"> {
</span><span class="cx">     Node* node = this-&gt;node();
</span><del>-    if (!node || !isHTMLInputElement(node))
</del><ins>+    if (!node || !is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">         return;
</span><span class="cx">     
</span><span class="cx">     HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*node);
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityatkAXObjectCacheAtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -133,7 +133,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Only support HTML select elements so far (ARIA selectors not supported).
</span><span class="cx">     Node* node = object-&gt;node();
</span><del>-    if (!node || !isHTMLSelectElement(node))
</del><ins>+    if (!node || !is&lt;HTMLSelectElement&gt;(node))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // Emit signal from the listbox's point of view first.
</span></span></pre></div>
<a id="trunkSourceWebCorecssSelectorCheckerTestFunctionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx"> 
</span><span class="cx"> ALWAYS_INLINE bool isDisabled(const Element* element)
</span><span class="cx"> {
</span><del>-    if (element-&gt;isFormControlElement() || isHTMLOptionElement(element) || isHTMLOptGroupElement(element))
</del><ins>+    if (element-&gt;isFormControlElement() || is&lt;HTMLOptionElement&gt;(element) || is&lt;HTMLOptGroupElement&gt;(element))
</ins><span class="cx">         return element-&gt;isDisabledFormControl();
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="lines">@@ -66,10 +66,10 @@
</span><span class="cx"> ALWAYS_INLINE bool isEnabled(const Element* element)
</span><span class="cx"> {
</span><span class="cx">     bool isEnabled = false;
</span><del>-    if (element-&gt;isFormControlElement() || isHTMLOptionElement(element) || isHTMLOptGroupElement(element))
</del><ins>+    if (element-&gt;isFormControlElement() || is&lt;HTMLOptionElement&gt;(element) || is&lt;HTMLOptGroupElement&gt;(element))
</ins><span class="cx">         isEnabled = !element-&gt;isDisabledFormControl();
</span><span class="cx">     else if (element-&gt;isLink())
</span><del>-        isEnabled = isHTMLAnchorElement(element) || isHTMLAreaElement(element);
</del><ins>+        isEnabled = is&lt;HTMLAnchorElement&gt;(element) || is&lt;HTMLAreaElement&gt;(element);
</ins><span class="cx">     return isEnabled;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx">     const HTMLInputElement* inputElement = element-&gt;toInputElement();
</span><span class="cx">     if (inputElement &amp;&amp; inputElement-&gt;shouldAppearChecked() &amp;&amp; !inputElement-&gt;shouldAppearIndeterminate())
</span><span class="cx">         return true;
</span><del>-    if (isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected())
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected())
</ins><span class="cx">         return true;
</span><span class="cx">     return false;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1270,7 +1270,7 @@
</span><span class="cx">         style.setZIndex(0);
</span><span class="cx"> 
</span><span class="cx">     // Textarea considers overflow visible as auto.
</span><del>-    if (e &amp;&amp; isHTMLTextAreaElement(e)) {
</del><ins>+    if (e &amp;&amp; is&lt;HTMLTextAreaElement&gt;(e)) {
</ins><span class="cx">         style.setOverflowX(style.overflowX() == OVISIBLE ? OAUTO : style.overflowX());
</span><span class="cx">         style.setOverflowY(style.overflowY() == OVISIBLE ? OAUTO : style.overflowY());
</span><span class="cx">     }
</span><span class="lines">@@ -1338,7 +1338,7 @@
</span><span class="cx">     if (e &amp;&amp; e-&gt;isFormControlElement() &amp;&amp; style.fontSize() &gt;= 11) {
</span><span class="cx">         // Don't apply intrinsic margins to image buttons. The designer knows how big the images are,
</span><span class="cx">         // so we have to treat all image buttons as though they were explicitly sized.
</span><del>-        if (!isHTMLInputElement(e) || !downcast&lt;HTMLInputElement&gt;(*e).isImageButton())
</del><ins>+        if (!is&lt;HTMLInputElement&gt;(e) || !downcast&lt;HTMLInputElement&gt;(*e).isImageButton())
</ins><span class="cx">             addIntrinsicMargins(style);
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventDispatchercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/EventDispatcher.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/EventDispatcher.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/dom/EventDispatcher.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -356,7 +356,7 @@
</span><span class="cx">     WindowEventContext windowEventContext(node.get(), eventPath.lastContextIfExists());
</span><span class="cx"> 
</span><span class="cx">     InputElementClickState clickHandlingState;
</span><del>-    if (isHTMLInputElement(node.get()))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node.get()))
</ins><span class="cx">         downcast&lt;HTMLInputElement&gt;(*node).willDispatchEvent(*event, clickHandlingState);
</span><span class="cx"> 
</span><span class="cx">     if (!event-&gt;propagationStopped() &amp;&amp; !eventPath.isEmpty())
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingFrameSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/FrameSelection.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/FrameSelection.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/FrameSelection.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1670,7 +1670,7 @@
</span><span class="cx">     Document* document = m_frame-&gt;document();
</span><span class="cx"> 
</span><span class="cx">     Element* focusedElement = document-&gt;focusedElement();
</span><del>-    if (focusedElement &amp;&amp; isHTMLSelectElement(focusedElement)) {
</del><ins>+    if (focusedElement &amp;&amp; is&lt;HTMLSelectElement&gt;(focusedElement)) {
</ins><span class="cx">         HTMLSelectElement&amp; selectElement = downcast&lt;HTMLSelectElement&gt;(*focusedElement);
</span><span class="cx">         if (selectElement.canSelectAll()) {
</span><span class="cx">             selectElement.selectAll();
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingReplaceSelectionCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1273,7 +1273,7 @@
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     Element* textControl = enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent());
</span><del>-    if (textControl &amp;&amp; isHTMLInputElement(textControl) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*textControl).isPasswordField())
</del><ins>+    if (textControl &amp;&amp; is&lt;HTMLInputElement&gt;(textControl) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*textControl).isPasswordField())
</ins><span class="cx">         return false; // Disable smart replace for password fields.
</span><span class="cx"> 
</span><span class="cx">     return true;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisibleSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisibleSelection.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisibleSelection.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/VisibleSelection.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -664,7 +664,7 @@
</span><span class="cx"> bool VisibleSelection::isInPasswordField() const
</span><span class="cx"> {
</span><span class="cx">     HTMLTextFormControlElement* textControl = enclosingTextFormControl(start());
</span><del>-    return textControl &amp;&amp; isHTMLInputElement(textControl) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*textControl).isPasswordField();
</del><ins>+    return textControl &amp;&amp; is&lt;HTMLInputElement&gt;(textControl) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*textControl).isPasswordField();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #ifndef NDEBUG
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingcocoaHTMLConvertermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -2042,7 +2042,7 @@
</span><span class="cx">     } else if (element.hasTagName(qTag)) {
</span><span class="cx">         _addQuoteForElement(element, YES, _quoteLevel++);
</span><span class="cx">     } else if (element.hasTagName(inputTag)) {
</span><del>-        if (isHTMLInputElement(element)) {
</del><ins>+        if (is&lt;HTMLInputElement&gt;(element)) {
</ins><span class="cx">             HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(element);
</span><span class="cx">             if (inputElement.type() == &quot;text&quot;) {
</span><span class="cx">                 NSString *value = inputElement.value();
</span><span class="lines">@@ -2051,7 +2051,7 @@
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     } else if (element.hasTagName(textareaTag)) {
</span><del>-        if (isHTMLTextAreaElement(element)) {
</del><ins>+        if (is&lt;HTMLTextAreaElement&gt;(element)) {
</ins><span class="cx">             HTMLTextAreaElement&amp; textAreaElement = downcast&lt;HTMLTextAreaElement&gt;(element);
</span><span class="cx">             NSString *value = textAreaElement.value();
</span><span class="cx">             if (value &amp;&amp; [value length] &gt; 0)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditinggtkEditorGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/gtk/EditorGtk.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/gtk/EditorGtk.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/gtk/EditorGtk.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -82,11 +82,11 @@
</span><span class="cx"> 
</span><span class="cx"> static const AtomicString&amp; elementURL(Element&amp; element)
</span><span class="cx"> {
</span><del>-    if (isHTMLImageElement(element) || isHTMLInputElement(element))
</del><ins>+    if (is&lt;HTMLImageElement&gt;(element) || is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return element.fastGetAttribute(HTMLNames::srcAttr);
</span><span class="cx">     if (is&lt;SVGImageElement&gt;(element))
</span><span class="cx">         return element.fastGetAttribute(XLinkNames::hrefAttr);
</span><del>-    if (isHTMLEmbedElement(element) || isHTMLObjectElement(element))
</del><ins>+    if (is&lt;HTMLEmbedElement&gt;(element) || is&lt;HTMLObjectElement&gt;(element))
</ins><span class="cx">         return element.imageSourceURL();
</span><span class="cx">     return nullAtom;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingiosEditorIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ios/EditorIOS.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ios/EditorIOS.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/ios/EditorIOS.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -181,7 +181,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     Element* focusedElement = m_frame.document()-&gt;focusedElement();
</span><del>-    if (focusedElement &amp;&amp; (isHTMLTextAreaElement(focusedElement) || (isHTMLInputElement(focusedElement)
</del><ins>+    if (focusedElement &amp;&amp; (is&lt;HTMLTextAreaElement&gt;(focusedElement) || (is&lt;HTMLInputElement&gt;(focusedElement)
</ins><span class="cx">         &amp;&amp; (downcast&lt;HTMLInputElement&gt;(*focusedElement).isTextField()
</span><span class="cx">             || downcast&lt;HTMLInputElement&gt;(*focusedElement).isSearchField())))) {
</span><span class="cx">         if (direction == NaturalWritingDirection)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmarkupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/markup.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/markup.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/editing/markup.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -234,7 +234,7 @@
</span><span class="cx"> 
</span><span class="cx"> void StyledMarkupAccumulator::appendText(StringBuilder&amp; out, const Text&amp; text)
</span><span class="cx"> {    
</span><del>-    const bool parentIsTextarea = text.parentElement() &amp;&amp; isHTMLTextAreaElement(text.parentElement());
</del><ins>+    const bool parentIsTextarea = text.parentElement() &amp;&amp; is&lt;HTMLTextAreaElement&gt;(text.parentElement());
</ins><span class="cx">     const bool wrappingSpan = shouldApplyWrappingStyle(text) &amp;&amp; !parentIsTextarea;
</span><span class="cx">     if (wrappingSpan) {
</span><span class="cx">         RefPtr&lt;EditingStyle&gt; wrappingStyle = m_wrappingStyle-&gt;copy();
</span><span class="lines">@@ -743,7 +743,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool isPlainTextMarkup(Node* node)
</span><span class="cx"> {
</span><del>-    if (!isHTMLDivElement(node))
</del><ins>+    if (!is&lt;HTMLDivElement&gt;(node))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     HTMLDivElement&amp; element = downcast&lt;HTMLDivElement&gt;(*node);
</span><span class="lines">@@ -929,7 +929,7 @@
</span><span class="cx"> {
</span><span class="cx">     Vector&lt;Ref&lt;HTMLElement&gt;&gt; toRemove;
</span><span class="cx">     for (auto&amp; element : childrenOfType&lt;HTMLElement&gt;(container)) {
</span><del>-        if (isHTMLHtmlElement(element)) {
</del><ins>+        if (is&lt;HTMLHtmlElement&gt;(element)) {
</ins><span class="cx">             toRemove.append(element);
</span><span class="cx">             collectElementsToRemoveFromFragment(element);
</span><span class="cx">             continue;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLCollection.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLCollection.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLCollection.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -191,9 +191,9 @@
</span><span class="cx">     case SelectOptions:
</span><span class="cx">         return element.hasTagName(optionTag);
</span><span class="cx">     case SelectedOptions:
</span><del>-        return isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element).selected();
</del><ins>+        return is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element).selected();
</ins><span class="cx">     case DataListOptions:
</span><del>-        if (isHTMLOptionElement(element)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element)) {
</ins><span class="cx">             HTMLOptionElement&amp; option = downcast&lt;HTMLOptionElement&gt;(element);
</span><span class="cx">             if (!option.isDisabledFormControl() &amp;&amp; !option.value().isEmpty())
</span><span class="cx">                 return true;
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx">     case MapAreas:
</span><span class="cx">         return element.hasTagName(areaTag);
</span><span class="cx">     case DocApplets:
</span><del>-        return element.hasTagName(appletTag) || (isHTMLObjectElement(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).containsJavaApplet());
</del><ins>+        return is&lt;HTMLAppletElement&gt;(element) || (is&lt;HTMLObjectElement&gt;(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).containsJavaApplet());
</ins><span class="cx">     case DocEmbeds:
</span><span class="cx">         return element.hasTagName(embedTag);
</span><span class="cx">     case DocLinks:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLEmbedElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLEmbedElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLEmbedElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLEmbedElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -189,7 +189,7 @@
</span><span class="cx">     // If my parent is an &lt;object&gt; and is not set to use fallback content, I
</span><span class="cx">     // should be ignored and not get a renderer.
</span><span class="cx">     ContainerNode* parent = parentNode();
</span><del>-    if (parent &amp;&amp; isHTMLObjectElement(parent)) {
</del><ins>+    if (parent &amp;&amp; is&lt;HTMLObjectElement&gt;(parent)) {
</ins><span class="cx">         if (!parent-&gt;renderer())
</span><span class="cx">             return false;
</span><span class="cx">         if (!downcast&lt;HTMLObjectElement&gt;(*parent).useFallbackContent()) {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormControlElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormControlElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -192,7 +192,7 @@
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Should this set of hasTagName checks be replaced by a
</span><span class="cx">     // virtual member function?
</span><del>-    if (isHTMLInputElement(element))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return !downcast&lt;HTMLInputElement&gt;(*element).isInputTypeHidden();
</span><span class="cx">     if (element-&gt;hasTagName(selectTag))
</span><span class="cx">         return true;
</span><span class="lines">@@ -200,7 +200,7 @@
</span><span class="cx">         return true;
</span><span class="cx">     if (element-&gt;hasTagName(buttonTag))
</span><span class="cx">         return true;
</span><del>-    if (isHTMLTextAreaElement(element))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(element))
</ins><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     return false;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLFormElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -316,7 +316,7 @@
</span><span class="cx">     for (unsigned i = 0; i &lt; m_associatedElements.size(); ++i) {
</span><span class="cx">         FormAssociatedElement&amp; control = *m_associatedElements[i];
</span><span class="cx">         HTMLElement&amp; element = control.asHTMLElement();
</span><del>-        if (!isHTMLInputElement(element))
</del><ins>+        if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">             continue;
</span><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(element);
</span><span class="cx">         if (!input.isTextField())
</span><span class="lines">@@ -592,7 +592,7 @@
</span><span class="cx">     for (auto&amp; element : descendants) {
</span><span class="cx">         if (&amp;element == &amp;associatedHTMLElement)
</span><span class="cx">             return i;
</span><del>-        if (!isHTMLFormControlElement(element) &amp;&amp; !isHTMLObjectElement(element))
</del><ins>+        if (!isHTMLFormControlElement(element) &amp;&amp; !is&lt;HTMLObjectElement&gt;(element))
</ins><span class="cx">             continue;
</span><span class="cx">         if (element.form() != this)
</span><span class="cx">             continue;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageLoader.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageLoader.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLImageLoader.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx">     bool errorOccurred = image()-&gt;errorOccurred();
</span><span class="cx">     if (!errorOccurred &amp;&amp; image()-&gt;response().httpStatusCode() &gt;= 400)
</span><del>-        errorOccurred = isHTMLObjectElement(element()); // An &lt;object&gt; considers a 404 to be an error and should fire onerror.
</del><ins>+        errorOccurred = is&lt;HTMLObjectElement&gt;(element()); // An &lt;object&gt; considers a 404 to be an error and should fire onerror.
</ins><span class="cx">     element().dispatchEvent(Event::create(errorOccurred ? eventNames().errorEvent : eventNames().loadEvent, false, false));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (loadError &amp;&amp; isHTMLObjectElement(element()))
</del><ins>+    if (loadError &amp;&amp; is&lt;HTMLObjectElement&gt;(element()))
</ins><span class="cx">         downcast&lt;HTMLObjectElement&gt;(element()).renderFallbackContent();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLNameCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLNameCollection.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLNameCollection.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLNameCollection.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -66,15 +66,15 @@
</span><span class="cx"> bool DocumentNameCollection::elementMatchesIfIdAttributeMatch(const Element&amp; element)
</span><span class="cx"> {
</span><span class="cx">     // FIXME: we need to fix HTMLImageElement to update the hash map for us when name attribute has been removed.
</span><del>-    return element.hasTagName(appletTag) || (isHTMLObjectElement(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).isDocNamedItem())
-        || (isHTMLImageElement(element) &amp;&amp; element.hasName());
</del><ins>+    return is&lt;HTMLAppletElement&gt;(element) || (is&lt;HTMLObjectElement&gt;(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).isDocNamedItem())
+        || (is&lt;HTMLImageElement&gt;(element) &amp;&amp; element.hasName());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DocumentNameCollection::elementMatchesIfNameAttributeMatch(const Element&amp; element)
</span><span class="cx"> {
</span><del>-    return isHTMLFormElement(element) || element.hasTagName(embedTag) || element.hasTagName(iframeTag)
-        || element.hasTagName(appletTag) || (isHTMLObjectElement(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).isDocNamedItem())
-        || isHTMLImageElement(element);
</del><ins>+    return is&lt;HTMLFormElement&gt;(element) || is&lt;HTMLEmbedElement&gt;(element) || is&lt;HTMLIFrameElement&gt;(element)
+        || is&lt;HTMLAppletElement&gt;(element) || (is&lt;HTMLObjectElement&gt;(element) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).isDocNamedItem())
+        || is&lt;HTMLImageElement&gt;(element);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DocumentNameCollection::elementMatches(const Element&amp; element, const AtomicStringImpl* name)
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">         return element.getNameAttribute().impl() == name;
</span><span class="cx">     if (element.hasTagName(appletTag))
</span><span class="cx">         return element.getNameAttribute().impl() == name || element.getIdAttribute().impl() == name;
</span><del>-    if (isHTMLObjectElement(element))
</del><ins>+    if (is&lt;HTMLObjectElement&gt;(element))
</ins><span class="cx">         return (element.getNameAttribute().impl() == name || element.getIdAttribute().impl() == name) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(element).isDocNamedItem();
</span><span class="cx">     if (isHTMLImageElement(element))
</span><span class="cx">         return element.getNameAttribute().impl() == name || (element.getIdAttribute().impl() == name &amp;&amp; element.hasName());
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOptGroupElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOptGroupElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOptGroupElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLOptGroupElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> void HTMLOptGroupElement::recalcSelectOptions()
</span><span class="cx"> {
</span><span class="cx">     ContainerNode* select = parentNode();
</span><del>-    while (select &amp;&amp; !isHTMLSelectElement(select))
</del><ins>+    while (select &amp;&amp; !is&lt;HTMLSelectElement&gt;(select))
</ins><span class="cx">         select = select-&gt;parentNode();
</span><span class="cx">     if (select)
</span><span class="cx">         downcast&lt;HTMLSelectElement&gt;(*select).setRecalcListItems();
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> HTMLSelectElement* HTMLOptGroupElement::ownerSelectElement() const
</span><span class="cx"> {
</span><span class="cx">     ContainerNode* select = parentNode();
</span><del>-    while (select &amp;&amp; !isHTMLSelectElement(select))
</del><ins>+    while (select &amp;&amp; !is&lt;HTMLSelectElement&gt;(select))
</ins><span class="cx">         select = select-&gt;parentNode();
</span><span class="cx">     
</span><span class="cx">     if (!select)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOptionElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOptionElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOptionElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLOptionElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -160,7 +160,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = selectElement-&gt;listItems();
</span><span class="cx">     size_t length = items.size();
</span><span class="cx">     for (size_t i = 0; i &lt; length; ++i) {
</span><del>-        if (!isHTMLOptionElement(items[i]))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             continue;
</span><span class="cx">         if (items[i] == this)
</span><span class="cx">             return optionIndex;
</span><span class="lines">@@ -267,7 +267,7 @@
</span><span class="cx"> HTMLSelectElement* HTMLOptionElement::ownerSelectElement() const
</span><span class="cx"> {
</span><span class="cx">     ContainerNode* select = parentNode();
</span><del>-    while (select &amp;&amp; !isHTMLSelectElement(select))
</del><ins>+    while (select &amp;&amp; !is&lt;HTMLSelectElement&gt;(select))
</ins><span class="cx">         select = select-&gt;parentNode();
</span><span class="cx"> 
</span><span class="cx">     if (!select)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLSelectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLSelectElement.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLSelectElement.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLSelectElement.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLSelectElement::add(HTMLElement* element, HTMLElement* before, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    if (!element || !(isHTMLOptionElement(*element) || element-&gt;hasTagName(hrTag)))
</del><ins>+    if (!element || !(is&lt;HTMLOptionElement&gt;(*element) || element-&gt;hasTagName(hrTag)))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     // Make sure the element is ref'd and deref'd so we don't leak it.
</span><span class="lines">@@ -250,7 +250,7 @@
</span><span class="cx"> String HTMLSelectElement::value() const
</span><span class="cx"> {
</span><span class="cx">     for (auto* item : listItems()) {
</span><del>-        if (isHTMLOptionElement(*item)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(*item)) {
</ins><span class="cx">             HTMLOptionElement&amp; option = downcast&lt;HTMLOptionElement&gt;(*item);
</span><span class="cx">             if (option.selected())
</span><span class="cx">                 return option.value();
</span><span class="lines">@@ -270,7 +270,7 @@
</span><span class="cx">     // Find the option with value() matching the given parameter and make it the current selection.
</span><span class="cx">     unsigned optionIndex = 0;
</span><span class="cx">     for (auto* item : listItems()) {
</span><del>-        if (isHTMLOptionElement(*item)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(*item)) {
</ins><span class="cx">             if (downcast&lt;HTMLOptionElement&gt;(*item).value() == value) {
</span><span class="cx">                 setSelectedIndex(optionIndex);
</span><span class="cx">                 return;
</span><span class="lines">@@ -363,7 +363,7 @@
</span><span class="cx">         return false;
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx">     if (!usesMenuList())
</span><del>-        return isHTMLOptionElement(child) || isHTMLOptGroupElement(child) || validationMessageShadowTreeContains(child);
</del><ins>+        return is&lt;HTMLOptionElement&gt;(child) || is&lt;HTMLOptGroupElement&gt;(child) || validationMessageShadowTreeContains(child);
</ins><span class="cx"> #endif
</span><span class="cx">     return validationMessageShadowTreeContains(child);
</span><span class="cx"> }
</span><span class="lines">@@ -483,7 +483,7 @@
</span><span class="cx">         Vector&lt;RefPtr&lt;Element&gt;&gt; itemsToRemove;
</span><span class="cx">         size_t optionIndex = 0;
</span><span class="cx">         for (auto&amp; item : items) {
</span><del>-            if (isHTMLOptionElement(*item) &amp;&amp; optionIndex++ &gt;= newLen) {
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(*item) &amp;&amp; optionIndex++ &gt;= newLen) {
</ins><span class="cx">                 ASSERT(item-&gt;parentNode());
</span><span class="cx">                 itemsToRemove.append(item);
</span><span class="cx">             }
</span><span class="lines">@@ -521,7 +521,7 @@
</span><span class="cx">     int size = listItems.size();
</span><span class="cx">     for (listIndex += direction; listIndex &gt;= 0 &amp;&amp; listIndex &lt; size; listIndex += direction) {
</span><span class="cx">         --skip;
</span><del>-        if (!listItems[listIndex]-&gt;isDisabledFormControl() &amp;&amp; isHTMLOptionElement(listItems[listIndex])) {
</del><ins>+        if (!listItems[listIndex]-&gt;isDisabledFormControl() &amp;&amp; is&lt;HTMLOptionElement&gt;(listItems[listIndex])) {
</ins><span class="cx">             lastGoodIndex = listIndex;
</span><span class="cx">             if (skip &lt;= 0)
</span><span class="cx">                 break;
</span><span class="lines">@@ -605,7 +605,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        m_lastOnChangeSelection.append(isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element)-&gt;selected());
</del><ins>+        m_lastOnChangeSelection.append(is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element)-&gt;selected());
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -620,7 +620,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        m_cachedStateForActiveSelection.append(isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element)-&gt;selected());
</del><ins>+        m_cachedStateForActiveSelection.append(is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(element)-&gt;selected());
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -644,7 +644,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        if (!isHTMLOptionElement(element) || downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl())
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(element) || downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl())
</ins><span class="cx">             continue;
</span><span class="cx"> 
</span><span class="cx">         if (i &gt;= start &amp;&amp; i &lt;= end)
</span><span class="lines">@@ -676,7 +676,7 @@
</span><span class="cx">     bool fireOnChange = false;
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        bool selected = isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected();
</del><ins>+        bool selected = is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected();
</ins><span class="cx">         if (selected != m_lastOnChangeSelection[i])
</span><span class="cx">             fireOnChange = true;
</span><span class="cx">         m_lastOnChangeSelection[i] = selected;
</span><span class="lines">@@ -798,7 +798,7 @@
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if (isHTMLOptionElement(current)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(current)) {
</ins><span class="cx">             m_listItems.append(current);
</span><span class="cx"> 
</span><span class="cx">             if (updateSelectedStates &amp;&amp; !m_multiple) {
</span><span class="lines">@@ -840,7 +840,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (size_t i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        if (isHTMLOptionElement(element)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element)) {
</ins><span class="cx">             if (downcast&lt;HTMLOptionElement&gt;(*element).selected())
</span><span class="cx">                 return index;
</span><span class="cx">             ++index;
</span><span class="lines">@@ -876,7 +876,7 @@
</span><span class="cx">     HTMLElement* element = nullptr;
</span><span class="cx">     if (listIndex &gt;= 0) {
</span><span class="cx">         element = items[listIndex];
</span><del>-        if (isHTMLOptionElement(element)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element)) {
</ins><span class="cx">             if (m_activeSelectionAnchorIndex &lt; 0 || shouldDeselect)
</span><span class="cx">                 setActiveSelectionAnchorIndex(listIndex);
</span><span class="cx">             if (m_activeSelectionEndIndex &lt; 0 || shouldDeselect)
</span><span class="lines">@@ -918,7 +918,7 @@
</span><span class="cx"> 
</span><span class="cx">     int optionIndex2 = -1;
</span><span class="cx">     for (int listIndex = 0; listIndex &lt; listSize; ++listIndex) {
</span><del>-        if (isHTMLOptionElement(items[listIndex])) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(items[listIndex])) {
</ins><span class="cx">             ++optionIndex2;
</span><span class="cx">             if (optionIndex2 == optionIndex)
</span><span class="cx">                 return listIndex;
</span><span class="lines">@@ -931,13 +931,13 @@
</span><span class="cx"> int HTMLSelectElement::listToOptionIndex(int listIndex) const
</span><span class="cx"> {
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><del>-    if (listIndex &lt; 0 || listIndex &gt;= static_cast&lt;int&gt;(items.size()) || !isHTMLOptionElement(items[listIndex]))
</del><ins>+    if (listIndex &lt; 0 || listIndex &gt;= static_cast&lt;int&gt;(items.size()) || !is&lt;HTMLOptionElement&gt;(items[listIndex]))
</ins><span class="cx">         return -1;
</span><span class="cx"> 
</span><span class="cx">     // Actual index of option not counting OPTGROUP entries that may be in list.
</span><span class="cx">     int optionIndex = 0;
</span><span class="cx">     for (int i = 0; i &lt; listIndex; ++i) {
</span><del>-        if (isHTMLOptionElement(items[i]))
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             ++optionIndex;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -968,7 +968,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        if (element != excludeElement &amp;&amp; isHTMLOptionElement(element))
</del><ins>+        if (element != excludeElement &amp;&amp; is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">             downcast&lt;HTMLOptionElement&gt;(*element).setSelectedState(false);
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -979,7 +979,7 @@
</span><span class="cx">     size_t length = items.size();
</span><span class="cx">     FormControlState state;
</span><span class="cx">     for (unsigned i = 0; i &lt; length; ++i) {
</span><del>-        if (!isHTMLOptionElement(items[i]))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             continue;
</span><span class="cx">         HTMLOptionElement&amp; option = downcast&lt;HTMLOptionElement&gt;(*items[i]);
</span><span class="cx">         if (!option.selected())
</span><span class="lines">@@ -996,7 +996,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     size_t loopEndIndex = std::min(items.size(), listIndexEnd);
</span><span class="cx">     for (size_t i = listIndexStart; i &lt; loopEndIndex; ++i) {
</span><del>-        if (!isHTMLOptionElement(items[i]))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             continue;
</span><span class="cx">         if (downcast&lt;HTMLOptionElement&gt;(*items[i]).value() == value)
</span><span class="cx">             return i;
</span><span class="lines">@@ -1014,7 +1014,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     for (size_t i = 0; i &lt; itemsSize; ++i) {
</span><del>-        if (!isHTMLOptionElement(items[i]))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             continue;
</span><span class="cx">         downcast&lt;HTMLOptionElement&gt;(*items[i]).setSelectedState(false);
</span><span class="cx">     }
</span><span class="lines">@@ -1061,7 +1061,7 @@
</span><span class="cx"> 
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        if (isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected() &amp;&amp; !downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl()) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected() &amp;&amp; !downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl()) {
</ins><span class="cx">             list.appendData(name, downcast&lt;HTMLOptionElement&gt;(*element).value());
</span><span class="cx">             successful = true;
</span><span class="cx">         }
</span><span class="lines">@@ -1081,7 +1081,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><span class="cx">         HTMLElement* element = items[i];
</span><del>-        if (!isHTMLOptionElement(element))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">             continue;
</span><span class="cx"> 
</span><span class="cx">         HTMLOptionElement&amp; option = downcast&lt;HTMLOptionElement&gt;(*element);
</span><span class="lines">@@ -1297,7 +1297,7 @@
</span><span class="cx">     bool multiSelect = m_multiple &amp;&amp; multi &amp;&amp; !shift;
</span><span class="cx"> 
</span><span class="cx">     HTMLElement* clickedElement = listItems()[listIndex];
</span><del>-    if (isHTMLOptionElement(clickedElement)) {
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(clickedElement)) {
</ins><span class="cx">         // Keep track of whether an active selection (like during drag
</span><span class="cx">         // selection), should select or deselect.
</span><span class="cx">         if (downcast&lt;HTMLOptionElement&gt;(*clickedElement).selected() &amp;&amp; multiSelect)
</span><span class="lines">@@ -1318,7 +1318,7 @@
</span><span class="cx">         setActiveSelectionAnchorIndex(selectedIndex());
</span><span class="cx"> 
</span><span class="cx">     // Set the selection state of the clicked option.
</span><del>-    if (isHTMLOptionElement(clickedElement) &amp;&amp; !downcast&lt;HTMLOptionElement&gt;(*clickedElement).isDisabledFormControl())
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(clickedElement) &amp;&amp; !downcast&lt;HTMLOptionElement&gt;(*clickedElement).isDisabledFormControl())
</ins><span class="cx">         downcast&lt;HTMLOptionElement&gt;(*clickedElement).setSelectedState(true);
</span><span class="cx"> 
</span><span class="cx">     // If there was no selectedIndex() for the previous initialization, or If
</span><span class="lines">@@ -1494,7 +1494,7 @@
</span><span class="cx">             m_activeSelectionState = !m_activeSelectionState;
</span><span class="cx">             ASSERT(m_activeSelectionEndIndex &gt;= 0);
</span><span class="cx">             ASSERT(m_activeSelectionEndIndex &lt; static_cast&lt;int&gt;(listItems.size()));
</span><del>-            ASSERT(isHTMLOptionElement(*listItems[m_activeSelectionEndIndex]));
</del><ins>+            ASSERT(is&lt;HTMLOptionElement&gt;(*listItems[m_activeSelectionEndIndex]));
</ins><span class="cx">             updateSelectedState(m_activeSelectionEndIndex, true /*multi*/, false /*shift*/);
</span><span class="cx">             listBoxOnChange();
</span><span class="cx">             event-&gt;setDefaultHandled();
</span><span class="lines">@@ -1539,7 +1539,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (size_t i = items.size(); i;) {
</span><span class="cx">         HTMLElement* element = items[--i];
</span><del>-        if (isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected())
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected())
</ins><span class="cx">             return i;
</span><span class="cx">     }
</span><span class="cx">     return -1;
</span><span class="lines">@@ -1560,7 +1560,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     
</span><span class="cx">     HTMLElement* element = items[index];
</span><del>-    if (!isHTMLOptionElement(element) || downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl())
</del><ins>+    if (!is&lt;HTMLOptionElement&gt;(element) || downcast&lt;HTMLOptionElement&gt;(*element).isDisabledFormControl())
</ins><span class="cx">         return String();
</span><span class="cx">     return downcast&lt;HTMLOptionElement&gt;(*element).textIndentedToRespectGroupLabel();
</span><span class="cx"> }
</span><span class="lines">@@ -1596,7 +1596,7 @@
</span><span class="cx">     int listIndex = optionToListIndex(index);
</span><span class="cx">     if (listIndex &gt;= 0) {
</span><span class="cx">         HTMLElement* element = items[listIndex];
</span><del>-        if (isHTMLOptionElement(element)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element)) {
</ins><span class="cx">             if (downcast&lt;HTMLOptionElement&gt;(*element).selected())
</span><span class="cx">                 downcast&lt;HTMLOptionElement&gt;(*element).setSelectedState(false);
</span><span class="cx">             else
</span><span class="lines">@@ -1618,7 +1618,7 @@
</span><span class="cx"> 
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; items = listItems();
</span><span class="cx">     for (unsigned i = 0; i &lt; items.size(); ++i) {
</span><del>-        if (isHTMLOptionElement(items[i]))
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(items[i]))
</ins><span class="cx">             ++options;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTagNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTagNames.in (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTagNames.in        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/HTMLTagNames.in        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx"> blockquote interfaceName=HTMLQuoteElement
</span><span class="cx"> body generateTypeHelpers
</span><span class="cx"> br interfaceName=HTMLBRElement
</span><del>-button constructorNeedsFormElement
</del><ins>+button constructorNeedsFormElement, generateTypeHelpers
</ins><span class="cx"> canvas generateTypeHelpers
</span><span class="cx"> caption interfaceName=HTMLTableCaptionElement, generateTypeHelpers
</span><span class="cx"> center interfaceName=HTMLElement
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlRadioInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/RadioInputType.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/RadioInputType.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/RadioInputType.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">         if (isHTMLFormElement(node))
</span><span class="cx">             break;
</span><span class="cx">         // Look for more radio buttons.
</span><del>-        if (!isHTMLInputElement(node))
</del><ins>+        if (!is&lt;HTMLInputElement&gt;(node))
</ins><span class="cx">             continue;
</span><span class="cx">         RefPtr&lt;HTMLInputElement&gt; inputElement = downcast&lt;HTMLInputElement&gt;(node);
</span><span class="cx">         if (inputElement-&gt;form() != element().form())
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx">     // Never allow keyboard tabbing to leave you in the same radio group.  Always
</span><span class="cx">     // skip any other elements in the group.
</span><span class="cx">     Element* currentFocusedNode = element().document().focusedElement();
</span><del>-    if (currentFocusedNode &amp;&amp; isHTMLInputElement(currentFocusedNode)) {
</del><ins>+    if (currentFocusedNode &amp;&amp; is&lt;HTMLInputElement&gt;(currentFocusedNode)) {
</ins><span class="cx">         HTMLInputElement&amp; focusedInput = downcast&lt;HTMLInputElement&gt;(*currentFocusedNode);
</span><span class="cx">         if (focusedInput.isRadioButton() &amp;&amp; focusedInput.form() == element().form() &amp;&amp; focusedInput.name() == element().name())
</span><span class="cx">             return false;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLConstructionSitecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">     return item-&gt;hasTagName(ddTag)
</span><span class="cx">         || item-&gt;hasTagName(dtTag)
</span><span class="cx">         || item-&gt;hasTagName(liTag)
</span><del>-        || isHTMLOptionElement(item-&gt;node())
</del><ins>+        || is&lt;HTMLOptionElement&gt;(item-&gt;node())
</ins><span class="cx">         || isHTMLOptGroupElement(item-&gt;node())
</span><span class="cx">         || item-&gt;hasTagName(pTag)
</span><span class="cx">         || item-&gt;hasTagName(rbTag)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLElementStackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLElementStack.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx"> 
</span><span class="cx"> inline bool isSelectScopeMarker(HTMLStackItem* item)
</span><span class="cx"> {
</span><del>-    return !isHTMLOptGroupElement(item-&gt;node()) &amp;&amp; !isHTMLOptionElement(item-&gt;node());
</del><ins>+    return !is&lt;HTMLOptGroupElement&gt;(item-&gt;node()) &amp;&amp; !is&lt;HTMLOptionElement&gt;(item-&gt;node());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLTreeBuildercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -868,7 +868,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     if (token-&gt;name() == optgroupTag || token-&gt;name() == optionTag) {
</span><del>-        if (isHTMLOptionElement(m_tree.currentStackItem()-&gt;node())) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(m_tree.currentStackItem()-&gt;node())) {
</ins><span class="cx">             AtomicHTMLToken endOption(HTMLToken::EndTag, optionTag.localName());
</span><span class="cx">             processEndTag(&amp;endOption);
</span><span class="cx">         }
</span><span class="lines">@@ -1359,7 +1359,7 @@
</span><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         if (token-&gt;name() == optionTag) {
</span><del>-            if (isHTMLOptionElement(m_tree.currentStackItem()-&gt;node())) {
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(m_tree.currentStackItem()-&gt;node())) {
</ins><span class="cx">                 AtomicHTMLToken endOption(HTMLToken::EndTag, optionTag.localName());
</span><span class="cx">                 processEndTag(&amp;endOption);
</span><span class="cx">             }
</span><span class="lines">@@ -1367,7 +1367,7 @@
</span><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         if (token-&gt;name() == optgroupTag) {
</span><del>-            if (isHTMLOptionElement(m_tree.currentStackItem()-&gt;node())) {
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(m_tree.currentStackItem()-&gt;node())) {
</ins><span class="cx">                 AtomicHTMLToken endOption(HTMLToken::EndTag, optionTag.localName());
</span><span class="cx">                 processEndTag(&amp;endOption);
</span><span class="cx">             }
</span><span class="lines">@@ -2233,7 +2233,7 @@
</span><span class="cx">     case InsertionMode::InSelect:
</span><span class="cx">         ASSERT(insertionMode() == InsertionMode::InSelect || insertionMode() == InsertionMode::InSelectInTable);
</span><span class="cx">         if (token-&gt;name() == optgroupTag) {
</span><del>-            if (isHTMLOptionElement(m_tree.currentStackItem()-&gt;node()) &amp;&amp; m_tree.oneBelowTop() &amp;&amp; isHTMLOptGroupElement(m_tree.oneBelowTop()-&gt;node()))
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(m_tree.currentStackItem()-&gt;node()) &amp;&amp; m_tree.oneBelowTop() &amp;&amp; isHTMLOptGroupElement(m_tree.oneBelowTop()-&gt;node()))
</ins><span class="cx">                 processFakeEndTag(optionTag);
</span><span class="cx">             if (isHTMLOptGroupElement(m_tree.currentStackItem()-&gt;node())) {
</span><span class="cx">                 m_tree.openElements()-&gt;pop();
</span><span class="lines">@@ -2243,7 +2243,7 @@
</span><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         if (token-&gt;name() == optionTag) {
</span><del>-            if (isHTMLOptionElement(m_tree.currentStackItem()-&gt;node())) {
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(m_tree.currentStackItem()-&gt;node())) {
</ins><span class="cx">                 m_tree.openElements()-&gt;pop();
</span><span class="cx">                 return;
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlshadowMediaControlElementTypescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT_WITH_SECURITY_IMPLICATION(node-&gt;isMediaControlElement());
</span><span class="cx">     HTMLElement* element = toHTMLElement(node);
</span><del>-    if (isHTMLInputElement(element))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return static_cast&lt;MediaControlInputElement*&gt;(element)-&gt;displayType();
</span><span class="cx">     return static_cast&lt;MediaControlDivElement*&gt;(element)-&gt;displayType();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFormSubmissioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FormSubmission.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FormSubmission.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/loader/FormSubmission.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -189,7 +189,7 @@
</span><span class="cx">         HTMLElement&amp; element = control.asHTMLElement();
</span><span class="cx">         if (!element.isDisabledFormControl())
</span><span class="cx">             control.appendFormData(*domFormData, isMultiPartForm);
</span><del>-        if (isHTMLInputElement(element)) {
</del><ins>+        if (is&lt;HTMLInputElement&gt;(element)) {
</ins><span class="cx">             HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(element);
</span><span class="cx">             if (input.isTextField()) {
</span><span class="cx">                 formValues.append(std::pair&lt;String, String&gt;(input.name().string(), input.value()));
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1033,7 +1033,7 @@
</span><span class="cx"> void FrameLoader::handleFallbackContent()
</span><span class="cx"> {
</span><span class="cx">     HTMLFrameOwnerElement* owner = m_frame.ownerElement();
</span><del>-    if (!owner || !isHTMLObjectElement(owner))
</del><ins>+    if (!owner || !is&lt;HTMLObjectElement&gt;(owner))
</ins><span class="cx">         return;
</span><span class="cx">     downcast&lt;HTMLObjectElement&gt;(*owner).renderFallbackContent();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderImageLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/ImageLoader.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ImageLoader.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/loader/ImageLoader.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -412,7 +412,7 @@
</span><span class="cx">     loadEventSender().cancelEvent(*this);
</span><span class="cx">     m_hasPendingLoadEvent = false;
</span><span class="cx">     
</span><del>-    if (isHTMLObjectElement(element()))
</del><ins>+    if (is&lt;HTMLObjectElement&gt;(element()))
</ins><span class="cx">         downcast&lt;HTMLObjectElement&gt;(element()).renderFallbackContent();
</span><span class="cx"> 
</span><span class="cx">     // Only consider updating the protection ref-count of the Element immediately before returning
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderSubframeLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/SubframeLoader.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/SubframeLoader.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/loader/SubframeLoader.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -213,7 +213,7 @@
</span><span class="cx">     if (!url.isEmpty())
</span><span class="cx">         completedURL = completeURL(url);
</span><span class="cx"> 
</span><del>-    bool hasFallbackContent = isHTMLObjectElement(ownerElement) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(ownerElement).hasFallbackContent();
</del><ins>+    bool hasFallbackContent = is&lt;HTMLObjectElement&gt;(ownerElement) &amp;&amp; downcast&lt;HTMLObjectElement&gt;(ownerElement).hasFallbackContent();
</ins><span class="cx"> 
</span><span class="cx">     bool useFallback;
</span><span class="cx">     if (shouldUsePlugin(completedURL, mimeType, ownerElement.shouldPreferPlugInsForImages(), hasFallbackContent, useFallback)) {
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderarchivecfLegacyWebArchivecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -516,7 +516,7 @@
</span><span class="cx">     for (size_t i = 0; i &lt; nodesSize; ++i) {
</span><span class="cx">         Node&amp; node = *nodes[i];
</span><span class="cx">         Frame* childFrame;
</span><del>-        if ((isHTMLFrameElement(node) || isHTMLIFrameElement(node) || isHTMLObjectElement(node))
</del><ins>+        if ((is&lt;HTMLFrameElement&gt;(node) || is&lt;HTMLIFrameElement&gt;(node) || is&lt;HTMLObjectElement&gt;(node))
</ins><span class="cx">             &amp;&amp; (childFrame = toHTMLFrameOwnerElement(node).contentFrame())) {
</span><span class="cx">             if (frameFilter &amp;&amp; !frameFilter(*childFrame))
</span><span class="cx">                 continue;
</span></span></pre></div>
<a id="trunkSourceWebCorepageChromecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Chrome.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Chrome.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/Chrome.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -408,7 +408,7 @@
</span><span class="cx">     if (toolTip.isEmpty() &amp;&amp; m_page.settings().showsURLsInToolTips()) {
</span><span class="cx">         if (Element* element = result.innerNonSharedElement()) {
</span><span class="cx">             // Get tooltip representing form action, if relevant
</span><del>-            if (isHTMLInputElement(element)) {
</del><ins>+            if (is&lt;HTMLInputElement&gt;(element)) {
</ins><span class="cx">                 HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*element);
</span><span class="cx">                 if (input.isSubmitButton()) {
</span><span class="cx">                     if (HTMLFormElement* form = input.form()) {
</span><span class="lines">@@ -441,7 +441,7 @@
</span><span class="cx">     // Lastly, for &lt;input type=&quot;file&quot;&gt; that allow multiple files, we'll consider a tooltip for the selected filenames
</span><span class="cx">     if (toolTip.isEmpty()) {
</span><span class="cx">         if (Element* element = result.innerNonSharedElement()) {
</span><del>-            if (isHTMLInputElement(element)) {
</del><ins>+            if (is&lt;HTMLInputElement&gt;(element)) {
</ins><span class="cx">                 toolTip = downcast&lt;HTMLInputElement&gt;(*element).defaultToolTip();
</span><span class="cx"> 
</span><span class="cx">                 // FIXME: We should obtain text direction of tooltip from
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/EventHandler.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1267,7 +1267,7 @@
</span><span class="cx"> #if ENABLE(CURSOR_SUPPORT)
</span><span class="cx"> static bool isSubmitImage(Node* node)
</span><span class="cx"> {
</span><del>-    return node &amp;&amp; isHTMLInputElement(node) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*node).isImageButton();
</del><ins>+    return node &amp;&amp; is&lt;HTMLInputElement&gt;(node) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*node).isImageButton();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Returns true if the node's editable block is not current focused for editing
</span><span class="lines">@@ -1761,7 +1761,7 @@
</span><span class="cx">         // If a mouse event handler changes the input element type to one that has a widget associated,
</span><span class="cx">         // we'd like to EventHandler::handleMousePressEvent to pass the event to the widget and thus the
</span><span class="cx">         // event target node can't still be the shadow node.
</span><del>-        if (mouseEvent.targetNode()-&gt;isShadowRoot() &amp;&amp; isHTMLInputElement(toShadowRoot(mouseEvent.targetNode())-&gt;hostElement()))
</del><ins>+        if (mouseEvent.targetNode()-&gt;isShadowRoot() &amp;&amp; is&lt;HTMLInputElement&gt;(toShadowRoot(mouseEvent.targetNode())-&gt;hostElement()))
</ins><span class="cx">             mouseEvent = m_frame.document()-&gt;prepareMouseEvent(HitTestRequest(), documentPoint, platformMouseEvent);
</span><span class="cx"> 
</span><span class="cx">         FrameView* view = m_frame.view();
</span></span></pre></div>
<a id="trunkSourceWebCorepageFocusControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FocusController.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FocusController.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/FocusController.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -574,7 +574,7 @@
</span><span class="cx">                 return;
</span><span class="cx"> 
</span><span class="cx">             if (Node* shadowAncestorNode = root-&gt;deprecatedShadowAncestorNode()) {
</span><del>-                if (!isHTMLInputElement(shadowAncestorNode) &amp;&amp; !isHTMLTextAreaElement(shadowAncestorNode))
</del><ins>+                if (!is&lt;HTMLInputElement&gt;(shadowAncestorNode) &amp;&amp; !is&lt;HTMLTextAreaElement&gt;(shadowAncestorNode))
</ins><span class="cx">                     return;
</span><span class="cx">             }
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/FrameView.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1414,7 +1414,7 @@
</span><span class="cx">         m_embeddedObjectsToUpdate = std::make_unique&lt;ListHashSet&lt;RenderEmbeddedObject*&gt;&gt;();
</span><span class="cx"> 
</span><span class="cx">     HTMLFrameOwnerElement&amp; element = embeddedObject.frameOwnerElement();
</span><del>-    if (isHTMLObjectElement(element) || isHTMLEmbedElement(element)) {
</del><ins>+    if (is&lt;HTMLObjectElement&gt;(element) || is&lt;HTMLEmbedElement&gt;(element)) {
</ins><span class="cx">         // Tell the DOM element that it needs a widget update.
</span><span class="cx">         HTMLPlugInImageElement&amp; pluginElement = toHTMLPlugInImageElement(element);
</span><span class="cx">         if (!pluginElement.needsCheckForSizeChange())
</span><span class="lines">@@ -2788,7 +2788,7 @@
</span><span class="cx">     HTMLFrameOwnerElement&amp; element = embeddedObject.frameOwnerElement();
</span><span class="cx"> 
</span><span class="cx">     if (embeddedObject.isSnapshottedPlugIn()) {
</span><del>-        if (isHTMLObjectElement(element) || isHTMLEmbedElement(element)) {
</del><ins>+        if (is&lt;HTMLObjectElement&gt;(element) || is&lt;HTMLEmbedElement&gt;(element)) {
</ins><span class="cx">             HTMLPlugInImageElement&amp; pluginElement = toHTMLPlugInImageElement(element);
</span><span class="cx">             pluginElement.checkSnapshotStatus();
</span><span class="cx">         }
</span><span class="lines">@@ -2799,7 +2799,7 @@
</span><span class="cx"> 
</span><span class="cx">     // FIXME: This could turn into a real virtual dispatch if we defined
</span><span class="cx">     // updateWidget(PluginCreationOption) on HTMLElement.
</span><del>-    if (isHTMLObjectElement(element) || isHTMLEmbedElement(element) || isHTMLAppletElement(element)) {
</del><ins>+    if (is&lt;HTMLObjectElement&gt;(element) || is&lt;HTMLEmbedElement&gt;(element) || is&lt;HTMLAppletElement&gt;(element)) {
</ins><span class="cx">         HTMLPlugInImageElement&amp; pluginElement = toHTMLPlugInImageElement(element);
</span><span class="cx">         if (pluginElement.needsCheckForSizeChange()) {
</span><span class="cx">             pluginElement.checkSnapshotStatus();
</span></span></pre></div>
<a id="trunkSourceWebCorepagePageSerializercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/PageSerializer.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx"> static const QualifiedName&amp; frameOwnerURLAttributeName(const HTMLFrameOwnerElement&amp; frameOwner)
</span><span class="cx"> {
</span><span class="cx">     // FIXME: We should support all frame owners including applets.
</span><del>-    return isHTMLObjectElement(frameOwner) ? HTMLNames::dataAttr : HTMLNames::srcAttr;
</del><ins>+    return is&lt;HTMLObjectElement&gt;(frameOwner) ? HTMLNames::dataAttr : HTMLNames::srcAttr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> class SerializerMarkupAccumulator final : public WebCore::MarkupAccumulator {
</span></span></pre></div>
<a id="trunkSourceWebCorepageSpatialNavigationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SpatialNavigation.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SpatialNavigation.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/page/SpatialNavigation.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -448,7 +448,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(container);
</span><span class="cx"> 
</span><del>-    if (isHTMLSelectElement(container))
</del><ins>+    if (is&lt;HTMLSelectElement&gt;(container))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     if (container-&gt;isDocumentNode())
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/HitTestResult.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/HitTestResult.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/HitTestResult.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx">         return displayString(image.fastGetAttribute(altAttr), m_innerNonSharedNode.get());
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    if (isHTMLInputElement(*m_innerNonSharedNode)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(*m_innerNonSharedNode)) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(*m_innerNonSharedNode);
</span><span class="cx">         return displayString(input.alt(), m_innerNonSharedNode.get());
</span><span class="cx">     }
</span><span class="lines">@@ -317,14 +317,12 @@
</span><span class="cx">         return URL();
</span><span class="cx"> 
</span><span class="cx">     AtomicString urlString;
</span><del>-    if (m_innerNonSharedNode-&gt;hasTagName(embedTag)
-        || isHTMLImageElement(m_innerNonSharedNode.get())
-        || isHTMLInputElement(m_innerNonSharedNode.get())
-        || m_innerNonSharedNode-&gt;hasTagName(objectTag)
-        || is&lt;SVGImageElement&gt;(m_innerNonSharedNode.get()))
-        {
-        Element* element = toElement(m_innerNonSharedNode.get());
-        urlString = element-&gt;imageSourceURL();
</del><ins>+    if (is&lt;HTMLEmbedElement&gt;(*m_innerNonSharedNode)
+        || is&lt;HTMLImageElement&gt;(*m_innerNonSharedNode)
+        || is&lt;HTMLInputElement&gt;(*m_innerNonSharedNode)
+        || is&lt;HTMLObjectElement&gt;(*m_innerNonSharedNode)
+        || is&lt;SVGImageElement&gt;(*m_innerNonSharedNode)) {
+        urlString = toElement(*m_innerNonSharedNode).imageSourceURL();
</ins><span class="cx">     } else
</span><span class="cx">         return URL();
</span><span class="cx"> 
</span><span class="lines">@@ -336,7 +334,7 @@
</span><span class="cx">     if (!m_innerNonSharedNode)
</span><span class="cx">         return URL();
</span><span class="cx"> 
</span><del>-    if (!isHTMLEmbedElement(*m_innerNonSharedNode) &amp;&amp; !isHTMLObjectElement(*m_innerNonSharedNode))
</del><ins>+    if (!is&lt;HTMLEmbedElement&gt;(*m_innerNonSharedNode) &amp;&amp; !is&lt;HTMLObjectElement&gt;(*m_innerNonSharedNode))
</ins><span class="cx">         return URL();
</span><span class="cx"> 
</span><span class="cx">     HTMLPlugInImageElement&amp; element = toHTMLPlugInImageElement(*m_innerNonSharedNode);
</span><span class="lines">@@ -556,10 +554,10 @@
</span><span class="cx">     if (!m_innerNonSharedNode)
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-    if (isHTMLTextAreaElement(*m_innerNonSharedNode))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(*m_innerNonSharedNode))
</ins><span class="cx">         return true;
</span><span class="cx"> 
</span><del>-    if (isHTMLInputElement(*m_innerNonSharedNode))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(*m_innerNonSharedNode))
</ins><span class="cx">         return downcast&lt;HTMLInputElement&gt;(*m_innerNonSharedNode).isTextField();
</span><span class="cx"> 
</span><span class="cx">     return m_innerNonSharedNode-&gt;hasEditableStyle();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockFlowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -3569,7 +3569,7 @@
</span><span class="cx">         // Get the first non-shadow HTMLElement and see if it's an input.
</span><span class="cx">         if (renderer-&gt;element() &amp;&amp; renderer-&gt;element()-&gt;isHTMLElement() &amp;&amp; !renderer-&gt;element()-&gt;isInShadowTree()) {
</span><span class="cx">             const HTMLElement&amp; element = toHTMLElement(*renderer-&gt;element());
</span><del>-            return !isHTMLInputElement(element) &amp;&amp; !isHTMLTextAreaElement(element);
</del><ins>+            return !is&lt;HTMLInputElement&gt;(element) &amp;&amp; !is&lt;HTMLTextAreaElement&gt;(element);
</ins><span class="cx">         }
</span><span class="cx">         renderer = renderer-&gt;parent();
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBox.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBox.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderBox.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -34,6 +34,7 @@
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><span class="cx"> #include &quot;FrameView.h&quot;
</span><span class="cx"> #include &quot;GraphicsContext.h&quot;
</span><ins>+#include &quot;HTMLButtonElement.h&quot;
</ins><span class="cx"> #include &quot;HTMLElement.h&quot;
</span><span class="cx"> #include &quot;HTMLFrameOwnerElement.h&quot;
</span><span class="cx"> #include &quot;HTMLInputElement.h&quot;
</span><span class="lines">@@ -2477,7 +2478,7 @@
</span><span class="cx">     // stretching column flexbox.
</span><span class="cx">     // FIXME: Think about block-flow here.
</span><span class="cx">     // https://bugs.webkit.org/show_bug.cgi?id=46473
</span><del>-    if (logicalWidth.type() == Auto &amp;&amp; !isStretchingColumnFlexItem(*this) &amp;&amp; element() &amp;&amp; (isHTMLInputElement(element()) || element()-&gt;hasTagName(selectTag) || element()-&gt;hasTagName(buttonTag) || isHTMLTextAreaElement(element()) || element()-&gt;hasTagName(legendTag)))
</del><ins>+    if (logicalWidth.type() == Auto &amp;&amp; !isStretchingColumnFlexItem(*this) &amp;&amp; element() &amp;&amp; (is&lt;HTMLInputElement&gt;(element()) || is&lt;HTMLSelectElement&gt;(element()) || is&lt;HTMLButtonElement&gt;(element()) || is&lt;HTMLTextAreaElement&gt;(element()) || is&lt;HTMLLegendElement&gt;(element())))
</ins><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     if (isHorizontalWritingMode() != containingBlock()-&gt;isHorizontalWritingMode())
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderButtoncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderButton.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderButton.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderButton.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx"> void RenderButton::updateFromElement()
</span><span class="cx"> {
</span><span class="cx">     // If we're an input element, we may need to change our button text.
</span><del>-    if (isHTMLInputElement(formControlElement())) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(formControlElement())) {
</ins><span class="cx">         HTMLInputElement&amp; input = downcast&lt;HTMLInputElement&gt;(formControlElement());
</span><span class="cx">         String value = input.valueWithDefault();
</span><span class="cx">         setText(value);
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx">     // Input elements can't have generated children, but button elements can. We'll
</span><span class="cx">     // write the code assuming any other button types that might emerge in the future
</span><span class="cx">     // can also have children.
</span><del>-    return !isHTMLInputElement(formControlElement());
</del><ins>+    return !is&lt;HTMLInputElement&gt;(formControlElement());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> LayoutRect RenderButton::controlClipRect(const LayoutPoint&amp; additionalOffset) const
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderDetailsMarkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -145,7 +145,7 @@
</span><span class="cx">             continue;
</span><span class="cx">         if (renderer-&gt;node()-&gt;hasTagName(detailsTag))
</span><span class="cx">             return !toElement(renderer-&gt;node())-&gt;getAttribute(openAttr).isNull();
</span><del>-        if (isHTMLInputElement(renderer-&gt;node()))
</del><ins>+        if (is&lt;HTMLInputElement&gt;(renderer-&gt;node()))
</ins><span class="cx">             return true;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderFileUploadControlcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -255,7 +255,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(inputElement().shadowRoot());
</span><span class="cx">     Node* buttonNode = inputElement().shadowRoot()-&gt;firstChild();
</span><del>-    return buttonNode &amp;&amp; buttonNode-&gt;isHTMLElement() &amp;&amp; isHTMLInputElement(buttonNode) ? downcast&lt;HTMLInputElement&gt;(buttonNode) : nullptr;
</del><ins>+    return buttonNode &amp;&amp; is&lt;HTMLInputElement&gt;(buttonNode) ? downcast&lt;HTMLInputElement&gt;(buttonNode) : nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String RenderFileUploadControl::buttonValue()
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderImage.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -655,7 +655,7 @@
</span><span class="cx">     if (!element())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    if (isHTMLInputElement(*element()))
</del><ins>+    if (is&lt;HTMLInputElement&gt;(*element()))
</ins><span class="cx">         m_altText = downcast&lt;HTMLInputElement&gt;(*element()).altText();
</span><span class="cx">     else if (isHTMLImageElement(*element()))
</span><span class="cx">         m_altText = downcast&lt;HTMLImageElement&gt;(*element()).altText();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx">             HTMLElement* element = listItems[i];
</span><span class="cx">             String text;
</span><span class="cx">             Font itemFont = style().font();
</span><del>-            if (isHTMLOptionElement(element))
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">                 text = downcast&lt;HTMLOptionElement&gt;(*element).textIndentedToRespectGroupLabel();
</span><span class="cx">             else if (isHTMLOptGroupElement(element)) {
</span><span class="cx">                 text = downcast&lt;HTMLOptGroupElement&gt;(*element).groupLabelText();
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx">     const Vector&lt;HTMLElement*&gt;&amp; listItems = selectElement().listItems();
</span><span class="cx">     for (int i = 0; i &lt; size; ++i) {
</span><span class="cx">         HTMLElement* element = listItems[i];
</span><del>-        if (isHTMLOptionElement(element) &amp;&amp; !element-&gt;isDisabledFormControl()) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element) &amp;&amp; !element-&gt;isDisabledFormControl()) {
</ins><span class="cx">             selectElement().setActiveSelectionEndIndex(i);
</span><span class="cx">             rects.append(snappedIntRect(itemBoundingBoxRect(additionalOffset, i)));
</span><span class="cx">             return;
</span><span class="lines">@@ -385,7 +385,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     String itemText;
</span><del>-    bool isOptionElement = isHTMLOptionElement(listItemElement);
</del><ins>+    bool isOptionElement = is&lt;HTMLOptionElement&gt;(listItemElement);
</ins><span class="cx">     if (isOptionElement)
</span><span class="cx">         itemText = downcast&lt;HTMLOptionElement&gt;(*listItemElement).textIndentedToRespectGroupLabel();
</span><span class="cx">     else if (isHTMLOptGroupElement(listItemElement))
</span><span class="lines">@@ -426,7 +426,7 @@
</span><span class="cx">     HTMLElement* listItemElement = listItems[listIndex];
</span><span class="cx"> 
</span><span class="cx">     Color backColor;
</span><del>-    if (isHTMLOptionElement(listItemElement) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*listItemElement).selected()) {
</del><ins>+    if (is&lt;HTMLOptionElement&gt;(listItemElement) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*listItemElement).selected()) {
</ins><span class="cx">         if (frame().selection().isFocusedAndActive() &amp;&amp; document().focusedElement() == &amp;selectElement())
</span><span class="cx">             backColor = theme().activeListBoxSelectionBackgroundColor();
</span><span class="cx">         else
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMenuListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMenuList.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMenuList.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderMenuList.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> 
</span><span class="cx">     size_t count = 0;
</span><span class="cx">     for (size_t i = 0; i &lt; numberOfItems; ++i) {
</span><del>-        if (isHTMLOptionElement(listItems[i]) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*listItems[i]).selected())
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(listItems[i]) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*listItems[i]).selected())
</ins><span class="cx">             ++count;
</span><span class="cx">     }
</span><span class="cx">     return count;
</span><span class="lines">@@ -214,7 +214,7 @@
</span><span class="cx"> 
</span><span class="cx">     for (int i = 0; i &lt; size; ++i) {
</span><span class="cx">         HTMLElement* element = listItems[i];
</span><del>-        if (!isHTMLOptionElement(element))
</del><ins>+        if (!is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">             continue;
</span><span class="cx"> 
</span><span class="cx">         String text = downcast&lt;HTMLOptionElement&gt;(*element).textIndentedToRespectGroupLabel();
</span><span class="lines">@@ -270,7 +270,7 @@
</span><span class="cx">     String text = emptyString();
</span><span class="cx">     if (i &gt;= 0 &amp;&amp; i &lt; size) {
</span><span class="cx">         Element* element = listItems[i];
</span><del>-        if (isHTMLOptionElement(element)) {
</del><ins>+        if (is&lt;HTMLOptionElement&gt;(element)) {
</ins><span class="cx">             text = downcast&lt;HTMLOptionElement&gt;(*element).textIndentedToRespectGroupLabel();
</span><span class="cx">             m_optionStyle = element-&gt;computedStyle();
</span><span class="cx">         }
</span><span class="lines">@@ -452,7 +452,7 @@
</span><span class="cx">     Element* element = listItems[listIndex];
</span><span class="cx">     if (isHTMLOptGroupElement(element))
</span><span class="cx">         itemString = downcast&lt;HTMLOptGroupElement&gt;(*element).groupLabelText();
</span><del>-    else if (isHTMLOptionElement(element))
</del><ins>+    else if (is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">         itemString = downcast&lt;HTMLOptionElement&gt;(*element).textIndentedToRespectGroupLabel();
</span><span class="cx"> 
</span><span class="cx">     applyTextTransform(style(), itemString, ' ');
</span><span class="lines">@@ -492,7 +492,7 @@
</span><span class="cx">     if (listIndex &gt;= listItems.size())
</span><span class="cx">         return false;
</span><span class="cx">     HTMLElement* element = listItems[listIndex];
</span><del>-    if (!isHTMLOptionElement(element))
</del><ins>+    if (!is&lt;HTMLOptionElement&gt;(element))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     bool groupEnabled = true;
</span><span class="lines">@@ -654,7 +654,7 @@
</span><span class="cx">     if (listIndex &gt;= listItems.size())
</span><span class="cx">         return false;
</span><span class="cx">     HTMLElement* element = listItems[listIndex];
</span><del>-    return isHTMLOptionElement(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected();
</del><ins>+    return is&lt;HTMLOptionElement&gt;(element) &amp;&amp; downcast&lt;HTMLOptionElement&gt;(*element).selected();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RenderMenuList::setTextFromItem(unsigned listIndex)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTheme.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTheme.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/rendering/RenderTheme.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1035,7 +1035,7 @@
</span><span class="cx">     GraphicsContextStateSaver stateSaver(*paintInfo.context);
</span><span class="cx">     paintInfo.context-&gt;setFillColor(o.style().visitedDependentColor(CSSPropertyColor), ColorSpaceDeviceRGB);
</span><span class="cx">     for (unsigned i = 0; Node* node = options-&gt;item(i); i++) {
</span><del>-        ASSERT(isHTMLOptionElement(node));
</del><ins>+        ASSERT(is&lt;HTMLOptionElement&gt;(node));
</ins><span class="cx">         HTMLOptionElement&amp; optionElement = downcast&lt;HTMLOptionElement&gt;(*node);
</span><span class="cx">         String value = optionElement.value();
</span><span class="cx">         if (!input-&gt;isValidValue(value))
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/testing/Internals.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -637,7 +637,7 @@
</span><span class="cx"> #if ENABLE(INPUT_TYPE_COLOR)
</span><span class="cx"> void Internals::selectColorInColorChooser(Element* element, const String&amp; colorValue)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx">     HTMLInputElement* inputElement = element-&gt;toInputElement();
</span><span class="cx">     if (!inputElement)
</span><span class="lines">@@ -912,7 +912,7 @@
</span><span class="cx">     if (HTMLInputElement* inputElement = textField-&gt;toInputElement())
</span><span class="cx">         return inputElement-&gt;lastChangeWasUserEdit();
</span><span class="cx"> 
</span><del>-    if (isHTMLTextAreaElement(textField))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(textField))
</ins><span class="cx">         return downcast&lt;HTMLTextAreaElement&gt;(*textField).lastChangeWasUserEdit();
</span><span class="cx"> 
</span><span class="cx">     ec = INVALID_NODE_TYPE_ERR;
</span><span class="lines">@@ -2083,7 +2083,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool Internals::isSelectPopupVisible(Node* node)
</span><span class="cx"> {
</span><del>-    if (!isHTMLSelectElement(node))
</del><ins>+    if (!is&lt;HTMLSelectElement&gt;(node))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     HTMLSelectElement&amp; select = downcast&lt;HTMLSelectElement&gt;(*node);
</span></span></pre></div>
<a id="trunkSourceWebCorexmlparserXMLDocumentParserLibxml2cpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -858,7 +858,7 @@
</span><span class="cx">     pushCurrentNode(newElement.get());
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    if (isHTMLHtmlElement(*newElement))
</del><ins>+    if (is&lt;HTMLHtmlElement&gt;(*newElement))
</ins><span class="cx">         downcast&lt;HTMLHtmlElement&gt;(*newElement).insertedByParser();
</span><span class="cx"> 
</span><span class="cx">     if (!m_parsingFragment &amp;&amp; isFirstElement &amp;&amp; document()-&gt;frame())
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/ios/ChangeLog        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-09-24  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
+        https://bugs.webkit.org/show_bug.cgi?id=137068
+
+        Reviewed by Ryosuke Niwa.
+
+        Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
+        Remaining usages will be updated in a follow-up patch to
+        reduce the size of the change.
+
+        * WebCoreSupport/WebChromeClientIOS.mm:
+        (WebChromeClientIOS::focusedElementChanged):
+
</ins><span class="cx"> 2014-09-21  Timothy Hatcher  &lt;timothy@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make the Web Inspector use a separate web process.
</span></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -311,7 +311,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!element)
</span><span class="cx">         return;
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*element);
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2014-09-24  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
+        https://bugs.webkit.org/show_bug.cgi?id=137068
+
+        Reviewed by Ryosuke Niwa.
+
+        Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
+        Remaining usages will be updated in a follow-up patch to
+        reduce the size of the change.
+
+        * WebCoreSupport/WebChromeClient.mm:
+        (WebChromeClient::focusedElementChanged):
+        * WebCoreSupport/WebEditorClient.mm:
+        (WebEditorClient::textFieldDidBeginEditing):
+        (WebEditorClient::textFieldDidEndEditing):
+        (WebEditorClient::textDidChangeInTextField):
+        (WebEditorClient::doTextFieldCommandFromEvent):
+        (WebEditorClient::textWillBeDeletedInTextField):
+        (WebEditorClient::textDidChangeInTextArea):
+        * WebView/WebHTMLRepresentation.mm:
+        (inputElementFromDOMElement):
+
</ins><span class="cx"> 2014-09-21  Timothy Hatcher  &lt;timothy@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make the Web Inspector use a separate web process.
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebChromeClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!element)
</span><span class="cx">         return;
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*element);
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebEditorClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -705,7 +705,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textFieldDidBeginEditing(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     DOMHTMLInputElement* inputElement = kit(downcast&lt;HTMLInputElement&gt;(element));
</span><span class="lines">@@ -715,7 +715,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textFieldDidEndEditing(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     DOMHTMLInputElement* inputElement = kit(downcast&lt;HTMLInputElement&gt;(element));
</span><span class="lines">@@ -725,7 +725,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textDidChangeInTextField(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="lines">@@ -763,7 +763,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool WebEditorClient::doTextFieldCommandFromEvent(Element* element, KeyboardEvent* event)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return NO;
</span><span class="cx"> 
</span><span class="cx">     DOMHTMLInputElement* inputElement = kit(downcast&lt;HTMLInputElement&gt;(element));
</span><span class="lines">@@ -775,7 +775,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textWillBeDeletedInTextField(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     DOMHTMLInputElement* inputElement = kit(downcast&lt;HTMLInputElement&gt;(element));
</span><span class="lines">@@ -786,7 +786,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textDidChangeInTextArea(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLTextAreaElement(element))
</del><ins>+    if (!is&lt;HTMLTextAreaElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     DOMHTMLTextAreaElement* textAreaElement = kit(downcast&lt;HTMLTextAreaElement&gt;(element));
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebHTMLRepresentationmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/mac/WebView/WebHTMLRepresentation.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -305,7 +305,7 @@
</span><span class="cx"> static HTMLInputElement* inputElementFromDOMElement(DOMElement* element)
</span><span class="cx"> {
</span><span class="cx">     Element* node = core(element);
</span><del>-    return node &amp;&amp; isHTMLInputElement(node) ? downcast&lt;HTMLInputElement&gt;(node) : nullptr;
</del><ins>+    return node &amp;&amp; is&lt;HTMLInputElement&gt;(node) ? downcast&lt;HTMLInputElement&gt;(node) : nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)elementDoesAutoComplete:(DOMElement *)element
</span></span></pre></div>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/win/ChangeLog        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1,3 +1,46 @@
</span><ins>+2014-09-24  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
+        https://bugs.webkit.org/show_bug.cgi?id=137068
+
+        Reviewed by Ryosuke Niwa.
+
+        Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
+        Remaining usages will be updated in a follow-up patch to
+        reduce the size of the change.
+
+        * DOMCoreClasses.cpp:
+        (DOMElement::createInstance):
+        * DOMHTMLClasses.cpp:
+        (DOMHTMLOptionElement::text):
+        (DOMHTMLOptionElement::label):
+        (DOMHTMLInputElement::form):
+        (DOMHTMLInputElement::disabled):
+        (DOMHTMLInputElement::readOnly):
+        (DOMHTMLInputElement::setType):
+        (DOMHTMLInputElement::value):
+        (DOMHTMLInputElement::setValue):
+        (DOMHTMLInputElement::setValueForUser):
+        (DOMHTMLInputElement::select):
+        (DOMHTMLInputElement::setSelectionStart):
+        (DOMHTMLInputElement::selectionStart):
+        (DOMHTMLInputElement::setSelectionEnd):
+        (DOMHTMLInputElement::selectionEnd):
+        (DOMHTMLInputElement::isTextField):
+        (DOMHTMLInputElement::rectOnScreen):
+        (DOMHTMLInputElement::replaceCharactersInRange):
+        (DOMHTMLInputElement::selectedRange):
+        (DOMHTMLInputElement::setAutofilled):
+        (DOMHTMLInputElement::isAutofilled):
+        (DOMHTMLInputElement::isUserEdited):
+        (DOMHTMLTextAreaElement::form):
+        (DOMHTMLTextAreaElement::value):
+        (DOMHTMLTextAreaElement::setValue):
+        (DOMHTMLTextAreaElement::select):
+        (DOMHTMLTextAreaElement::isUserEdited):
+        * WebFrame.cpp:
+        (inputElementFromDOMElement):
+
</ins><span class="cx"> 2014-09-21  Timothy Hatcher  &lt;timothy@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make the Web Inspector use a separate web process.
</span></span></pre></div>
<a id="trunkSourceWebKitwinDOMCoreClassescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/DOMCoreClasses.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/DOMCoreClasses.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/win/DOMCoreClasses.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1506,16 +1506,16 @@
</span><span class="cx">     } else if (e-&gt;hasTagName(iframeTag)) {
</span><span class="cx">         DOMHTMLIFrameElement* newElement = new DOMHTMLIFrameElement(e);
</span><span class="cx">         hr = newElement-&gt;QueryInterface(IID_IDOMElement, (void**)&amp;domElement);
</span><del>-    } else if (isHTMLInputElement(e)) {
</del><ins>+    } else if (is&lt;HTMLInputElement&gt;(e)) {
</ins><span class="cx">         DOMHTMLInputElement* newElement = new DOMHTMLInputElement(e);
</span><span class="cx">         hr = newElement-&gt;QueryInterface(IID_IDOMElement, (void**)&amp;domElement);
</span><del>-    } else if (isHTMLOptionElement(e)) {
</del><ins>+    } else if (is&lt;HTMLOptionElement&gt;(e)) {
</ins><span class="cx">         DOMHTMLOptionElement* newElement = new DOMHTMLOptionElement(e);
</span><span class="cx">         hr = newElement-&gt;QueryInterface(IID_IDOMElement, (void**)&amp;domElement);
</span><span class="cx">     } else if (e-&gt;hasTagName(selectTag)) {
</span><span class="cx">         DOMHTMLSelectElement* newElement = new DOMHTMLSelectElement(e);
</span><span class="cx">         hr = newElement-&gt;QueryInterface(IID_IDOMElement, (void**)&amp;domElement);
</span><del>-    } else if (isHTMLTextAreaElement(e)) {
</del><ins>+    } else if (is&lt;HTMLTextAreaElement&gt;(e)) {
</ins><span class="cx">         DOMHTMLTextAreaElement* newElement = new DOMHTMLTextAreaElement(e);
</span><span class="cx">         hr = newElement-&gt;QueryInterface(IID_IDOMElement, (void**)&amp;domElement);
</span><span class="cx">     } else if (e-&gt;isHTMLElement()) {
</span></span></pre></div>
<a id="trunkSourceWebKitwinDOMHTMLClassescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/DOMHTMLClasses.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/DOMHTMLClasses.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/win/DOMHTMLClasses.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -859,7 +859,7 @@
</span><span class="cx">     *result = 0;
</span><span class="cx"> 
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLOptionElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLOptionElement&gt;(m_element));
</ins><span class="cx">     HTMLOptionElement&amp; optionElement = downcast&lt;HTMLOptionElement&gt;(*m_element);
</span><span class="cx"> 
</span><span class="cx">     *result = BString(optionElement.text()).release();
</span><span class="lines">@@ -896,7 +896,7 @@
</span><span class="cx">     *result = 0;
</span><span class="cx"> 
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLOptionElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLOptionElement&gt;(m_element));
</ins><span class="cx">     HTMLOptionElement&amp; optionElement = downcast&lt;HTMLOptionElement&gt;(*m_element);
</span><span class="cx"> 
</span><span class="cx">     *result = BString(optionElement.label()).release();
</span><span class="lines">@@ -992,7 +992,7 @@
</span><span class="cx">     if (!result)
</span><span class="cx">         return E_POINTER;
</span><span class="cx">     *result = nullptr;
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     COMPtr&lt;IDOMElement&gt; domElement;
</span><span class="cx">     domElement.adoptRef(DOMHTMLElement::createInstance(inputElement.form()));
</span><span class="lines">@@ -1074,7 +1074,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::disabled( 
</span><span class="cx">         /* [retval][out] */ BOOL* result)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *result = inputElement.isDisabledFormControl() ? TRUE : FALSE;
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1118,7 +1118,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::readOnly( 
</span><span class="cx">         /* [retval][out] */ BOOL* result)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *result = inputElement.isReadOnly() ? TRUE : FALSE;
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1183,7 +1183,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setType( 
</span><span class="cx">         /* [in] */ BSTR type)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     WTF::String typeString(type, SysStringLen(type));
</span><span class="cx">     inputElement.setType(typeString);
</span><span class="lines">@@ -1207,7 +1207,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::value( 
</span><span class="cx">         /* [retval][out] */ BSTR* result)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     WTF::String valueString = inputElement.value();
</span><span class="cx">     *result = BString(valueString).release();
</span><span class="lines">@@ -1219,7 +1219,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setValue( 
</span><span class="cx">         /* [in] */ BSTR value)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.setValue(String((UChar*) value, SysStringLen(value)));
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1229,7 +1229,7 @@
</span><span class="cx">         /* [in] */ BSTR value)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.setValueForUser(String(static_cast&lt;UChar*&gt;(value), SysStringLen(value)));
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1237,7 +1237,7 @@
</span><span class="cx"> 
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::select( void)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.select();
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1252,7 +1252,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setSelectionStart( 
</span><span class="cx">     /* [in] */ long start)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.setSelectionStart(start);
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1261,7 +1261,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::selectionStart( 
</span><span class="cx">     /* [retval][out] */ long *start)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *start = inputElement.selectionStart();
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1270,7 +1270,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setSelectionEnd( 
</span><span class="cx">     /* [in] */ long end)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.setSelectionEnd(end);
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1279,7 +1279,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::selectionEnd( 
</span><span class="cx">     /* [retval][out] */ long *end)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *end = inputElement.selectionEnd();
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1291,7 +1291,7 @@
</span><span class="cx">     /* [retval][out] */ BOOL* result)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *result = inputElement.isTextField() ? TRUE : FALSE;
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1301,7 +1301,7 @@
</span><span class="cx">     /* [retval][out] */ LPRECT rect)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     rect-&gt;left = rect-&gt;top = rect-&gt;right = rect-&gt;bottom = 0;
</span><span class="cx">     RenderObject* renderer = m_element-&gt;renderer();
</span><span class="cx">     FrameView* view = m_element-&gt;document().view();
</span><span class="lines">@@ -1327,7 +1327,7 @@
</span><span class="cx">         return E_POINTER;
</span><span class="cx"> 
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx"> 
</span><span class="cx">     String newValue = inputElement.value();
</span><span class="lines">@@ -1344,7 +1344,7 @@
</span><span class="cx">     /* [out] */ int* end)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *start = inputElement.selectionStart();
</span><span class="cx">     *end = inputElement.selectionEnd();
</span><span class="lines">@@ -1355,7 +1355,7 @@
</span><span class="cx">     /* [in] */ BOOL filled)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     inputElement.setAutofilled(!!filled);
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1365,7 +1365,7 @@
</span><span class="cx">     /* [retval][out] */ BOOL* result)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_element);
</span><del>-    ASSERT(isHTMLInputElement(m_element));
</del><ins>+    ASSERT(is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*m_element);
</span><span class="cx">     *result = inputElement.isAutofilled() ? TRUE : FALSE;
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1380,7 +1380,7 @@
</span><span class="cx">         return E_POINTER;
</span><span class="cx"> 
</span><span class="cx">     *result = FALSE;
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLInputElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLInputElement&gt;(m_element));
</ins><span class="cx">     BOOL textField = FALSE;
</span><span class="cx">     if (FAILED(isTextField(&amp;textField)) || !textField)
</span><span class="cx">         return S_OK;
</span><span class="lines">@@ -1427,7 +1427,7 @@
</span><span class="cx">     if (!result)
</span><span class="cx">         return E_POINTER;
</span><span class="cx">     *result = 0;
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLTextAreaElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLTextAreaElement&gt;(m_element));
</ins><span class="cx">     HTMLTextAreaElement&amp; textareaElement = downcast&lt;HTMLTextAreaElement&gt;(*m_element);
</span><span class="cx">     COMPtr&lt;IDOMElement&gt; domElement;
</span><span class="cx">     domElement.adoptRef(DOMHTMLElement::createInstance(textareaElement.form()));
</span><span class="lines">@@ -1544,7 +1544,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLTextAreaElement::value( 
</span><span class="cx">         /* [retval][out] */ BSTR* result)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLTextAreaElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLTextAreaElement&gt;(m_element));
</ins><span class="cx">     HTMLTextAreaElement&amp; textareaElement = downcast&lt;HTMLTextAreaElement&gt;(*m_element);
</span><span class="cx">     WTF::String valueString = textareaElement.value();
</span><span class="cx">     *result = BString(valueString).release();
</span><span class="lines">@@ -1556,7 +1556,7 @@
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLTextAreaElement::setValue( 
</span><span class="cx">         /* [in] */ BSTR value)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLTextAreaElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLTextAreaElement&gt;(m_element));
</ins><span class="cx">     HTMLTextAreaElement&amp; textareaElement = downcast&lt;HTMLTextAreaElement&gt;(*m_element);
</span><span class="cx">     textareaElement.setValue(String((UChar*) value, SysStringLen(value)));
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1564,7 +1564,7 @@
</span><span class="cx">     
</span><span class="cx"> HRESULT STDMETHODCALLTYPE DOMHTMLTextAreaElement::select( void)
</span><span class="cx"> {
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLTextAreaElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLTextAreaElement&gt;(m_element));
</ins><span class="cx">     HTMLTextAreaElement&amp; textareaElement = downcast&lt;HTMLTextAreaElement&gt;(*m_element);
</span><span class="cx">     textareaElement.select();
</span><span class="cx">     return S_OK;
</span><span class="lines">@@ -1579,7 +1579,7 @@
</span><span class="cx">         return E_POINTER;
</span><span class="cx"> 
</span><span class="cx">     *result = FALSE;
</span><del>-    ASSERT(m_element &amp;&amp; isHTMLTextAreaElement(m_element));
</del><ins>+    ASSERT(m_element &amp;&amp; is&lt;HTMLTextAreaElement&gt;(m_element));
</ins><span class="cx">     if (downcast&lt;HTMLTextAreaElement&gt;(*m_element).lastChangeWasUserEdit())
</span><span class="cx">         *result = TRUE;
</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 (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebFrame.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit/win/WebFrame.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -219,7 +219,7 @@
</span><span class="cx">         Element* ele;
</span><span class="cx">         hr = elePriv-&gt;coreElement((void**)&amp;ele);
</span><span class="cx">         elePriv-&gt;Release();
</span><del>-        if (SUCCEEDED(hr) &amp;&amp; ele &amp;&amp; isHTMLInputElement(ele))
</del><ins>+        if (SUCCEEDED(hr) &amp;&amp; ele &amp;&amp; is&lt;HTMLInputElement&gt;(ele))
</ins><span class="cx">             return downcast&lt;HTMLInputElement&gt;(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 (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/ChangeLog        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -1,3 +1,37 @@
</span><ins>+2014-09-24  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;HTML*Element&gt;() instead of isHTML*Element() - Part 1
+        https://bugs.webkit.org/show_bug.cgi?id=137068
+
+        Reviewed by Ryosuke Niwa.
+
+        Start using is&lt;HTML*Element&gt;() instead of isHTML*Element().
+        Remaining usages will be updated in a follow-up patch to
+        reduce the size of the change.
+
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+        (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
+        (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
+        (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
+        (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
+        (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
+        (WebKit::InjectedBundleNodeHandle::isTextField):
+        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
+        (WebKit::WebChromeClient::focusedElementChanged):
+        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
+        (WebKit::WebEditorClient::textFieldDidBeginEditing):
+        (WebKit::WebEditorClient::textFieldDidEndEditing):
+        (WebKit::WebEditorClient::textDidChangeInTextField):
+        (WebKit::WebEditorClient::textDidChangeInTextArea):
+        (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
+        (WebKit::WebEditorClient::textWillBeDeletedInTextField):
+        * WebProcess/WebPage/WebFrame.cpp:
+        (WebKit::WebFrame::containsAnyFormControls):
+        * WebProcess/WebPage/ios/WebPageIOS.mm:
+        (WebKit::WebPage::setAssistedNodeValue):
+        (WebKit::WebPage::setAssistedNodeValueAsNumber):
+        (WebKit::WebPage::setAssistedNodeSelectedIndex):
+
</ins><span class="cx"> 2014-09-23  Ada Chan  &lt;adachan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add stub implementation of WKPageIsPlayingAudio().
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -199,7 +199,7 @@
</span><span class="cx"> 
</span><span class="cx"> void InjectedBundleNodeHandle::setHTMLInputElementValueForUser(const String&amp; value)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(*m_node))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(*m_node))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     downcast&lt;HTMLInputElement&gt;(*m_node).setValueForUser(value);
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool InjectedBundleNodeHandle::isHTMLInputElementAutofilled() const
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(*m_node))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(*m_node))
</ins><span class="cx">         return false;
</span><span class="cx">     
</span><span class="cx">     return downcast&lt;HTMLInputElement&gt;(*m_node).isAutofilled();
</span><span class="lines">@@ -215,7 +215,7 @@
</span><span class="cx"> 
</span><span class="cx"> void InjectedBundleNodeHandle::setHTMLInputElementAutofilled(bool filled)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(*m_node))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(*m_node))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     downcast&lt;HTMLInputElement&gt;(*m_node).setAutofilled(filled);
</span><span class="lines">@@ -223,7 +223,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit()
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(*m_node))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(*m_node))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     return downcast&lt;HTMLInputElement&gt;(*m_node).lastChangeWasUserEdit();
</span><span class="lines">@@ -231,7 +231,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit()
</span><span class="cx"> {
</span><del>-    if (!isHTMLTextAreaElement(*m_node))
</del><ins>+    if (!is&lt;HTMLTextAreaElement&gt;(*m_node))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     return downcast&lt;HTMLTextAreaElement&gt;(*m_node).lastChangeWasUserEdit();
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool InjectedBundleNodeHandle::isTextField() const
</span><span class="cx"> {
</span><del>-    return isHTMLInputElement(*m_node) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*m_node).isText();
</del><ins>+    return is&lt;HTMLInputElement&gt;(*m_node) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*m_node).isText();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> PassRefPtr&lt;InjectedBundleNodeHandle&gt; InjectedBundleNodeHandle::htmlTableCellElementCellAbove()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebChromeClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!element)
</span><span class="cx">         return;
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     HTMLInputElement&amp; inputElement = downcast&lt;HTMLInputElement&gt;(*element);
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebEditorClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -295,7 +295,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textFieldDidBeginEditing(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     WebFrame* webFrame = WebFrame::fromCoreFrame(*element-&gt;document().frame());
</span><span class="lines">@@ -306,7 +306,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textFieldDidEndEditing(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     WebFrame* webFrame = WebFrame::fromCoreFrame(*element-&gt;document().frame());
</span><span class="lines">@@ -317,7 +317,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textDidChangeInTextField(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     bool initiatedByUserTyping = UserTypingGestureIndicator::processingUserTypingGesture() &amp;&amp; UserTypingGestureIndicator::focusedElementAtGestureStart() == element;
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textDidChangeInTextArea(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLTextAreaElement(element))
</del><ins>+    if (!is&lt;HTMLTextAreaElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     WebFrame* webFrame = WebFrame::fromCoreFrame(*element-&gt;document().frame());
</span><span class="lines">@@ -393,7 +393,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool WebEditorClient::doTextFieldCommandFromEvent(Element* element, KeyboardEvent* event)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     WKInputFieldActionType actionType = static_cast&lt;WKInputFieldActionType&gt;(0);
</span><span class="lines">@@ -408,7 +408,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebEditorClient::textWillBeDeletedInTextField(Element* element)
</span><span class="cx"> {
</span><del>-    if (!isHTMLInputElement(element))
</del><ins>+    if (!is&lt;HTMLInputElement&gt;(element))
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     WebFrame* webFrame = WebFrame::fromCoreFrame(*element-&gt;document().frame());
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -633,7 +633,7 @@
</span><span class="cx">     for (Node* node = document-&gt;documentElement(); node; node = NodeTraversal::next(node)) {
</span><span class="cx">         if (!node-&gt;isElementNode())
</span><span class="cx">             continue;
</span><del>-        if (isHTMLInputElement(node) || isHTMLSelectElement(node) || isHTMLTextAreaElement(node))
</del><ins>+        if (is&lt;HTMLInputElement&gt;(node) || is&lt;HTMLSelectElement&gt;(node) || is&lt;HTMLTextAreaElement&gt;(node))
</ins><span class="cx">             return true;
</span><span class="cx">     }
</span><span class="cx">     return false;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (173931 => 173932)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2014-09-24 21:22:41 UTC (rev 173931)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2014-09-24 21:25:22 UTC (rev 173932)
</span><span class="lines">@@ -612,7 +612,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_assistedNode)
</span><span class="cx">         return;
</span><del>-    if (isHTMLInputElement(*m_assistedNode)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(*m_assistedNode)) {
</ins><span class="cx">         HTMLInputElement&amp; element = downcast&lt;HTMLInputElement&gt;(*m_assistedNode);
</span><span class="cx">         element.setValue(value, DispatchInputAndChangeEvent);
</span><span class="cx">     }
</span><span class="lines">@@ -623,7 +623,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_assistedNode)
</span><span class="cx">         return;
</span><del>-    if (isHTMLInputElement(*m_assistedNode)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(*m_assistedNode)) {
</ins><span class="cx">         HTMLInputElement&amp; element = downcast&lt;HTMLInputElement&gt;(*m_assistedNode);
</span><span class="cx">         element.setValueAsNumber(value, ASSERT_NO_EXCEPTION, DispatchInputAndChangeEvent);
</span><span class="cx">     }
</span><span class="lines">@@ -631,7 +631,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebPage::setAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
</span><span class="cx"> {
</span><del>-    if (!m_assistedNode || !isHTMLSelectElement(*m_assistedNode))
</del><ins>+    if (!m_assistedNode || !is&lt;HTMLSelectElement&gt;(*m_assistedNode))
</ins><span class="cx">         return;
</span><span class="cx">     HTMLSelectElement&amp; select = downcast&lt;HTMLSelectElement&gt;(*m_assistedNode);
</span><span class="cx">     select.optionSelectedByUser(index, true, allowMultipleSelection);
</span><span class="lines">@@ -1990,11 +1990,11 @@
</span><span class="cx"> 
</span><span class="cx"> static inline bool isAssistableNode(Node* node)
</span><span class="cx"> {
</span><del>-    if (isHTMLSelectElement(node))
</del><ins>+    if (is&lt;HTMLSelectElement&gt;(node))
</ins><span class="cx">         return true;
</span><del>-    if (isHTMLTextAreaElement(node))
</del><ins>+    if (is&lt;HTMLTextAreaElement&gt;(node))
</ins><span class="cx">         return !downcast&lt;HTMLTextAreaElement&gt;(*node).isReadOnlyNode();
</span><del>-    if (isHTMLInputElement(node)) {
</del><ins>+    if (is&lt;HTMLInputElement&gt;(node)) {
</ins><span class="cx">         HTMLInputElement&amp; element = downcast&lt;HTMLInputElement&gt;(*node);
</span><span class="cx">         return !element.isReadOnlyNode() &amp;&amp; (element.isTextField() || element.isDateField() || element.isDateTimeLocalField() || element.isMonthField() || element.isTimeField());
</span><span class="cx">     }
</span><span class="lines">@@ -2066,7 +2066,7 @@
</span><span class="cx">     information.hasNextNode = hasFocusableElement(m_assistedNode.get(), m_page.get(), true);
</span><span class="cx">     information.hasPreviousNode = hasFocusableElement(m_assistedNode.get(), m_page.get(), false);
</span><span class="cx"> 
</span><del>-    if (isHTMLSelectElement(*m_assistedNode)) {
</del><ins>+    if (is&lt;HTMLSelectElement&gt;(*m_assistedNode)) {
</ins><span class="cx">         HTMLSelectElement&amp; element = downcast&lt;HTMLSelectElement&gt;(*m_assistedNode);
</span><span class="cx">         information.elementType = InputType::Select;
</span><span class="cx">         const Vector&lt;HTMLElement*&gt;&amp; items = element.listItems();
</span><span class="lines">@@ -2077,7 +2077,7 @@
</span><span class="cx">         // If a select does not have groups, all the option elements have group ID 0.
</span><span class="cx">         for (size_t i = 0; i &lt; count; ++i) {
</span><span class="cx">             HTMLElement* item = items[i];
</span><del>-            if (isHTMLOptionElement(item)) {
</del><ins>+            if (is&lt;HTMLOptionElement&gt;(item)) {
</ins><span class="cx">                 HTMLOptionElement&amp; option = downcast&lt;HTMLOptionElement&gt;(*item);
</span><span class="cx">                 information.selectOptions.append(OptionItem(option.text(), false, parentGroupID, option.selected(), option.fastHasAttribute(WebCore::HTMLNames::disabledAttr)));
</span><span class="cx">             } else if (isHTMLOptGroupElement(item)) {
</span><span class="lines">@@ -2088,14 +2088,14 @@
</span><span class="cx">         }
</span><span class="cx">         information.selectedIndex = element.selectedIndex();
</span><span class="cx">         information.isMultiSelect = element.multiple();
</span><del>-    } else if (isHTMLTextAreaElement(*m_assistedNode)) {
</del><ins>+    } else if (is&lt;HTMLTextAreaElement&gt;(*m_assistedNode)) {
</ins><span class="cx">         HTMLTextAreaElement&amp; element = downcast&lt;HTMLTextAreaElement&gt;(*m_assistedNode);
</span><span class="cx">         information.autocapitalizeType = static_cast&lt;WebAutocapitalizeType&gt;(element.autocapitalizeType());
</span><span class="cx">         information.isAutocorrect = element.autocorrect();
</span><span class="cx">         information.elementType = InputType::TextArea;
</span><span class="cx">         information.isReadOnly = element.isReadOnly();
</span><span class="cx">         information.value = element.value();
</span><del>-    } else if (isHTMLInputElement(*m_assistedNode)) {
</del><ins>+    } else if (is&lt;HTMLInputElement&gt;(*m_assistedNode)) {
</ins><span class="cx">         HTMLInputElement&amp; element = downcast&lt;HTMLInputElement&gt;(*m_assistedNode);
</span><span class="cx">         HTMLFormElement* form = element.form();
</span><span class="cx">         if (form)
</span></span></pre>
</div>
</div>

</body>
</html>