haikuwebkit/LayoutTests/fast/ruby
Zalan Bujtas 9678cb792b Do not collapse ruby's internal anonymous blocks
https://bugs.webkit.org/show_bug.cgi?id=223296
<rdar://75486993>

Reviewed by Antti Koivisto.

Source/WebCore:

The ruby subtree stucture is as follows:
 1 RenderRuby object, corresponding to the whole <ruby> HTML element
 1+ RenderRubyRun (anonymous)
     0 or 1 RenderRubyText (anonymous)
     0 or 1 RenderRubyBase (anonymous)

This patch ensures that we don't collapse those anonymous blocks while destroying inner content.

Test: fast/ruby/crash-when-ruby-base-is-collapsed.html

* rendering/RenderRubyRun.h:

LayoutTests:

* fast/ruby/crash-when-ruby-base-is-collapsed-expected.txt: Added.
* fast/ruby/crash-when-ruby-base-is-collapsed.html: Added.


Canonical link: https://commits.webkit.org/235421@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-03-17 19:06:26 +00:00
..
resources
after-block-doesnt-crash-expected.txt
after-block-doesnt-crash.html
after-doesnt-crash-expected.txt
after-doesnt-crash.html
after-table-doesnt-crash-expected.txt
after-table-doesnt-crash.html
assert-when-content-size-is-negative-expected.txt ASSERTION FAILED: contentSize >= 0 in WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax 2016-08-25 01:55:04 +00:00
assert-when-content-size-is-negative.html
assert-with-block-rt-child-and-emphasis-expected.txt
assert-with-block-rt-child-and-emphasis.html
assert-with-listitem-and-block-ruby-expected.txt
assert-with-listitem-and-block-ruby.html
base-shorter-than-text.html
before-block-doesnt-crash-expected.txt
before-block-doesnt-crash.html
before-child-is-block-after-expected.txt RenderTreeBuilder::Block::attachIgnoringContinuation should handle inline-block anonymous containers. 2020-01-14 03:28:33 +00:00
before-child-is-block-after.html RenderTreeBuilder::Block::attachIgnoringContinuation should handle inline-block anonymous containers. 2020-01-14 03:28:33 +00:00
before-doesnt-crash-expected.txt
before-doesnt-crash.html
bopomofo-letter-spacing.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
bopomofo-mixed-expected.txt LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
bopomofo-mixed.html LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
bopomofo-rl.html
bopomofo.html
continuation-and-column-spanner-crash-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
continuation-and-column-spanner-crash.html
crash-insert-duplicate-rt-element-expected.txt Nullptr crash in WebCore::RenderTreeBuilder::attach 2019-12-20 02:03:51 +00:00
crash-insert-duplicate-rt-element.html Nullptr crash in WebCore::RenderTreeBuilder::attach 2019-12-20 02:03:51 +00:00
crash-when-attaching-to-base-expected.txt [RenderTreeBuilder] Invalidate beforeChild when parent changes to RubyBase 2021-03-06 18:21:25 +00:00
crash-when-attaching-to-base.html [RenderTreeBuilder] Invalidate beforeChild when parent changes to RubyBase 2021-03-06 18:21:25 +00:00
crash-when-paginated-ruby-expected.txt
crash-when-paginated-ruby.html
crash-when-ruby-base-is-collapsed-expected.txt Do not collapse ruby's internal anonymous blocks 2021-03-17 19:06:26 +00:00
crash-when-ruby-base-is-collapsed.html Do not collapse ruby's internal anonymous blocks 2021-03-17 19:06:26 +00:00
crash-when-ruby-is-set-to-inline-block-expected.txt REGRESSION (r176262): Invalid cast in WebCore`WebCore::RootInlineBox::selectionTop 2015-02-13 12:48:09 +00:00
crash-when-ruby-is-set-to-inline-block.html
crash-when-ruby-rt-is-non-block-expected.txt
crash-when-ruby-rt-is-non-block.html
crash-with-before-after-on-ruby-expected.txt
crash-with-before-after-on-ruby.html
float-object-doesnt-crash-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
float-object-doesnt-crash.html [Testing] Rename test header commands to match names in WebPreferences*.yaml 2020-10-13 17:16:15 +00:00
float-overhang-from-ruby-text-expected.png
float-overhang-from-ruby-text-expected.txt Do not collapse ruby's internal anonymous blocks 2021-03-17 19:06:26 +00:00
float-overhang-from-ruby-text.html
floating-ruby-text-expected.png
floating-ruby-text-expected.txt
floating-ruby-text.html
generated-after-counter-doesnt-crash-expected.txt
generated-after-counter-doesnt-crash.html
generated-before-and-after-counter-doesnt-crash-expected.txt
generated-before-and-after-counter-doesnt-crash.html
generated-before-counter-doesnt-crash-expected.txt
generated-before-counter-doesnt-crash.html
modify-positioned-ruby-text-crash-expected.txt Positioned children of ruby runs not handled correctly during layout 2012-04-19 20:15:18 +00:00
modify-positioned-ruby-text-crash.html
nested-ruby.html
overhang-horizontal-expected.png
overhang-horizontal-expected.txt Ruby overhang uses ints instead of floats 2014-12-16 22:53:19 +00:00
overhang-horizontal-no-overlap1-expected.png
overhang-horizontal-no-overlap1-expected.txt Overhangs a ruby by no more than half the width of the neighboring text. 2011-09-17 01:36:07 +00:00
overhang-horizontal-no-overlap1.html
overhang-horizontal-no-overlap2-expected.png
overhang-horizontal-no-overlap2-expected.txt
overhang-horizontal-no-overlap2.html
overhang-horizontal.html
overhang-vertical-expected.png
overhang-vertical-expected.txt
overhang-vertical-mixed-expected.txt LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
overhang-vertical-mixed.html LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
overhang-vertical-no-overlap1-expected.png
overhang-vertical-no-overlap1-expected.txt
overhang-vertical-no-overlap1.html
overhang-vertical-no-overlap2-expected.png
overhang-vertical-no-overlap2-expected.txt
overhang-vertical-no-overlap2-mixed-expected.txt LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
overhang-vertical-no-overlap2-mixed.html LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
overhang-vertical-no-overlap2.html LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
overhang-vertical.html LayoutTests/imported/w3c: 2020-03-25 17:03:50 +00:00
parse-rp-expected.txt
parse-rp.html
position-after-expected.png
position-after-expected.txt [GTK] Rebaseline after r268520 2020-10-15 19:39:54 +00:00
position-after.html
positioned-ruby-text-expected.png
positioned-ruby-text-expected.txt
positioned-ruby-text.html
rp-inside-rtc-expected.html
rp-inside-rtc.html
ruby-base-merge-block-children-crash-2-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
ruby-base-merge-block-children-crash-2.html
ruby-base-merge-block-children-crash.html
ruby-beforeafter.html
ruby-block-style-not-updated-expected.png
ruby-block-style-not-updated-expected.txt
ruby-block-style-not-updated-with-before-after-content-expected.png
ruby-block-style-not-updated-with-before-after-content-expected.txt
ruby-block-style-not-updated-with-before-after-content.html Japanese line breaking rules need to be respected before and after Ruby. 2015-01-29 22:03:40 +00:00
ruby-block-style-not-updated.html
ruby-empty-rt.html
ruby-expansion-cjk-2-expected.html
ruby-expansion-cjk-2.html Make fast/ruby/ruby-expansion tests more robust 2020-06-17 03:09:40 +00:00
ruby-expansion-cjk-3-expected.html
ruby-expansion-cjk-3.html Make fast/ruby/ruby-expansion tests more robust 2020-06-17 03:09:40 +00:00
ruby-expansion-cjk-4-expected.html
ruby-expansion-cjk-4.html Make fast/ruby/ruby-expansion tests more robust 2020-06-17 03:09:40 +00:00
ruby-expansion-cjk-5-expected.html
ruby-expansion-cjk-5.html
ruby-expansion-cjk-expected.html
ruby-expansion-cjk.html Make fast/ruby/ruby-expansion tests more robust 2020-06-17 03:09:40 +00:00
ruby-illegal-1-expected.txt
ruby-illegal-1.html
ruby-illegal-2-expected.txt Bug 33266 - WebCore::InlineFlowBox::determineSpacingForFlowBoxes ReadAV@NULL (43c64e8abbda6766e5f5edbd254c2d57) 2010-01-20 07:46:52 +00:00
ruby-illegal-2.html
ruby-illegal-3-expected.txt Bug 33266 - WebCore::InlineFlowBox::determineSpacingForFlowBoxes ReadAV@NULL (43c64e8abbda6766e5f5edbd254c2d57) 2010-01-20 07:46:52 +00:00
ruby-illegal-3.html
ruby-illegal-4-expected.txt
ruby-illegal-4.html
ruby-illegal-5-expected.txt
ruby-illegal-5.html
ruby-illegal-6-expected.txt
ruby-illegal-6.html
ruby-illegal-7-expected.txt
ruby-illegal-7.html
ruby-illegal-combined-expected.txt
ruby-illegal-combined.html
ruby-inline-margin-collapse-crash-expected.txt isAnonymousInlineBlock() should exclude any ruby content. 2016-01-06 16:57:35 +00:00
ruby-inline-margin-collapse-crash.html
ruby-inline-style-not-updated-expected.png
ruby-inline-style-not-updated-expected.txt
ruby-inline-style-not-updated-with-before-after-content-expected.png
ruby-inline-style-not-updated-with-before-after-content-expected.txt
ruby-inline-style-not-updated-with-before-after-content.html
ruby-inline-style-not-updated.html
ruby-inline-table.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-justification-expected.html
ruby-justification-hittest-expected.txt
ruby-justification-hittest.html
ruby-justification.html
ruby-length.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-line-height-expected.txt
ruby-line-height.html
ruby-overhang-crash-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
ruby-overhang-crash.html
ruby-overhang-margin-crash-expected.txt REGRESSION: Stack overflow in RenderBlockFlow::layoutBlock after increasing the font size to max in some RTL vertical books. 2017-07-06 05:49:50 +00:00
ruby-overhang-margin-crash.html
ruby-punctuation-avoid-breaking-expected.html
ruby-punctuation-avoid-breaking.html
ruby-remove-expected.txt
ruby-remove-no-base-expected.txt
ruby-remove-no-base.html
ruby-remove.html
ruby-run-break.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-runs-spans.html
ruby-runs.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-simple-rp.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-simple.html Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
ruby-svg-crash-expected.txt Heap-use-after-free in WebCore::InlineFlowBox::deleteLine 2013-05-06 21:18:30 +00:00
ruby-svg-crash.html
ruby-text-before-after-content-expected.png
ruby-text-before-after-content.html
ruby-text-before-child-split-expected.png
ruby-text-before-child-split-expected.txt
ruby-text-before-child-split.html
ruby-text-indent-expected.txt
ruby-text-indent.html
ruby-trailing.html
rubyDOM-insert-rt-block-1-expected.txt Copying text with ruby inserts new lines around rt elements 2012-12-12 17:53:55 +00:00
rubyDOM-insert-rt-block-1.html
rubyDOM-insert-rt-block-2-expected.txt
rubyDOM-insert-rt-block-2.html
rubyDOM-insert-rt-block-3-expected.txt
rubyDOM-insert-rt-block-3.html
rubyDOM-insert-rt.html
rubyDOM-insert-text1.html
rubyDOM-insert-text2.html
rubyDOM-insert-text3.html
rubyDOM-remove-rt-block-1-expected.txt
rubyDOM-remove-rt-block-1.html
rubyDOM-remove-rt-block-2-expected.txt
rubyDOM-remove-rt-block-2.html
rubyDOM-remove-rt-block-3-expected.txt
rubyDOM-remove-rt-block-3.html
rubyDOM-remove-rt1.html
rubyDOM-remove-rt2.html
rubyDOM-remove-text1.html
rubyDOM-remove-text2.html
rubyrun-has-bad-child-expected.txt RenderRubyRun should not mark child renderers dirty at the end of layout. 2016-10-13 03:48:54 +00:00
rubyrun-has-bad-child.html
select-ruby.html
text-decoration-in-descendants-ruby-expected.html CSS2:text-decoration: <rt> element should not inherit text-decoration property 2012-02-23 23:55:51 +00:00
text-decoration-in-descendants-ruby.html
text-emphasis-expected.txt
text-emphasis.html