Add ASSERT_WITH_SECURITY_IMPLICATION to detect bad casts in rendering
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 04:14:26 +0000 (04:14 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 04:14:26 +0000 (04:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=107743

Reviewed by Eric Seidel.

* rendering/InlineFlowBox.h:
(WebCore::toInlineFlowBox):
* rendering/RenderBR.h:
(WebCore::toRenderBR):
* rendering/RenderBlock.h:
(WebCore::toRenderBlock):
* rendering/RenderBox.h:
(WebCore::toRenderBox):
* rendering/RenderBoxModelObject.h:
(WebCore::toRenderBoxModelObject):
* rendering/RenderButton.h:
(WebCore::toRenderButton):
* rendering/RenderCombineText.h:
(WebCore::toRenderCombineText):
* rendering/RenderCounter.h:
(WebCore::toRenderCounter):
* rendering/RenderDetailsMarker.h:
(WebCore::toRenderDetailsMarker):
* rendering/RenderEmbeddedObject.h:
(WebCore::toRenderEmbeddedObject):
* rendering/RenderFieldset.h:
(WebCore::toRenderFieldset):
* rendering/RenderFileUploadControl.h:
(WebCore::toRenderFileUploadControl):
* rendering/RenderFlowThread.h:
(WebCore::toRenderFlowThread):
* rendering/RenderFrame.h:
(WebCore::toRenderFrame):
* rendering/RenderFrameSet.h:
(WebCore::toRenderFrameSet):
* rendering/RenderFullScreen.h:
(WebCore::toRenderFullScreen):
* rendering/RenderIFrame.h:
(WebCore::toRenderIFrame):
* rendering/RenderImage.h:
(WebCore::toRenderImage):
* rendering/RenderInline.h:
(WebCore::toRenderInline):
* rendering/RenderLayerModelObject.h:
(WebCore::toRenderLayerModelObject):
* rendering/RenderListBox.h:
(WebCore::toRenderListBox):
* rendering/RenderListItem.h:
(WebCore::toRenderListItem):
* rendering/RenderListMarker.h:
(WebCore::toRenderListMarker):
* rendering/RenderMedia.h:
(WebCore::toRenderMedia):
* rendering/RenderMenuList.h:
(WebCore::toRenderMenuList):
* rendering/RenderMeter.h:
(WebCore::toRenderMeter):
* rendering/RenderMultiColumnBlock.h:
(WebCore::toRenderMultiColumnBlock):
* rendering/RenderMultiColumnSet.h:
(WebCore::toRenderMultiColumnSet):
* rendering/RenderNamedFlowThread.h:
(WebCore::toRenderNamedFlowThread):
* rendering/RenderPart.h:
(WebCore::toRenderPart):
* rendering/RenderProgress.h:
(WebCore::toRenderProgress):
* rendering/RenderQuote.h:
(WebCore::toRenderQuote):
* rendering/RenderRegion.h:
(WebCore::toRenderRegion):
* rendering/RenderRubyRun.h:
(WebCore::toRenderRubyRun):
* rendering/RenderScrollbarPart.h:
(WebCore::toRenderScrollbarPart):
* rendering/RenderSearchField.h:
(WebCore::toRenderSearchField):
* rendering/RenderSlider.h:
(WebCore::toRenderSlider):
* rendering/RenderSnapshottedPlugIn.h:
(WebCore::toRenderSnapshottedPlugIn):
* rendering/RenderTable.h:
(WebCore::toRenderTable):
* rendering/RenderTableCaption.h:
(WebCore::toRenderTableCaption):
* rendering/RenderTableCell.h:
(WebCore::toRenderTableCell):
* rendering/RenderTableCol.h:
(WebCore::toRenderTableCol):
* rendering/RenderTableRow.h:
(WebCore::toRenderTableRow):
* rendering/RenderTableSection.h:
(WebCore::toRenderTableSection):
* rendering/RenderText.h:
(WebCore::toRenderText):
* rendering/RenderTextControl.h:
(WebCore::toRenderTextControl):
* rendering/RenderTextControlMultiLine.h:
(WebCore::toRenderTextControlMultiLine):
* rendering/RenderTextControlSingleLine.h:
(WebCore::toRenderTextControlSingleLine):
* rendering/RenderVideo.h:
(WebCore::toRenderVideo):
* rendering/RenderView.h:
(WebCore::toRenderView):
* rendering/RenderWidget.h:
(WebCore::toRenderWidget):
* rendering/mathml/RenderMathMLBlock.h:
(WebCore::toRenderMathMLBlock):
* rendering/svg/RenderSVGContainer.h:
(WebCore::toRenderSVGContainer):
* rendering/svg/RenderSVGGradientStop.h:
(WebCore::toRenderSVGGradientStop):
* rendering/svg/RenderSVGImage.h:
(WebCore::toRenderSVGImage):
* rendering/svg/RenderSVGInlineText.h:
(WebCore::toRenderSVGInlineText):
* rendering/svg/RenderSVGRoot.h:
(WebCore::toRenderSVGRoot):
* rendering/svg/RenderSVGShape.h:
(WebCore::toRenderSVGShape):
* rendering/svg/RenderSVGText.h:
(WebCore::toRenderSVGText):

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

60 files changed:
Source/WebCore/ChangeLog
Source/WebCore/rendering/InlineFlowBox.h
Source/WebCore/rendering/RenderBR.h
Source/WebCore/rendering/RenderBlock.h
Source/WebCore/rendering/RenderBox.h
Source/WebCore/rendering/RenderBoxModelObject.h
Source/WebCore/rendering/RenderButton.h
Source/WebCore/rendering/RenderCombineText.h
Source/WebCore/rendering/RenderCounter.h
Source/WebCore/rendering/RenderDetailsMarker.h
Source/WebCore/rendering/RenderEmbeddedObject.h
Source/WebCore/rendering/RenderFieldset.h
Source/WebCore/rendering/RenderFileUploadControl.h
Source/WebCore/rendering/RenderFlowThread.h
Source/WebCore/rendering/RenderFrame.h
Source/WebCore/rendering/RenderFrameSet.h
Source/WebCore/rendering/RenderFullScreen.h
Source/WebCore/rendering/RenderIFrame.h
Source/WebCore/rendering/RenderImage.h
Source/WebCore/rendering/RenderInline.h
Source/WebCore/rendering/RenderLayerModelObject.h
Source/WebCore/rendering/RenderListBox.h
Source/WebCore/rendering/RenderListItem.h
Source/WebCore/rendering/RenderListMarker.h
Source/WebCore/rendering/RenderMedia.h
Source/WebCore/rendering/RenderMenuList.h
Source/WebCore/rendering/RenderMeter.h
Source/WebCore/rendering/RenderMultiColumnBlock.h
Source/WebCore/rendering/RenderMultiColumnSet.h
Source/WebCore/rendering/RenderNamedFlowThread.h
Source/WebCore/rendering/RenderPart.h
Source/WebCore/rendering/RenderProgress.h
Source/WebCore/rendering/RenderQuote.h
Source/WebCore/rendering/RenderRegion.h
Source/WebCore/rendering/RenderRubyRun.h
Source/WebCore/rendering/RenderScrollbarPart.h
Source/WebCore/rendering/RenderSearchField.h
Source/WebCore/rendering/RenderSlider.h
Source/WebCore/rendering/RenderSnapshottedPlugIn.h
Source/WebCore/rendering/RenderTable.h
Source/WebCore/rendering/RenderTableCaption.h
Source/WebCore/rendering/RenderTableCell.h
Source/WebCore/rendering/RenderTableCol.h
Source/WebCore/rendering/RenderTableRow.h
Source/WebCore/rendering/RenderTableSection.h
Source/WebCore/rendering/RenderText.h
Source/WebCore/rendering/RenderTextControl.h
Source/WebCore/rendering/RenderTextControlMultiLine.h
Source/WebCore/rendering/RenderTextControlSingleLine.h
Source/WebCore/rendering/RenderVideo.h
Source/WebCore/rendering/RenderView.h
Source/WebCore/rendering/RenderWidget.h
Source/WebCore/rendering/mathml/RenderMathMLBlock.h
Source/WebCore/rendering/svg/RenderSVGContainer.h
Source/WebCore/rendering/svg/RenderSVGGradientStop.h
Source/WebCore/rendering/svg/RenderSVGImage.h
Source/WebCore/rendering/svg/RenderSVGInlineText.h
Source/WebCore/rendering/svg/RenderSVGRoot.h
Source/WebCore/rendering/svg/RenderSVGShape.h
Source/WebCore/rendering/svg/RenderSVGText.h

index ab218b2..bd1eed0 100644 (file)
@@ -1,3 +1,129 @@
+2013-01-23  Abhishek Arya  <inferno@chromium.org>
+
+        Add ASSERT_WITH_SECURITY_IMPLICATION to detect bad casts in rendering
+        https://bugs.webkit.org/show_bug.cgi?id=107743
+
+        Reviewed by Eric Seidel.
+
+        * rendering/InlineFlowBox.h:
+        (WebCore::toInlineFlowBox):
+        * rendering/RenderBR.h:
+        (WebCore::toRenderBR):
+        * rendering/RenderBlock.h:
+        (WebCore::toRenderBlock):
+        * rendering/RenderBox.h:
+        (WebCore::toRenderBox):
+        * rendering/RenderBoxModelObject.h:
+        (WebCore::toRenderBoxModelObject):
+        * rendering/RenderButton.h:
+        (WebCore::toRenderButton):
+        * rendering/RenderCombineText.h:
+        (WebCore::toRenderCombineText):
+        * rendering/RenderCounter.h:
+        (WebCore::toRenderCounter):
+        * rendering/RenderDetailsMarker.h:
+        (WebCore::toRenderDetailsMarker):
+        * rendering/RenderEmbeddedObject.h:
+        (WebCore::toRenderEmbeddedObject):
+        * rendering/RenderFieldset.h:
+        (WebCore::toRenderFieldset):
+        * rendering/RenderFileUploadControl.h:
+        (WebCore::toRenderFileUploadControl):
+        * rendering/RenderFlowThread.h:
+        (WebCore::toRenderFlowThread):
+        * rendering/RenderFrame.h:
+        (WebCore::toRenderFrame):
+        * rendering/RenderFrameSet.h:
+        (WebCore::toRenderFrameSet):
+        * rendering/RenderFullScreen.h:
+        (WebCore::toRenderFullScreen):
+        * rendering/RenderIFrame.h:
+        (WebCore::toRenderIFrame):
+        * rendering/RenderImage.h:
+        (WebCore::toRenderImage):
+        * rendering/RenderInline.h:
+        (WebCore::toRenderInline):
+        * rendering/RenderLayerModelObject.h:
+        (WebCore::toRenderLayerModelObject):
+        * rendering/RenderListBox.h:
+        (WebCore::toRenderListBox):
+        * rendering/RenderListItem.h:
+        (WebCore::toRenderListItem):
+        * rendering/RenderListMarker.h:
+        (WebCore::toRenderListMarker):
+        * rendering/RenderMedia.h:
+        (WebCore::toRenderMedia):
+        * rendering/RenderMenuList.h:
+        (WebCore::toRenderMenuList):
+        * rendering/RenderMeter.h:
+        (WebCore::toRenderMeter):
+        * rendering/RenderMultiColumnBlock.h:
+        (WebCore::toRenderMultiColumnBlock):
+        * rendering/RenderMultiColumnSet.h:
+        (WebCore::toRenderMultiColumnSet):
+        * rendering/RenderNamedFlowThread.h:
+        (WebCore::toRenderNamedFlowThread):
+        * rendering/RenderPart.h:
+        (WebCore::toRenderPart):
+        * rendering/RenderProgress.h:
+        (WebCore::toRenderProgress):
+        * rendering/RenderQuote.h:
+        (WebCore::toRenderQuote):
+        * rendering/RenderRegion.h:
+        (WebCore::toRenderRegion):
+        * rendering/RenderRubyRun.h:
+        (WebCore::toRenderRubyRun):
+        * rendering/RenderScrollbarPart.h:
+        (WebCore::toRenderScrollbarPart):
+        * rendering/RenderSearchField.h:
+        (WebCore::toRenderSearchField):
+        * rendering/RenderSlider.h:
+        (WebCore::toRenderSlider):
+        * rendering/RenderSnapshottedPlugIn.h:
+        (WebCore::toRenderSnapshottedPlugIn):
+        * rendering/RenderTable.h:
+        (WebCore::toRenderTable):
+        * rendering/RenderTableCaption.h:
+        (WebCore::toRenderTableCaption):
+        * rendering/RenderTableCell.h:
+        (WebCore::toRenderTableCell):
+        * rendering/RenderTableCol.h:
+        (WebCore::toRenderTableCol):
+        * rendering/RenderTableRow.h:
+        (WebCore::toRenderTableRow):
+        * rendering/RenderTableSection.h:
+        (WebCore::toRenderTableSection):
+        * rendering/RenderText.h:
+        (WebCore::toRenderText):
+        * rendering/RenderTextControl.h:
+        (WebCore::toRenderTextControl):
+        * rendering/RenderTextControlMultiLine.h:
+        (WebCore::toRenderTextControlMultiLine):
+        * rendering/RenderTextControlSingleLine.h:
+        (WebCore::toRenderTextControlSingleLine):
+        * rendering/RenderVideo.h:
+        (WebCore::toRenderVideo):
+        * rendering/RenderView.h:
+        (WebCore::toRenderView):
+        * rendering/RenderWidget.h:
+        (WebCore::toRenderWidget):
+        * rendering/mathml/RenderMathMLBlock.h:
+        (WebCore::toRenderMathMLBlock):
+        * rendering/svg/RenderSVGContainer.h:
+        (WebCore::toRenderSVGContainer):
+        * rendering/svg/RenderSVGGradientStop.h:
+        (WebCore::toRenderSVGGradientStop):
+        * rendering/svg/RenderSVGImage.h:
+        (WebCore::toRenderSVGImage):
+        * rendering/svg/RenderSVGInlineText.h:
+        (WebCore::toRenderSVGInlineText):
+        * rendering/svg/RenderSVGRoot.h:
+        (WebCore::toRenderSVGRoot):
+        * rendering/svg/RenderSVGShape.h:
+        (WebCore::toRenderSVGShape):
+        * rendering/svg/RenderSVGText.h:
+        (WebCore::toRenderSVGText):
+
 2013-01-23  Elliott Sprehn  <esprehn@gmail.com>
 
         Don't allocate rare data on every Element on removal
index 3f086bc..699d609 100644 (file)
@@ -350,13 +350,13 @@ private:
 
 inline InlineFlowBox* toInlineFlowBox(InlineBox* object)
 {
-    ASSERT(!object || object->isInlineFlowBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isInlineFlowBox());
     return static_cast<InlineFlowBox*>(object);
 }
 
 inline const InlineFlowBox* toInlineFlowBox(const InlineBox* object)
 {
-    ASSERT(!object || object->isInlineFlowBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isInlineFlowBox());
     return static_cast<const InlineFlowBox*>(object);
 }
 
index 3a64075..91486f2 100644 (file)
@@ -63,13 +63,13 @@ private:
 
 inline RenderBR* toRenderBR(RenderObject* object)
 { 
-    ASSERT(!object || object->isBR());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBR());
     return static_cast<RenderBR*>(object);
 }
 
 inline const RenderBR* toRenderBR(const RenderObject* object)
 { 
-    ASSERT(!object || object->isBR());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBR());
     return static_cast<const RenderBR*>(object);
 }
 
