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

Issue 620333002: Use invalidation sets for :invalid/:valid/:required/:optional. (Closed)

Created:
6 years, 2 months ago by rune
Modified:
6 years, 1 month ago
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
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use invalidation sets for :invalid/:valid/:required/:optional. Create invalidation sets for :invalid, :valid, :required, and :optional pseudo classes and schedule invalidations instead of using SubtreeStyleChange when those states change. BUG=419873 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184392

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 2

Patch Set 3 : Rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -22 lines) Patch
A LayoutTests/fast/css/invalidation/required-optional-pseudo.html View 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/required-optional-pseudo-expected.txt View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/valid-invalid-pseudo.html View 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/valid-invalid-pseudo-expected.txt View 1 chunk +25 lines, -0 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/StyleChangeReason.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/StyleChangeReason.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFieldSetElement.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 3 chunks +6 lines, -12 lines 2 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/forms/TextFieldInputType.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
rune
:valid/:invalid and :optional/:required rely on each other, also for my tests, so I didn't split ...
6 years, 2 months ago (2014-10-03 14:08:39 UTC) #1
rune
6 years, 2 months ago (2014-10-06 07:57:37 UTC) #3
rune
Rebased.
6 years, 2 months ago (2014-10-16 11:18:43 UTC) #4
rune
6 years, 2 months ago (2014-10-20 08:55:04 UTC) #6
rune
ping
6 years, 2 months ago (2014-10-24 08:45:13 UTC) #7
dglazkov
lgtm https://codereview.chromium.org/620333002/diff/20001/Source/core/html/HTMLFormElement.cpp File Source/core/html/HTMLFormElement.cpp (right): https://codereview.chromium.org/620333002/diff/20001/Source/core/html/HTMLFormElement.cpp#newcode728 Source/core/html/HTMLFormElement.cpp:728: // For now unconditionally order style recalculation, which ...
6 years, 2 months ago (2014-10-24 17:13:25 UTC) #9
rune
https://codereview.chromium.org/620333002/diff/20001/Source/core/html/HTMLFormElement.cpp File Source/core/html/HTMLFormElement.cpp (right): https://codereview.chromium.org/620333002/diff/20001/Source/core/html/HTMLFormElement.cpp#newcode728 Source/core/html/HTMLFormElement.cpp:728: // For now unconditionally order style recalculation, which triggers ...
6 years, 2 months ago (2014-10-24 20:12:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620333002/20001
6 years, 2 months ago (2014-10-24 20:14:04 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/30512)
6 years, 2 months ago (2014-10-24 20:29:24 UTC) #14
rune
In the last rebase, I needed to modify the validation update for nested fieldsets that ...
6 years, 2 months ago (2014-10-24 22:58:04 UTC) #16
esprehn
lgtm
6 years, 2 months ago (2014-10-24 23:07:57 UTC) #17
rune
On 2014/10/24 at 23:07:57, esprehn wrote: > lgtm thanks!
6 years, 2 months ago (2014-10-24 23:11:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620333002/40001
6 years, 2 months ago (2014-10-24 23:12:27 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 184392
6 years, 2 months ago (2014-10-25 00:32:00 UTC) #21
tkent
https://codereview.chromium.org/620333002/diff/40001/Source/core/html/HTMLFormControlElement.cpp File Source/core/html/HTMLFormControlElement.cpp (right): https://codereview.chromium.org/620333002/diff/40001/Source/core/html/HTMLFormControlElement.cpp#newcode189 Source/core/html/HTMLFormControlElement.cpp:189: pseudoStateChanged(CSSSelector::PseudoOptional); Are they enough? Updating |required| attribute can affect ...
6 years, 1 month ago (2014-10-27 01:47:20 UTC) #23
tkent
6 years, 1 month ago (2014-10-27 01:53:05 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/620333002/diff/40001/Source/core/html/HTMLFor...
File Source/core/html/HTMLFormControlElement.cpp (right):

https://codereview.chromium.org/620333002/diff/40001/Source/core/html/HTMLFor...
Source/core/html/HTMLFormControlElement.cpp:189:
pseudoStateChanged(CSSSelector::PseudoOptional);
On 2014/10/27 01:47:19, tkent wrote:
> Are they enough?  Updating |required| attribute can affect :valid and :invalid
> too.

Ignore the comment.  We calls setNeedsValidityCheck, and it handles :valid and
:invalid.

Powered by Google App Engine
This is Rietveld 408576698