Incorrect beforeChild parent calculation in RenderRubyBase::moveChildren.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 16:52:55 +0000 (16:52 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 16:52:55 +0000 (16:52 +0000)
commitd7f5b31d35e3d048001c1c7157372df0cdf08c4e
treefc947fe64d3c1893680c4eebb8b56453b70a78af
parent0031568f0a972e87dc0406d626771df060d46286
Incorrect beforeChild parent calculation in RenderRubyBase::moveChildren.
https://bugs.webkit.org/show_bug.cgi?id=80297

Reviewed by Julien Chaffraix.

Source/WebCore:

beforeChild might share the same anonymous block parent with other previous
siblings. Before moving the children across ruby bases, we need to make sure
to split the tree across the beforeChild correctly.

Test: fast/ruby/ruby-text-before-child-split.html

* rendering/RenderRubyBase.cpp:
(WebCore::RenderRubyBase::moveChildren):

LayoutTests:

Test passes if you see the inline continuation in the first ruby base and only the
simple text in the second ruby base.

* fast/ruby/ruby-text-before-child-split-expected.png: Added.
* fast/ruby/ruby-text-before-child-split-expected.txt: Added.
* fast/ruby/ruby-text-before-child-split.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/ruby/ruby-text-before-child-split-expected.png [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-text-before-child-split-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-text-before-child-split.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderRubyBase.cpp