index 0054312..1ed211c 100644 (file)
@@ -1236,13 +1236,13 @@ private:
 
 inline RenderBlock* toRenderBlock(RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock());
     return static_cast<RenderBlock*>(object);
 }
 
 inline const RenderBlock* toRenderBlock(const RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock());
     return static_cast<const RenderBlock*>(object);
 }
 
index b4d1f5e..330af82 100644 (file)
@@ -689,13 +689,13 @@ private:
 
 inline RenderBox* toRenderBox(RenderObject* object)
 { 
-    ASSERT(!object || object->isBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBox());
     return static_cast<RenderBox*>(object);
 }
 
 inline const RenderBox* toRenderBox(const RenderObject* object)
 { 
-    ASSERT(!object || object->isBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBox());
     return static_cast<const RenderBox*>(object);
 }
 
index 93e47d3..1f0564d 100644 (file)
@@ -310,13 +310,13 @@ private:
 
 inline RenderBoxModelObject* toRenderBoxModelObject(RenderObject* object)
 { 
-    ASSERT(!object || object->isBoxModelObject());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject());
     return static_cast<RenderBoxModelObject*>(object);
 }
 
 inline const RenderBoxModelObject* toRenderBoxModelObject(const RenderObject* object)
 { 
-    ASSERT(!object || object->isBoxModelObject());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject());
     return static_cast<const RenderBoxModelObject*>(object);
 }
 
