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

Review URL: https://codereview.chromium.org/1124313004

git-svn-id: svn://svn.chromium.org/blink/trunk@195506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
36 files changed