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

Issue 220943002: Use invalidation sets for :hover, :active, and :focus. (Closed)

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

Description

Use invalidation sets for :hover, :active, and :focus. Store an invalidation set for each of :hover, :active, and :focus and use those instead of SubtreeStyleChange when the state changes for elements which have childrenAffectedBy*. R=esprehn@chromium.org,chrishtr@chromium.org BUG=351613 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172703

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Let invalidationSetForSelector do the if-test. #

Patch Set 4 : Rebased. #

Total comments: 7

Patch Set 5 : Use HashMap for pseudo invalidation sets. #

Patch Set 6 : Rebased. #

Patch Set 7 : Added layout tests #

Total comments: 5

Patch Set 8 : Rebased. #

Patch Set 9 : Removed unit tests now covered by layout tests. #

Patch Set 10 : Remove unnecessary seenCombinator handling. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -66 lines) Patch
A LayoutTests/fast/css/invalidation/targeted-hover-invalidation.html View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/targeted-hover-invalidation-expected.txt View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/AffectedByFocusTest.cpp View 1 chunk +63 lines, -0 lines 0 comments Download
M Source/core/css/HoverUpdateTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -49 lines 0 comments Download
M Source/core/css/RuleFeature.h View 1 2 3 4 5 6 7 8 9 6 chunks +5 lines, -3 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +26 lines, -5 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 2 3 4 5 6 7 4 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
rune
This works, but I think it needs some cleanup first.
6 years, 8 months ago (2014-04-01 12:29:26 UTC) #1
rune
Ready for review now. I couldn't decide if it was better to have a single ...
6 years, 8 months ago (2014-04-02 11:39:05 UTC) #2
esprehn
https://codereview.chromium.org/220943002/diff/50001/Source/core/css/AffectedByFocusTest.cpp File Source/core/css/AffectedByFocusTest.cpp (right): https://codereview.chromium.org/220943002/diff/50001/Source/core/css/AffectedByFocusTest.cpp#newcode296 Source/core/css/AffectedByFocusTest.cpp:296: "<div></div>" Can we just write the normal layout tests ...
6 years, 8 months ago (2014-04-04 22:48:26 UTC) #3
rune
https://codereview.chromium.org/220943002/diff/50001/Source/core/css/HoverUpdateTest.cpp File Source/core/css/HoverUpdateTest.cpp (right): https://codereview.chromium.org/220943002/diff/50001/Source/core/css/HoverUpdateTest.cpp#newcode61 Source/core/css/HoverUpdateTest.cpp:61: "<span></span>" On 2014/04/04 22:48:27, esprehn wrote: > Why not ...
6 years, 8 months ago (2014-04-08 16:28:25 UTC) #4
rune
https://codereview.chromium.org/220943002/diff/50001/Source/core/css/AffectedByFocusTest.cpp File Source/core/css/AffectedByFocusTest.cpp (right): https://codereview.chromium.org/220943002/diff/50001/Source/core/css/AffectedByFocusTest.cpp#newcode296 Source/core/css/AffectedByFocusTest.cpp:296: "<div></div>" On 2014/04/04 22:48:27, esprehn wrote: > Can we ...
6 years, 8 months ago (2014-04-10 12:42:12 UTC) #5
rune
@esprehn PTAL
6 years, 8 months ago (2014-04-11 20:05:23 UTC) #6
esprehn
lgtm, but why do we need the combinator check at all? Can't we just do ...
6 years, 8 months ago (2014-04-11 20:23:00 UTC) #7
rune
https://codereview.chromium.org/220943002/diff/110001/Source/core/css/HoverUpdateTest.cpp File Source/core/css/HoverUpdateTest.cpp (right): https://codereview.chromium.org/220943002/diff/110001/Source/core/css/HoverUpdateTest.cpp#newcode72 Source/core/css/HoverUpdateTest.cpp:72: unsigned accessCount = document->styleEngine()->resolverAccessCount() - startCount; On 2014/04/11 20:23:01, ...
6 years, 8 months ago (2014-04-11 22:34:36 UTC) #8
rune
On 2014/04/11 20:23:00, esprehn wrote: > lgtm, but why do we need the combinator check ...
6 years, 8 months ago (2014-04-11 22:43:03 UTC) #9
rune
On 2014/04/11 22:43:03, rune wrote: > On 2014/04/11 20:23:00, esprehn wrote: > > lgtm, but ...
6 years, 8 months ago (2014-04-25 11:56:27 UTC) #10
rune
https://codereview.chromium.org/220943002/diff/110001/Source/core/css/HoverUpdateTest.cpp File Source/core/css/HoverUpdateTest.cpp (right): https://codereview.chromium.org/220943002/diff/110001/Source/core/css/HoverUpdateTest.cpp#newcode72 Source/core/css/HoverUpdateTest.cpp:72: unsigned accessCount = document->styleEngine()->resolverAccessCount() - startCount; On 2014/04/11 22:34:36, ...
6 years, 8 months ago (2014-04-25 11:56:49 UTC) #11
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-25 11:58:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/220943002/170001
6 years, 8 months ago (2014-04-25 11:58:57 UTC) #13
rune
@esprehn: I'm landing this based on your previous l*gtm. I've addressed the issues apart from ...
6 years, 8 months ago (2014-04-25 12:03:03 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 12:37:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-25 12:37:54 UTC) #16
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-25 12:47:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/220943002/170001
6 years, 8 months ago (2014-04-25 12:48:31 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 13:39:48 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-25 13:39:49 UTC) #20
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-25 13:51:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/220943002/170001
6 years, 8 months ago (2014-04-25 13:51:33 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 14:38:46 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-25 14:38:46 UTC) #24
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-25 15:08:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/220943002/170001
6 years, 8 months ago (2014-04-25 15:09:24 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 15:43:11 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-25 15:43:12 UTC) #28
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-26 19:20:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/220943002/170001
6 years, 8 months ago (2014-04-26 19:20:45 UTC) #30
commit-bot: I haz the power
6 years, 8 months ago (2014-04-26 20:06:48 UTC) #31
Message was sent while issue was closed.
Change committed as 172703

Powered by Google App Engine
This is Rietveld 408576698