index 63f19ac..e599721 100644 (file)
@@ -76,13 +76,13 @@ private:
 
 inline RenderButton* toRenderButton(RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderButton());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderButton());
     return static_cast<RenderButton*>(object);
 }
 
 inline const RenderButton* toRenderButton(const RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderButton());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderButton());
     return static_cast<const RenderButton*>(object);
 }
 
index 26021c7..6ee9ff2 100644 (file)
@@ -51,13 +51,13 @@ private:
 
 inline RenderCombineText* toRenderCombineText(RenderObject* object)
 { 
-    ASSERT(!object || object->isCombineText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCombineText());
     return static_cast<RenderCombineText*>(object);
 }
 
 inline const RenderCombineText* toRenderCombineText(const RenderObject* object)
 { 
-    ASSERT(!object || object->isCombineText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCombineText());
     return static_cast<const RenderCombineText*>(object);
 }
 
index b1e2ce4..ff6aa90 100644 (file)
@@ -63,7 +63,7 @@ private:
 
 inline RenderCounter* toRenderCounter(RenderObject* object)
 {
-    ASSERT(!object || object->isCounter());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCounter());
     return static_cast<RenderCounter*>(object);
 }
 
index b63b145..cd91b01 100644 (file)
@@ -46,13 +46,13 @@ private:
 
 inline RenderDetailsMarker* toRenderDetailsMarker(RenderObject* object)
 {
-    ASSERT(!object || object->isDetailsMarker());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isDetailsMarker());
     return static_cast<RenderDetailsMarker*>(object);
 }
 
 inline const RenderDetailsMarker* toRenderDetailsMarker(const RenderObject* object)
 {
-    ASSERT(!object || object->isDetailsMarker());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isDetailsMarker());
     return static_cast<const RenderDetailsMarker*>(object);
 }
 
