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

Issue 2850743003: Stop matching scrollbar pseudo element without a scrollbar. (Closed)

Created:
3 years, 7 months ago by rune
Modified:
3 years, 7 months ago
Reviewers:
esprehn
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop matching scrollbar pseudo element without a scrollbar. While matching rules for elements, we mark elements as affected-by-* for user action pseudo classes like hover. It means that when the element is later hovered, we need to recalculate style to apply hover styles to that element. In general, we currently don't support pseudo classes after pseudo elements, but for scrollbar pseudo elements we do: ::-webkit-scrollbar:hover {} However, we do not want such rules to mark the element as affected-by- hover. The hover style on scrollbar parts get their hover style updated when hovered regardless of any flags, and making scrollbar pseudo element rules affect hover updates on the actual elements causes unnecessary style recalcs. BUG=716006 Review-Url: https://codereview.chromium.org/2850743003 Cr-Commit-Position: refs/heads/master@{#469309} Committed: https://chromium.googlesource.com/chromium/src/+/40bdd179053a9b7c6c7eb3a82462a860f981e5d8

Patch Set 1 #

Patch Set 2 : Moved AffectedByFocusTest.cpp -> AffectedByPseudoTest.cpp. #

Patch Set 3 : Added unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -378 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp View 1 1 chunk +0 lines, -353 lines 0 comments Download
A + third_party/WebKit/Source/core/css/AffectedByPseudoTest.cpp View 1 2 17 chunks +37 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
rune
ptal Re-introducing parts of: https://codereview.chromium.org/1605523002
3 years, 7 months ago (2017-04-28 21:37:35 UTC) #6
esprehn
How do affected by bits impact table layout? This makes me nervous there's a hidden ...
3 years, 7 months ago (2017-04-28 22:07:35 UTC) #7
esprehn
On 2017/04/28 at 22:07:35, esprehn wrote: > How do affected by bits impact table layout? ...
3 years, 7 months ago (2017-04-28 22:07:52 UTC) #8
rune
On 2017/04/28 22:07:52, esprehn wrote: > On 2017/04/28 at 22:07:35, esprehn wrote: > > How ...
3 years, 7 months ago (2017-04-28 22:36:32 UTC) #9
esprehn
On 2017/04/28 at 22:36:32, rune wrote: > On 2017/04/28 22:07:52, esprehn wrote: > > On ...
3 years, 7 months ago (2017-04-28 22:43:09 UTC) #10
rune
On 2017/04/28 22:43:09, esprehn wrote: > On 2017/04/28 at 22:36:32, rune wrote: > > On ...
3 years, 7 months ago (2017-05-02 13:58:06 UTC) #11
rune
On 2017/05/02 13:58:06, rune wrote: > On 2017/04/28 22:43:09, esprehn wrote: > > On 2017/04/28 ...
3 years, 7 months ago (2017-05-03 09:12:00 UTC) #12
esprehn
lgtm, I think you want to update your change description to talk about avoiding setting ...
3 years, 7 months ago (2017-05-03 18:09:44 UTC) #13
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/2850743003/40001
3 years, 7 months ago (2017-05-04 08:42:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/445220)
3 years, 7 months ago (2017-05-04 10:40:32 UTC) #18
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/2850743003/40001
3 years, 7 months ago (2017-05-04 10:52:13 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 11:34:44 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/40bdd179053a9b7c6c7eb3a82462...

Powered by Google App Engine
This is Rietveld 408576698