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

Issue 169643002: SubtreeStyleChange for :hover/:active/:focus with ::first-letter. (Closed)

Created:
6 years, 10 months ago by rune
Modified:
6 years, 9 months ago
Reviewers:
esprehn
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

When the ::first-letter pseudo element is added or removed, it causes a Reattach which means everything will work fine for ::first-letter changes. However, if there is a change in ::first-letter style, but the element had ::first-letter style both before and after the change, we would not try to recalc any ::first-letter pseudo for LocalStyleChange. The introduction of LocalStyleChange for :hover/:active/:focus caused a regression for the combination of ::first-letter and e.g. :hover. This fix does a SubtreeStyleChange for :hover/:active/:focus updates when the existing renderStyle is marked as having ::first-letter pseudo. ::first-line is working fine. Added a layout test to make sure it will continue to do so. R=esprehn BUG=344322 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168509

Patch Set 1 #

Patch Set 2 : Reverted code, keeping tests. #

Patch Set 3 : Rebase. #

Patch Set 4 : Check for :hover/:active/:focus instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -3 lines) Patch
A LayoutTests/fast/css/first-letter-hover-002.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-letter-hover-002-expected.html View 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-line-hover-001.html View 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/first-line-hover-001-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rune
6 years, 10 months ago (2014-02-17 13:32:47 UTC) #1
rune
6 years, 10 months ago (2014-02-18 23:05:25 UTC) #2
rune
On 2014/02/18 23:05:25, rune - CET wrote: Another alternative would be to use childrenAffectedByHover/Focus/Active in ...
6 years, 10 months ago (2014-02-20 23:39:55 UTC) #3
rune
On 2014/02/20 23:39:55, rune - CET wrote: > On 2014/02/18 23:05:25, rune - CET wrote: ...
6 years, 10 months ago (2014-02-21 16:44:41 UTC) #4
rune
@esprehn any chance you could take at look at this CL?
6 years, 9 months ago (2014-03-04 20:08:11 UTC) #5
esprehn
On 2014/03/04 20:08:11, rune - CET wrote: > @esprehn any chance you could take at ...
6 years, 9 months ago (2014-03-04 20:24:10 UTC) #6
rune
The CQ bit was checked by rune@opera.com
6 years, 9 months ago (2014-03-04 20:27:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/169643002/110001
6 years, 9 months ago (2014-03-04 20:28:11 UTC) #8
rune
The CQ bit was unchecked by rune@opera.com
6 years, 9 months ago (2014-03-05 10:35:02 UTC) #9
rune
The CQ bit was checked by rune@opera.com
6 years, 9 months ago (2014-03-05 10:35:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/169643002/110001
6 years, 9 months ago (2014-03-05 10:35:24 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 18:28:46 UTC) #12
Message was sent while issue was closed.
Change committed as 168509

Powered by Google App Engine
This is Rietveld 408576698