index ef09ebb..277d2ec 100644 (file)
@@ -111,7 +111,7 @@ private:
 
 inline RenderEmbeddedObject* toRenderEmbeddedObject(RenderObject* object)
 {
-    ASSERT(!object || object->isEmbeddedObject());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isEmbeddedObject());
     return static_cast<RenderEmbeddedObject*>(object);
 }
 
index d703f76..498120f 100644 (file)
@@ -51,7 +51,7 @@ private:
 
 inline RenderFieldset* toRenderFieldset(RenderObject* object)
 {
-    ASSERT(!object || object->isFieldset());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFieldset());
     return static_cast<RenderFieldset*>(object);
 }
 
index 89453f4..34d1604 100644 (file)
@@ -63,13 +63,13 @@ private:
 
 inline RenderFileUploadControl* toRenderFileUploadControl(RenderObject* object)
 {
-    ASSERT(!object || object->isFileUploadControl());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFileUploadControl());
     return static_cast<RenderFileUploadControl*>(object);
 }
 
 inline const RenderFileUploadControl* toRenderFileUploadControl(const RenderObject* object)
 {
-    ASSERT(!object || object->isFileUploadControl());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFileUploadControl());
     return static_cast<const RenderFileUploadControl*>(object);
 }
 
index 6ad0ea8..c65b7da 100644 (file)
@@ -203,13 +203,13 @@ protected:
 
 inline RenderFlowThread* toRenderFlowThread(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderFlowThread());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderFlowThread());
     return static_cast<RenderFlowThread*>(object);
 }
 
 inline const RenderFlowThread* toRenderFlowThread(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderFlowThread());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderFlowThread());
     return static_cast<const RenderFlowThread*>(object);
 }
 
