Remove special handling of ::before and ::after on RUBY elements.
Special handling of ::before and ::after in RUBY was introduced in
https://bugs.webkit.org/show_bug.cgi?id=41040 , followed by some crash fixes,
most notably
https://bugs.webkit.org/show_bug.cgi?id=55930 (which is what
caused this issue - crbug.com/484438 )
No spec requires such special handling, and neither IE nor Firefox does it, and
it just complicates the code.
Just treat them as they were a first or last DOM child of the RUBY parent.
That's how ::before and ::after normally works. This means that now ::before
and ::after will be part of, or even establish, ruby runs.
Added a test for the crasher.
Also rewrote three tests as reftests, since the expectations started to fail
anyway. One test was invalid (ruby-beforeafter.html), since it required special
handling of ::before and ::after, while the two others just got different
rendering due to this change.
BUG=
484438
R=leviw@chromium.org,ojan@chromium.org
Committed:
https://src.chromium.org/viewvc/blink?view=rev&revision=195506