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

Issue 2728383002: Make ::first-line invalidation work when added or removed. (Closed)

Created:
3 years, 9 months ago by rune
Modified:
3 years, 9 months ago
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, sof, eae+blinkwatch, leviw+renderwatch, blink-reviews-dom_chromium.org, dglazkov+blink, jchaffraix+rendering, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ::first-line invalidation work when added or removed. We were only invalidating ::first-line properly when both old and new ComputedStyle contained ::first-line styles. Now, instead call setNeedsLayoutAndPrefWidthsRecalc to trigger changes when either old or new ComputedStyle does not have ::first-line style. The ::first-line invalidation is moved from Element to LayoutObject, and unnecessary traversal code removed. I have not been able to come up with a case where we need to compare PseudoIdFirstLineInherited style, so diffing that is removed. R=mstensho@opera.com BUG=562418, 564239, 689979 Review-Url: https://codereview.chromium.org/2728383002 Cr-Commit-Position: refs/heads/master@{#455088} Committed: https://chromium.googlesource.com/chromium/src/+/3f2d0c6bbce99fc2880356ff2ebfd323b5bcd8bc

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed review issues. #

Messages

Total messages: 17 (10 generated)
rune
ptal
3 years, 9 months ago (2017-03-06 15:17:30 UTC) #3
mstensho (USE GERRIT)
lgtm https://codereview.chromium.org/2728383002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2728383002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1954 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1954: if (styleRef().hasPseudoStyle(PseudoIdFirstLine) && oldPseudoStyle) This will never be ...
3 years, 9 months ago (2017-03-07 10:04:27 UTC) #6
rune
https://codereview.chromium.org/2728383002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2728383002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1954 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1954: if (styleRef().hasPseudoStyle(PseudoIdFirstLine) && oldPseudoStyle) On 2017/03/07 10:04:26, mstensho wrote: ...
3 years, 9 months ago (2017-03-07 10:42:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728383002/20001
3 years, 9 months ago (2017-03-07 10:43:15 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/401812)
3 years, 9 months ago (2017-03-07 11:43:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728383002/20001
3 years, 9 months ago (2017-03-07 12:19:33 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 16:10:05 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/3f2d0c6bbce99fc2880356ff2ebf...

Powered by Google App Engine
This is Rietveld 408576698