index 6f48e26..9eadb93 100644 (file)
@@ -47,7 +47,7 @@ private:
 
 inline RenderFrame* toRenderFrame(RenderObject* object)
 {
-    ASSERT(!object || object->isFrame());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrame());
     return static_cast<RenderFrame*>(object);
 }
 
index af1782a..19180a5 100644 (file)
@@ -142,7 +142,7 @@ private:
 
 inline RenderFrameSet* toRenderFrameSet(RenderObject* object)
 {
-    ASSERT(!object || object->isFrameSet());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet());
     return static_cast<RenderFrameSet*>(object);
 }
 
index 5083fed..ef5e1c4 100644 (file)
@@ -57,7 +57,7 @@ protected:
     
 inline RenderFullScreen* toRenderFullScreen(RenderObject* object)
 {
-    ASSERT(object->isRenderFullScreen());
+    ASSERT_WITH_SECURITY_IMPLICATION(object->isRenderFullScreen());
     return static_cast<RenderFullScreen*>(object);
 }
     
index 74163eb..f0ac3a2 100644 (file)
@@ -59,13 +59,13 @@ private:
 
 inline RenderIFrame* toRenderIFrame(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderIFrame());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderIFrame());
     return static_cast<RenderIFrame*>(object);
 }
 
 inline const RenderIFrame* toRenderIFrame(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderIFrame());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderIFrame());
     return static_cast<const RenderIFrame*>(object);
 }
 
index 3db7b92..0940bf6 100644 (file)
@@ -113,13 +113,13 @@ private:
 
 inline RenderImage* toRenderImage(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderImage());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderImage());
     return static_cast<RenderImage*>(object);
 }
 
 inline const RenderImage* toRenderImage(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderImage());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderImage());
     return static_cast<const RenderImage*>(object);
 }
 
index a01f5db..be52cc9 100644 (file)
@@ -192,13 +192,13 @@ private:
 
 inline RenderInline* toRenderInline(RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderInline());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderInline());
     return static_cast<RenderInline*>(object);
 }
 
 inline const RenderInline* toRenderInline(const RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderInline());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderInline());
     return static_cast<const RenderInline*>(object);
 }
 
index ee9a1a9..bbf4b2a 100644 (file)
@@ -70,13 +70,13 @@ private:
 
 inline RenderLayerModelObject* toRenderLayerModelObject(RenderObject* object)
 {
-    ASSERT(!object || object->isLayerModelObject());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
     return static_cast<RenderLayerModelObject*>(object);
 }
 
 inline const RenderLayerModelObject* toRenderLayerModelObject(const RenderObject* object)
 {
-    ASSERT(!object || object->isLayerModelObject());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
     return static_cast<const RenderLayerModelObject*>(object);
 }
 
index a18d1ae..47a7a3d 100644 (file)
@@ -153,7 +153,7 @@ private:
 
 inline RenderListBox* toRenderListBox(RenderObject* object)
 { 
-    ASSERT(!object || object->isListBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListBox());
     return static_cast<RenderListBox*>(object);
 }
 
index b8a8c31..d88fc49 100644 (file)
@@ -90,7 +90,7 @@ private:
 
 inline RenderListItem* toRenderListItem(RenderObject* object)
 {
-    ASSERT(!object || object->isListItem());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListItem());
     return static_cast<RenderListItem*>(object);
 }
 
index f13b21e..afcdf4d 100644 (file)
@@ -90,13 +90,13 @@ private:
 
 inline RenderListMarker* toRenderListMarker(RenderObject* object)
 {
-    ASSERT(!object || object->isListMarker());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListMarker());
     return static_cast<RenderListMarker*>(object);
 }
 
 inline const RenderListMarker* toRenderListMarker(const RenderObject* object)
 {
-    ASSERT(!object || object->isListMarker());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListMarker());
     return static_cast<const RenderListMarker*>(object);
 }
 
index f86d1e3..48b852e 100644 (file)
@@ -68,7 +68,7 @@ private:
 
 inline RenderMedia* toRenderMedia(RenderObject* object)
 {
-    ASSERT(!object || object->isMedia());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMedia());
     return static_cast<RenderMedia*>(object);
 }
 
