angler-fishThe Vulnerability History Project

Replace static_casts with to* helper functions.

      https://bugs.webkit.org/show_bug.cgi?id=112296

Reviewed by Kentaro Hara.

to* helper functions are preferred over static_cast calls since they
help to catch bad casts easily on the testing infrastructure.

Source/WebCore:

* accessibility/AXObjectCache.cpp:
(WebCore::nodeHasRole):
* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::hasAttribute):
(WebCore::AccessibilityObject::getAttribute):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::anchorElement):
(WebCore::AccessibilityRenderObject::helpText):
(WebCore::AccessibilityRenderObject::checkboxOrRadioRect):
(WebCore::AccessibilityRenderObject::titleUIElement):
(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
(WebCore::AccessibilityRenderObject::accessKey):
(WebCore::AccessibilityRenderObject::setElementAttributeValue):
(WebCore::AccessibilityRenderObject::setValue):
(WebCore::AccessibilityRenderObject::activeDescendant):
(WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
(WebCore::AccessibilityRenderObject::correspondingLabelForControlElement):
(WebCore::AccessibilityRenderObject::inheritsPresentationalRole):
(WebCore::AccessibilityRenderObject::setAccessibleName):
(WebCore::AccessibilityRenderObject::stringRoleForMSAA):
* bindings/gobject/WebKitDOMBinding.cpp:
(WebKit::createWrapper):
* bindings/js/JSClipboardCustom.cpp:
(WebCore::JSClipboard::setDragImage):
* bindings/js/JSElementCustom.cpp:
(WebCore::toJSNewlyCreated):
* bindings/js/JSNodeCustom.cpp:
(WebCore::createWrapperInline):
* bindings/v8/custom/V8ClipboardCustom.cpp:
(WebCore::V8Clipboard::setDragImageMethodCustom):
* bindings/v8/custom/V8ElementCustom.cpp:
(WebCore::wrap):
* bindings/v8/custom/V8NodeCustom.cpp:
(WebCore::wrap):
* dom/Document.cpp:
(WebCore::Document::importNode):
(WebCore::Document::recalcStyle):
(WebCore::Document::setFocusedNode):
(WebCore::Document::updateFocusAppearanceTimerFired):
* dom/Docu
    
commit 93a2b89f9aee4f9e26d978d410eae04322ce8198
-178
+1 -1
+2 -2
+17 -17
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+2 -2
+1 -1
+4 -4
+1 -1
+6 -6
+1 -1
+6 -6
+1 -1
+1 -1
+2 -2
+1 -1
+1 -1
+8 -8
+1 -1
+1 -1
+2 -2
+3 -3
+1 -1
+3 -3
+1 -1
+4 -4
+2 -2
+6 -6
+2 -2
+2 -2
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+2 -2
+1 -1
+1 -1
+1 -1
+3 -3
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+2 -2
+2 -2
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+3 -3
+3 -3
+6 -6
-34
+2 -2
+1 -1
+2 -2
+2 -2
+2 -2
+1 -1
+1 -1
-22
+1 -1
+1 -1
+1 -1
+4 -4
-13
+1 -1
-15
+1 -1
+1 -1
+6 -6
-20
+1 -1
-13
+1 -1
-15
+1 -1
+1 -1
expand_less