Use ASSERT_WITH_SECURITY_IMPLICATION to catch bad casts in DOM
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 01:39:31 +0000 (01:39 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 01:39:31 +0000 (01:39 +0000)
commitd56737d9ca11d55451698db7a6cf163f51aa04d7
tree3d0b895415f5936797e466eb15fb230990860d4d
parent97c9001ae6e88c93240a3fea1978644efbd6bfa7
Use ASSERT_WITH_SECURITY_IMPLICATION to catch bad casts in DOM
https://bugs.webkit.org/show_bug.cgi?id=108490

Reviewed by Eric Seidel.

* dom/ContainerNode.h:
(WebCore::toContainerNode):
* dom/Element.h:
(WebCore::toElement):
* dom/ShadowRoot.h:
(WebCore::toShadowRoot):
* dom/Text.h:
(WebCore::toText):
* html/HTMLElement.h:
(HTMLElement):
(WebCore::toHTMLElement):
* html/HTMLFrameOwnerElement.h:
(WebCore::toFrameOwnerElement):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::hasMediaControls):
* html/HTMLTemplateElement.cpp:
(WebCore::toHTMLTemplateElement):
* html/HTMLUnknownElement.h:
(WebCore::toHTMLUnknownElement):
* html/shadow/InsertionPoint.h:
(WebCore::toInsertionPoint):
* html/shadow/MediaControlElementTypes.cpp:
(WebCore::mediaControlElementType):
* html/shadow/MediaControls.h:
(WebCore::toMediaControls):
* html/shadow/SliderThumbElement.h:
(WebCore::toSliderThumbElement):
* html/shadow/TextControlInnerElements.h:
(WebCore::toInputFieldSpeechButtonElement):
* html/shadow/TextFieldDecorationElement.h:
(WebCore::toTextFieldDecorationElement):
* html/track/WebVTTElement.h:
(WebCore::toWebVTTElement):
* mathml/MathMLElement.h:
(WebCore::toMathMLElement):
* page/scrolling/ScrollingStateFixedNode.h:
(WebCore::toScrollingStateFixedNode):
* page/scrolling/ScrollingStateScrollingNode.h:
(WebCore::toScrollingStateScrollingNode):
* page/scrolling/ScrollingStateStickyNode.h:
(WebCore::toScrollingStateStickyNode):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::resize):
* rendering/svg/SVGResources.cpp:
(WebCore::registerPendingResource):
(WebCore::SVGResources::buildCachedResources):
* svg/SVGElement.h:
(WebCore::toSVGElement):
* svg/SVGStyledElement.h:
(WebCore::toSVGStyledElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
Source/WebCore/ChangeLog
Source/WebCore/dom/ContainerNode.h
Source/WebCore/dom/Element.h
Source/WebCore/dom/ShadowRoot.h
Source/WebCore/dom/Text.h
Source/WebCore/html/HTMLElement.h
Source/WebCore/html/HTMLFrameOwnerElement.h
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLTemplateElement.cpp
Source/WebCore/html/HTMLUnknownElement.h
Source/WebCore/html/shadow/InsertionPoint.h
Source/WebCore/html/shadow/MediaControlElementTypes.cpp
Source/WebCore/html/shadow/MediaControls.h
Source/WebCore/html/shadow/SliderThumbElement.h
Source/WebCore/html/shadow/TextControlInnerElements.h
Source/WebCore/html/shadow/TextFieldDecorationElement.h
Source/WebCore/html/track/WebVTTElement.h
Source/WebCore/mathml/MathMLElement.h
Source/WebCore/page/scrolling/ScrollingStateFixedNode.h
Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h
Source/WebCore/page/scrolling/ScrollingStateStickyNode.h
Source/WebCore/rendering/RenderLayer.cpp
Source/WebCore/rendering/svg/SVGResources.cpp
Source/WebCore/svg/SVGElement.h
Source/WebCore/svg/SVGStyledElement.h