index 8a9f35e..f0d066b 100644 (file)
@@ -141,7 +141,7 @@ private:
 
 inline RenderMenuList* toRenderMenuList(RenderObject* object)
 {
-    ASSERT(!object || object->isMenuList());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMenuList());
     return static_cast<RenderMenuList*>(object);
 }
 
index 36c6a24..c1269db 100644 (file)
@@ -51,7 +51,7 @@ private:
 
 inline RenderMeter* toRenderMeter(RenderObject* object)
 {
-    ASSERT(!object || object->isMeter());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMeter());
     return static_cast<RenderMeter*>(object);
 }
 
index d8283fd..308b161 100644 (file)
@@ -72,13 +72,13 @@ private:
 
 inline RenderMultiColumnBlock* toRenderMultiColumnBlock(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderMultiColumnBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnBlock());
     return static_cast<RenderMultiColumnBlock*>(object);
 }
 
 inline const RenderMultiColumnBlock* toRenderMultiColumnBlock(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderMultiColumnBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnBlock());
     return static_cast<const RenderMultiColumnBlock*>(object);
 }
 
index bf75015..3a4cdd9 100644 (file)
@@ -135,13 +135,13 @@ private:
 
 inline RenderMultiColumnSet* toRenderMultiColumnSet(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderMultiColumnSet());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnSet());
     return static_cast<RenderMultiColumnSet*>(object);
 }
 
 inline const RenderMultiColumnSet* toRenderMultiColumnSet(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderMultiColumnSet());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnSet());
     return static_cast<const RenderMultiColumnSet*>(object);
 }
 
index 7b3dcc2..ceca0a9 100644 (file)
@@ -119,13 +119,13 @@ private:
 
 inline RenderNamedFlowThread* toRenderNamedFlowThread(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderNamedFlowThread());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderNamedFlowThread());
     return static_cast<RenderNamedFlowThread*>(object);
 }
 
 inline const RenderNamedFlowThread* toRenderNamedFlowThread(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderNamedFlowThread());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderNamedFlowThread());
     return static_cast<const RenderNamedFlowThread*>(object);
 }
 
index 3cd2cd3..9658636 100644 (file)
@@ -55,7 +55,7 @@ private:
 
 inline RenderPart* toRenderPart(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderPart());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderPart());
     return static_cast<RenderPart*>(object);
 }
 
index 481426b..1428d83 100644 (file)
@@ -61,7 +61,7 @@ private:
 
 inline RenderProgress* toRenderProgress(RenderObject* object)
 {
-    ASSERT(!object || object->isProgress());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isProgress());
     return static_cast<RenderProgress*>(object);
 }
 
index 947f3a6..17e97b2 100644 (file)
@@ -67,7 +67,7 @@ private:
 
 inline RenderQuote* toRenderQuote(RenderObject* object)
 {
-    ASSERT(!object || object->isQuote());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isQuote());
     return static_cast<RenderQuote*>(object);
 }
 
index a1fe87c..d9ef45f 100644 (file)
@@ -206,13 +206,13 @@ private:
 
 inline RenderRegion* toRenderRegion(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderRegion());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderRegion());
     return static_cast<RenderRegion*>(object);
 }
 
 inline const RenderRegion* toRenderRegion(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderRegion());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderRegion());
     return static_cast<const RenderRegion*>(object);
 }
 
index c7b7533..1e553a6 100644 (file)
@@ -80,13 +80,13 @@ private:
 
 inline RenderRubyRun* toRenderRubyRun(RenderObject* object)
 {
-    ASSERT(!object || object->isRubyRun());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRubyRun());
     return static_cast<RenderRubyRun*>(object);
 }
 
 inline const RenderRubyRun* toRenderRubyRun(const RenderObject* object)
 {
-    ASSERT(!object || object->isBox());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBox());
     return static_cast<const RenderRubyRun*>(object);
 }
 
index 1cff118..75b7b51 100644 (file)
@@ -78,13 +78,13 @@ private:
 
 inline RenderScrollbarPart* toRenderScrollbarPart(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderScrollbarPart());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart());
     return static_cast<RenderScrollbarPart*>(object);
 }
 
 inline const RenderScrollbarPart* toRenderScrollbarPart(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderScrollbarPart());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart());
     return static_cast<const RenderScrollbarPart*>(object);
 }
 
index 0da9c32..3fa236b 100644 (file)
@@ -92,7 +92,7 @@ private:
 
 inline RenderSearchField* toRenderSearchField(RenderObject* object)
 {
-    ASSERT(!object || object->isTextField());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextField());
     return static_cast<RenderSearchField*>(object);
 }
 
index 75aeabb..8603a90 100644 (file)
@@ -52,7 +52,7 @@ private:
 
 inline RenderSlider* toRenderSlider(RenderObject* object)
 {
-    ASSERT(!object || object->isSlider());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSlider());
     return static_cast<RenderSlider*>(object);
 }
 
