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

Issue 540533004: Use style invalidation for more pseudo classes. (Closed)

Created:
6 years, 3 months ago by rune
Modified:
6 years, 3 months ago
Reviewers:
esprehn
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, rwlbuis, rune+blink, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use style invalidation for more pseudo classes. Support descendant invalidation sets for :checked, :disabled, :enabled, :indeterminate, :target, :link, and :visited. Pseudo state changes for those classes were recalculated with SubtreeStyleChange in didAffectSelector. Instead, schedule invalidation sets when these pseudo states change. This change does not fully fix 388965 as there are still several SubtreeStyleChange instances left. The pseudo flags could be removed from the SelectRuleFeatureSet since they will now be present through invalidation sets in the m_cssRuleFeatureSet. R=esprehn@chromium.org BUG=388965 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182507

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 4

Patch Set 3 : Fixed review issue #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -87 lines) Patch
A LayoutTests/fast/css/invalidation/checked-pseudo.html View 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/checked-pseudo-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/disabled-pseudo.html View 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/disabled-pseudo-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/enabled-pseudo.html View 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/enabled-pseudo-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/fieldset-disabled.html View 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/fieldset-disabled-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/indeterminate-pseudo.html View 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/indeterminate-pseudo-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/link-pseudo.html View 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/link-pseudo-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/target-pseudo.html View 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/target-pseudo-expected.txt View 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/visited-pseudo.html View 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/visited-pseudo-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/css/RuleFeature.h View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 3 chunks +2 lines, -12 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M Source/core/dom/shadow/ElementShadow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/SelectRuleFeatureSet.h View 4 chunks +13 lines, -14 lines 0 comments Download
M Source/core/dom/shadow/SelectRuleFeatureSet.cpp View 1 chunk +0 lines, -33 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M Source/core/html/HTMLOptGroupElement.cpp View 1 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/html/HTMLOptionElement.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/html/HTMLProgressElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/RadioButtonGroupScope.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
rune
6 years, 3 months ago (2014-09-04 07:22:51 UTC) #1
rune
Rebased, ptal.
6 years, 3 months ago (2014-09-10 08:13:18 UTC) #2
rune
ping
6 years, 3 months ago (2014-09-16 18:52:53 UTC) #3
esprehn
lgtm, this is going to make us call shadowWhereNodeCanBeDistributed more, but we shouldn't optimize that ...
6 years, 3 months ago (2014-09-19 04:55:18 UTC) #4
rune
https://codereview.chromium.org/540533004/diff/20001/LayoutTests/fast/css/invalidation/link-pseudo.html File LayoutTests/fast/css/invalidation/link-pseudo.html (right): https://codereview.chromium.org/540533004/diff/20001/LayoutTests/fast/css/invalidation/link-pseudo.html#newcode35 LayoutTests/fast/css/invalidation/link-pseudo.html:35: link.offsetTop; // Force recalc. On 2014/09/19 04:55:17, esprehn wrote: ...
6 years, 3 months ago (2014-09-23 12:23:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/540533004/40001
6 years, 3 months ago (2014-09-23 12:24:01 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Source/core/css/RuleFeature.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 3 months ago (2014-09-23 12:24:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/540533004/60001
6 years, 3 months ago (2014-09-23 12:42:19 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/28371)
6 years, 3 months ago (2014-09-23 14:49:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/540533004/60001
6 years, 3 months ago (2014-09-23 16:04:11 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 16:48:42 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 182507

Powered by Google App Engine
This is Rietveld 408576698