Skip to content
  • inferno@chromium.org's avatar
    Replace static_casts with to* functions. · 228bd363
    inferno@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=112072
    
    Reviewed by Philip Rogers.
    
    to* functions are preferred over static_cast calls since they
    help to catch bad casts easily on the testing infrastructure.
    
    Source/WebCore:
    
    * accessibility/AccessibilityMenuList.cpp:
    (WebCore::AccessibilityMenuList::canSetFocusAttribute):
    * bindings/objc/DOM.mm:
    (kitClass):
    * bindings/v8/V8LazyEventListener.cpp:
    (WebCore::V8LazyEventListener::prepareListenerObject):
    * css/SelectorChecker.cpp:
    (WebCore::SelectorChecker::checkOne):
    * editing/ApplyStyleCommand.cpp:
    (WebCore::isLegacyAppleStyleSpan):
    (WebCore::isEmptyFontTag):
    (WebCore::ApplyStyleCommand::applyBlockStyle):
    * editing/FormatBlockCommand.cpp:
    (WebCore::isElementForFormatBlock):
    * editing/ReplaceSelectionCommand.cpp:
    (WebCore::isMailPasteAsQuotationNode):
    (WebCore::haveSameTagName):
    (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
    (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder):
    * history/CachedPage.cpp:
    (WebCore::CachedPage::restore):
    * html/ColorInputType.cpp:
    (WebCore::ColorInputType::suggestions):
    * html/HTMLTableRowsCollection.cpp:
    (WebCore::isInHead):
    (WebCore::isInBody):
    (WebCore::isInFoot):
    * inspector/DOMPatchSupport.cpp:
    (WebCore::DOMPatchSupport::innerPatchNode):
    * page/PageSerializer.cpp:
    (WebCore::SerializerMarkupAccumulator::appendCustomAttributes):
    * plugins/PluginView.cpp:
    (WebCore::PluginView::getValue):
    * rendering/RenderEmbeddedObject.cpp:
    (WebCore::RenderEmbeddedObject::paintContents):
    (WebCore::RenderEmbeddedObject::handleUnavailablePluginIndicatorEvent):
    * rendering/RenderLayer.cpp:
    (WebCore::RenderLayer::name):
    * rendering/RenderMedia.cpp:
    (WebCore::RenderMedia::mediaElement):
    * rendering/RenderSearchField.cpp:
    (WebCore::RenderSearchField::autosaveName):
    * rendering/RenderTextControl.cpp:
    (WebCore::RenderTextControl::textFormControlElement):
    (WebCore::updateUserModifyProperty):
    * rendering/mathml/RenderMathMLFenced.cpp:
    (WebCore::RenderMathMLFenced::updateFromElement):
    * rendering/mathml/RenderMathMLFraction.cpp:
    (WebCore::RenderMathMLFraction::updateFromElement):
    * xml/parser/XMLDocumentParserLibxml2.cpp:
    (WebCore::XMLDocumentParser::XMLDocumentParser):
    (WebCore::XMLDocumentParser::endElementNs):
    
    Source/WebKit/chromium:
    
    * src/ChromeClientImpl.cpp:
    (WebKit::ChromeClientImpl::focusedNodeChanged):
    * src/ContextMenuClientImpl.cpp:
    (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
    * src/DOMUtilitiesPrivate.cpp:
    (WebCore::toHTMLElement):
    * src/WebSearchableFormData.cpp:
    (HTMLNames::IsSelectInDefaultState):
    
    Source/WebKit/mac:
    
    * WebView/WebView.mm:
    (-[WebView _enterFullscreenForNode:WebCore::]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    228bd363