index 078b0fd..b9de62c 100644 (file)
@@ -88,7 +88,7 @@ private:
 
 inline RenderSnapshottedPlugIn* toRenderSnapshottedPlugIn(RenderObject* object)
 {
-    ASSERT(!object || object->isSnapshottedPlugIn());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSnapshottedPlugIn());
     return static_cast<RenderSnapshottedPlugIn*>(object);
 }
 
index 706e13a..5760241 100644 (file)
@@ -348,13 +348,13 @@ inline RenderTableSection* RenderTable::topSection() const
 
 inline RenderTable* toRenderTable(RenderObject* object)
 {
-    ASSERT(!object || object->isTable());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable());
     return static_cast<RenderTable*>(object);
 }
 
 inline const RenderTable* toRenderTable(const RenderObject* object)
 {
-    ASSERT(!object || object->isTable());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable());
     return static_cast<const RenderTable*>(object);
 }
 
index 700610e..3fb51db 100644 (file)
@@ -43,13 +43,13 @@ private:
 
 inline RenderTableCaption* toRenderTableCaption(RenderObject* object)
 {
-    ASSERT(!object || object->isTableCaption());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCaption());
     return static_cast<RenderTableCaption*>(object);
 }
 
 inline const RenderTableCaption* toRenderTableCaption(const RenderObject* object)
 {
-    ASSERT(!object || object->isTableCaption());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCaption());
     return static_cast<const RenderTableCaption*>(object);
 }
 
index 24fdc2c..0c74885 100644 (file)
@@ -277,13 +277,13 @@ private:
 
 inline RenderTableCell* toRenderTableCell(RenderObject* object)
 {
-    ASSERT(!object || object->isTableCell());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell());
     return static_cast<RenderTableCell*>(object);
 }
 
 inline const RenderTableCell* toRenderTableCell(const RenderObject* object)
 {
-    ASSERT(!object || object->isTableCell());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell());
     return static_cast<const RenderTableCell*>(object);
 }
 
index ada5db6..6631842 100644 (file)
@@ -107,13 +107,13 @@ private:
 
 inline RenderTableCol* toRenderTableCol(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderTableCol());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol());
     return static_cast<RenderTableCol*>(object);
 }
 
 inline const RenderTableCol* toRenderTableCol(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderTableCol());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol());
     return static_cast<const RenderTableCol*>(object);
 }
 
index 9b260b8..f572fe5 100644 (file)
@@ -119,13 +119,13 @@ private:
 
 inline RenderTableRow* toRenderTableRow(RenderObject* object)
 {
-    ASSERT(!object || object->isTableRow());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
     return static_cast<RenderTableRow*>(object);
 }
 
 inline const RenderTableRow* toRenderTableRow(const RenderObject* object)
 {
-    ASSERT(!object || object->isTableRow());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
     return static_cast<const RenderTableRow*>(object);
 }
 
index d5e9f45..8903b28 100644 (file)
@@ -278,13 +278,13 @@ private:
 
 inline RenderTableSection* toRenderTableSection(RenderObject* object)
 {
-    ASSERT(!object || object->isTableSection());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection());
     return static_cast<RenderTableSection*>(object);
 }
 
 inline const RenderTableSection* toRenderTableSection(const RenderObject* object)
 {
-    ASSERT(!object || object->isTableSection());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection());
     return static_cast<const RenderTableSection*>(object);
 }
 
index 9d126b7..77c5477 100644 (file)
@@ -215,13 +215,13 @@ private:
 
 inline RenderText* toRenderText(RenderObject* object)
 { 
-    ASSERT(!object || object->isText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isText());
     return static_cast<RenderText*>(object);
 }
 
 inline const RenderText* toRenderText(const RenderObject* object)
 { 
-    ASSERT(!object || object->isText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isText());
     return static_cast<const RenderText*>(object);
 }
 
index 9707bb7..f1f592e 100644 (file)
@@ -84,13 +84,13 @@ private:
 
 inline RenderTextControl* toRenderTextControl(RenderObject* object)
 { 
-    ASSERT(!object || object->isTextControl());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl());
     return static_cast<RenderTextControl*>(object);
 }
 
 inline const RenderTextControl* toRenderTextControl(const RenderObject* object)
 { 
-    ASSERT(!object || object->isTextControl());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl());
     return static_cast<const RenderTextControl*>(object);
 }
 
index 1f90172..0ee6e08 100644 (file)
@@ -48,7 +48,7 @@ private:
 
 inline RenderTextControlMultiLine* toRenderTextControlMultiLine(RenderObject* object)
 { 
-    ASSERT(!object || object->isTextArea());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextArea());
     return static_cast<RenderTextControlMultiLine*>(object);
 }
 
index 16f1c77..24bd662 100644 (file)
@@ -99,7 +99,7 @@ inline HTMLElement* RenderTextControlSingleLine::innerBlockElement() const
 
 inline RenderTextControlSingleLine* toRenderTextControlSingleLine(RenderObject* object)
 {
-    ASSERT(!object || object->isTextField());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextField());
     return static_cast<RenderTextControlSingleLine*>(object);
 }
 
