haikuwebkit/LayoutTests/mathml/msubsup-fuzz-expected.txt

5 lines
43 B
Plaintext
Raw Permalink Normal View History

This test passes if it does not crash.
Ensure MathML render tree are clean by the end of FrameView::layout(). https://bugs.webkit.org/show_bug.cgi?id=162824 Patch by Frederic Wang <fwang@igalia.com> on 2016-11-12 Reviewed by Darin Adler. Source/WebCore: clearNeedsLayout is not called during the layout of invalid MathML markup. We introduce a new helper function to perform proper layout of such markup and we now call it from the various MathML layoutBlock functions. Additionally, we ensure that the preferred width is dirty after computation in RenderMathMLScripts::computePreferredLogicalWidths. Test: mathml/invalid-markup.html * rendering/mathml/RenderMathMLBlock.cpp: (WebCore::RenderMathMLBlock::layoutInvalidMarkup): Helper function to layout invalid markup. * rendering/mathml/RenderMathMLBlock.h: Declare layoutInvalidMarkup. * rendering/mathml/RenderMathMLFraction.cpp: (WebCore::RenderMathMLFraction::layoutBlock): Call layoutInvalidMarkup. * rendering/mathml/RenderMathMLRoot.cpp: (WebCore::RenderMathMLRoot::layoutBlock): Ditto. * rendering/mathml/RenderMathMLScripts.cpp: (WebCore::RenderMathMLScripts::computePreferredLogicalWidths): Set the preferred width dirty after computation to avoid that it is computed again and again. (WebCore::RenderMathMLScripts::layoutBlock): Call layoutInvalidMarkup. * rendering/mathml/RenderMathMLUnderOver.cpp: (WebCore::RenderMathMLUnderOver::layoutBlock): Ditto. LayoutTests: * mathml/invalid-markup-expected.txt: Added. * mathml/invalid-markup.html: Added. * mathml/mn-as-list-item-assert-expected.txt: Update text expectation now that invalid subtree appears in the output. * mathml/msubsup-fuzz-expected.txt: Ditto. * accessibility/mac/mathml-multiscript.txt: Ditto. Canonical link: https://commits.webkit.org/182366@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-12 14:50:50 +00:00
3