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

Issue 2729373003: Bit-mask incorrectly removed first-line pseudo bit. (Closed)

Created:
3 years, 9 months ago by rune
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews-style_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bit-mask incorrectly removed first-line pseudo bit. The m_pseudoBits member only contains the 8 bits for the public pseudo element bits, yet we used a mask to retrieve them. That mask was incorrectly set to 0x1fe when it should have been 0xff. Anyway, that mask is unnecessary and removed. The mask issue caused StylePropagationDiff, returned from diffPseudoStyles, to be NoChange for pure ::first-line changes. That NoChange return were the only case which triggered first-line invalidation properly. Instead, always check for pseudo style changes in pseudoStyleCacheIsInvalid. This fixes issue 698451. The pseudoStyleCacheIsInvalid method has a weird name, has bugs, and should be put on LayoutObject and called as part of setStyle instead. That is for follow-up CLs. R=meade@chromium.org,mstensho@opera.com BUG=698451 Review-Url: https://codereview.chromium.org/2729373003 Cr-Commit-Position: refs/heads/master@{#454850} Committed: https://chromium.googlesource.com/chromium/src/+/f193ee6d21e6548ed425746ec80fb71faa7998a5

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -27 lines) Patch
A third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter-expected.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 3 chunks +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleTest.cpp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
rune
ptal
3 years, 9 months ago (2017-03-06 00:06:15 UTC) #3
meade_UTC10
This lgtm, but you have a bunch of failing LayoutTests still... https://codereview.chromium.org/2729373003/diff/1/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html File third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html (right): ...
3 years, 9 months ago (2017-03-06 02:58:29 UTC) #6
rune
On 2017/03/06 02:58:29, Eddy wrote: > This lgtm, but you have a bunch of failing ...
3 years, 9 months ago (2017-03-06 09:51:10 UTC) #7
rune
https://codereview.chromium.org/2729373003/diff/1/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html File third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html (right): https://codereview.chromium.org/2729373003/diff/1/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html#newcode20 third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html:20: })); On 2017/03/06 02:58:29, Eddy wrote: > Nit: I ...
3 years, 9 months ago (2017-03-06 09:51:19 UTC) #8
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/2729373003/20001
3 years, 9 months ago (2017-03-06 09:52:14 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 11:34:26 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f193ee6d21e6548ed425746ec80f...

Powered by Google App Engine
This is Rietveld 408576698