index d6efe93..ed50c82 100644 (file)
@@ -88,7 +88,7 @@ private:
 
 inline RenderVideo* toRenderVideo(RenderObject* object)
 {
-    ASSERT(!object || object->isVideo());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isVideo());
     return static_cast<RenderVideo*>(object);
 }
 
index 889396d..ea31062 100644 (file)
@@ -343,13 +343,13 @@ private:
 
 inline RenderView* toRenderView(RenderObject* object)
 {
-    ASSERT(!object || object->isRenderView());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderView());
     return static_cast<RenderView*>(object);
 }
 
 inline const RenderView* toRenderView(const RenderObject* object)
 {
-    ASSERT(!object || object->isRenderView());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderView());
     return static_cast<const RenderView*>(object);
 }
 
index 2dd61a1..9d2ad7f 100644 (file)
@@ -104,13 +104,13 @@ private:
 
 inline RenderWidget* toRenderWidget(RenderObject* object)
 {
-    ASSERT(!object || object->isWidget());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isWidget());
     return static_cast<RenderWidget*>(object);
 }
 
 inline const RenderWidget* toRenderWidget(const RenderObject* object)
 {
-    ASSERT(!object || object->isWidget());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isWidget());
     return static_cast<const RenderWidget*>(object);
 }
 
index e2d8da4..cd93f99 100644 (file)
@@ -104,13 +104,13 @@ protected:
 
 inline RenderMathMLBlock* toRenderMathMLBlock(RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderMathMLBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMathMLBlock());
     return static_cast<RenderMathMLBlock*>(object);
 }
 
 inline const RenderMathMLBlock* toRenderMathMLBlock(const RenderObject* object)
 { 
-    ASSERT(!object || object->isRenderMathMLBlock());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMathMLBlock());
     return static_cast<const RenderMathMLBlock*>(object);
 }
 
index 4d9a824..4d21b79 100644 (file)
@@ -91,13 +91,13 @@ private:
   
 inline RenderSVGContainer* toRenderSVGContainer(RenderObject* object)
 {
-    ASSERT(!object || object->isSVGContainer());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGContainer());
     return static_cast<RenderSVGContainer*>(object);
 }
 
 inline const RenderSVGContainer* toRenderSVGContainer(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGContainer());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGContainer());
     return static_cast<const RenderSVGContainer*>(object);
 }
 
index 1c0e403..2eeebed 100644 (file)
@@ -57,7 +57,7 @@ private:
 
 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGGradientStop());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop());
     return static_cast<const RenderSVGGradientStop*>(object);
 }
 
index e5633b1..232ad83 100644 (file)
@@ -83,13 +83,13 @@ private:
 
 inline RenderSVGImage* toRenderSVGImage(RenderObject* object)
 {
-    ASSERT(!object || object->isSVGImage());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGImage());
     return static_cast<RenderSVGImage*>(object);
 }
 
 inline const RenderSVGImage* toRenderSVGImage(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGImage());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGImage());
     return static_cast<const RenderSVGImage*>(object);
 }
 
index 7643cf1..b6fc830 100644 (file)
@@ -69,13 +69,13 @@ private:
 
 inline RenderSVGInlineText* toRenderSVGInlineText(RenderObject* object)
 {
-    ASSERT(!object || object->isSVGInlineText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText());
     return static_cast<RenderSVGInlineText*>(object);
 }
 
 inline const RenderSVGInlineText* toRenderSVGInlineText(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGInlineText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText());
     return static_cast<const RenderSVGInlineText*>(object);
 }
 
index 35d93aa..7ba0df9 100644 (file)
@@ -130,13 +130,13 @@ private:
 
 inline RenderSVGRoot* toRenderSVGRoot(RenderObject* object)
 { 
-    ASSERT(!object || object->isSVGRoot());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGRoot());
     return static_cast<RenderSVGRoot*>(object);
 }
 
 inline const RenderSVGRoot* toRenderSVGRoot(const RenderObject* object)
 { 
-    ASSERT(!object || object->isSVGRoot());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGRoot());
     return static_cast<const RenderSVGRoot*>(object);
 }
 
index 2631818..44a3b4a 100644 (file)
@@ -149,13 +149,13 @@ private:
 
 inline RenderSVGShape* toRenderSVGShape(RenderObject* object)
 {
-    ASSERT(!object || object->isSVGShape());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape());
     return static_cast<RenderSVGShape*>(object);
 }
 
 inline const RenderSVGShape* toRenderSVGShape(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGShape());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGShape());
     return static_cast<const RenderSVGShape*>(object);
 }
 
index 6f37057..4d4f4ae 100644 (file)
@@ -104,13 +104,13 @@ private:
 
 inline RenderSVGText* toRenderSVGText(RenderObject* object)
 {
-    ASSERT(!object || object->isSVGText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText());
     return static_cast<RenderSVGText*>(object);
 }
 
 inline const RenderSVGText* toRenderSVGText(const RenderObject* object)
 {
-    ASSERT(!object || object->isSVGText());
+    ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText());
     return static_cast<const RenderSVGText*>(object);
 }