Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 1124313004: Remove special handling of ::before and ::after on RUBY elements. (Closed)

Created:
5 years, 7 months ago by mstensho (USE GERRIT)
Modified:
5 years, 7 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, Roland Steiner, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -988 lines) Patch
A + LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash.html View 2 chunks +9 lines, -12 lines 0 comments Download
A LayoutTests/fast/ruby/add-text-to-block-ruby-with-after-pseudo-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/ruby/ruby-beforeafter.html View 1 chunk +22 lines, -20 lines 0 comments Download
A LayoutTests/fast/ruby/ruby-beforeafter-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content.html View 1 chunk +18 lines, -20 lines 0 comments Download
A LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
D LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
M LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html View 1 chunk +18 lines, -20 lines 0 comments Download
A LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
D LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/platform/android/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/android/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
D LayoutTests/platform/android/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/platform/android/virtual/slimmingpaint/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
D LayoutTests/platform/android/virtual/slimmingpaint/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/platform/linux/fast/ruby/ruby-beforeafter-expected.png View Binary file 0 comments Download
D LayoutTests/platform/linux/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/linux/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/linux/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/linux/virtual/slimmingpaint/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/mac/fast/ruby/ruby-beforeafter-expected.png View Binary file 0 comments Download
D LayoutTests/platform/mac/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/mac/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/mac/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/mac/virtual/slimmingpaint/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/win-xp/fast/ruby/ruby-beforeafter-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win-xp/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/win-xp/virtual/slimmingpaint/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/win/fast/ruby/ruby-beforeafter-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/platform/win/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win/virtual/slimmingpaint/fast/ruby/ruby-beforeafter-expected.txt View 1 chunk +0 lines, -68 lines 0 comments Download
D LayoutTests/virtual/slimmingpaint/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
D LayoutTests/virtual/slimmingpaint/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt View 1 chunk +0 lines, -21 lines 0 comments Download
M Source/core/layout/LayoutRuby.cpp View 5 chunks +8 lines, -144 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
mstensho (USE GERRIT)
One might say that this is one hell of a way to kill a tick, ...
5 years, 7 months ago (2015-05-14 21:49:17 UTC) #1
ojan
<3 changes like this. Any chance you could find the patch that added this code ...
5 years, 7 months ago (2015-05-18 10:05:21 UTC) #3
mstensho (USE GERRIT)
On 2015/05/18 10:05:21, ojan wrote: > <3 changes like this. Any chance you could find ...
5 years, 7 months ago (2015-05-18 19:45:33 UTC) #4
leviw_travelin_and_unemployed
Apologies for the late turnaround -- was at/traveling for BlinkON. When I asked if you'd ...
5 years, 7 months ago (2015-05-18 22:24:22 UTC) #5
ojan
lgtm \o/
5 years, 7 months ago (2015-05-19 01:07:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124313004/1
5 years, 7 months ago (2015-05-19 01:07:39 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 02:51:58 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195506

Powered by Google App Engine
This is Rietveld 408576698