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: http://svn.webkit.org/repository/webkit/trunk@141516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Assert that computePreferredLogicalWidths never calls setNeedsLayout
https://bugs.webkit.org/show_bug.cgi?id=108539

Reviewed by Tony Chang.

computePreferredLogicalWidths should only set m_minPreferredLogicalWidth
and m_maxPreferredLogicalWidth. It shouldn't have other side-effects.
This is take 2 after this was rolled out because it was missing the guards
in RenderCounter/RenderQuote.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::minPreferredLogicalWidth):
(WebCore::RenderBox::maxPreferredLogicalWidth):
* rendering/RenderCounter.cpp:
(WebCore::RenderCounter::computePreferredLogicalWidths):
* rendering/RenderQuote.cpp:
(WebCore::RenderQuote::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRow.cpp:
(WebCore::RenderMathMLRow::computePreferredLogicalWidths):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141517 268f45cc-cd09-0410-ab3c-d52691b4dbfc