Test change to trigger a crash when trying to construct a table frame so we can test the new talos stack tooling, but should compile
Test change to trigger a crash when trying to construct a table frame so we can test the new talos stack tooling, but should compile
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -3134,17 +3134,17 @@ nsCSSFrameConstructor::ConstructTableFra
nsIFrame* aContentParent,
nsStyleContext* aStyleContext,
PRInt32 aNameSpaceID,
PRBool aIsPseudo,
nsFrameItems& aChildItems,
nsIFrame*& aNewOuterFrame,
nsIFrame*& aNewInnerFrame)
{
- *((void*)0) = 1;
+ *((int*)0) = 1;
nsresult rv = NS_OK;
// create the pseudo SC for the outer table as a child of the inner SC
nsRefPtr<nsStyleContext> outerStyleContext;
outerStyleContext = mPresShell->StyleSet()->
ResolvePseudoStyleFor(aContent, nsCSSAnonBoxes::tableOuter, aStyleContext);