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

Issue 703473003: Fix bug where form/fieldset :valid/:invalid won't be recalculated upon control's willValidate change (Closed)

Created:
6 years, 1 month ago by Bartek Nowierski
Modified:
6 years, 1 month ago
Reviewers:
keishi, tkent
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix a problem where a control's willValidate change wouldn't trigger the containing form's or fieldset's style change. Cache form validity while at it to avoid style recalculation BUG=360466 TEST=Added cases to layout tests that toggle controls disabled and readonly in form and fieldset Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185347

Patch Set 1 #

Total comments: 6

Patch Set 2 : Parameter fix #

Total comments: 2

Patch Set 3 : Remove redundant bool parameter from setNeedsWillValidateCheck() #

Patch Set 4 : Pull #

Patch Set 5 : Update a css layout test now that number of SubtreeStyleChange went down #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -32 lines) Patch
M LayoutTests/fast/css/invalidation/fieldset-disabled.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/invalidation/fieldset-disabled-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/fieldset-pseudo-valid-style.html View 2 chunks +16 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/fieldset-pseudo-valid-style-expected.txt View 2 chunks +11 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/form-pseudo-valid-style.html View 2 chunks +27 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/form-pseudo-valid-style-expected.txt View 2 chunks +17 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 3 4 chunks +14 lines, -14 lines 0 comments Download
M Source/core/html/HTMLFormElement.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 2 3 4 chunks +32 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Bartek Nowierski
This is derived from https://codereview.chromium.org/672163002/ after pulling and resolving
6 years, 1 month ago (2014-11-04 04:20:39 UTC) #2
tkent
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); I couldn't find setNeedsWillValidateCheck callsites ...
6 years, 1 month ago (2014-11-06 04:44:57 UTC) #3
Bartek Nowierski
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); On 2014/11/06 04:44:57, tkent wrote: ...
6 years, 1 month ago (2014-11-06 07:15:44 UTC) #4
tkent
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); On 2014/11/06 07:15:44, Bartek Nowierski ...
6 years, 1 month ago (2014-11-07 00:15:19 UTC) #5
Bartek Nowierski
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); On 2014/11/07 00:15:19, tkent wrote: ...
6 years, 1 month ago (2014-11-12 22:23:57 UTC) #6
tkent
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); On 2014/11/12 22:23:56, Bartek Nowierski ...
6 years, 1 month ago (2014-11-13 01:15:03 UTC) #7
Bartek Nowierski
https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h File Source/core/html/HTMLFormControlElement.h (right): https://codereview.chromium.org/703473003/diff/1/Source/core/html/HTMLFormControlElement.h#newcode146 Source/core/html/HTMLFormControlElement.h:146: void setNeedsWillValidateCheck(bool = true); On 2014/11/13 01:15:02, tkent wrote: ...
6 years, 1 month ago (2014-11-13 01:38:52 UTC) #8
keishi
LGTM
6 years, 1 month ago (2014-11-13 04:46:28 UTC) #9
Bartek Nowierski
I had to update a css layout test. Please take a peek. I'm not sure ...
6 years, 1 month ago (2014-11-14 03:18:19 UTC) #10
tkent
lgtm
6 years, 1 month ago (2014-11-14 03:30:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703473003/80001
6 years, 1 month ago (2014-11-14 03:30:46 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-11-14 04:40:22 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 185347

Powered by Google App Engine
This is Rietveld 408576698