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

Issue 1756483005: Option, checkbox and radio should support ':default' selector (Closed)

Created:
4 years, 9 months ago by ramya.v
Modified:
4 years, 9 months ago
Reviewers:
tkent
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Option, checkbox and radio should support ':default' selector Spec: https://html.spec.whatwg.org/multipage/scripting.html#selector-default This patch adds support for the following to match :default pseudo class a)input elements to which the checked attribute applies and that have a checked attribute b)option elements that have a selected attribute This patch does not support handling dynamic state changes to input types to add/remove :default class. BUG=591226 Committed: https://crrev.com/6e3a05d6080ba6ae25af2835573ff9e2406b90c0 Cr-Commit-Position: refs/heads/master@{#379279}

Patch Set 1 #

Patch Set 2 : Test is passed. So removing the expected file #

Total comments: 6

Patch Set 3 : Updated as per review comments #

Total comments: 12

Patch Set 4 : Updated as per review comments #

Patch Set 5 : Rebased the patch #

Total comments: 14

Patch Set 6 : Updated as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -13 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/pseudo-default-option.html View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/default-expected.txt View 1 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLButtonElement.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLButtonElement.cpp View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLOptionElement.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLOptionElement.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/BaseButtonInputType.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/InputType.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/InputType.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
ramya.v
PTAL! Thanks
4 years, 9 months ago (2016-03-03 06:36:32 UTC) #2
tkent
You need to add code to support dynamic changes of conditions. e.g. Changing input type ...
4 years, 9 months ago (2016-03-03 06:46:02 UTC) #4
ramya.v
On 2016/03/03 06:46:02, tkent wrote: > You need to add code to support dynamic changes ...
4 years, 9 months ago (2016-03-03 10:29:00 UTC) #5
ramya.v
https://codereview.chromium.org/1756483005/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1756483005/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode836 third_party/WebKit/Source/core/css/SelectorChecker.cpp:836: if (isHTMLInputElement(element)) { On 2016/03/03 06:46:02, tkent wrote: > ...
4 years, 9 months ago (2016-03-03 10:29:19 UTC) #6
tkent
On 2016/03/03 at 10:29:00, ramya.v wrote: > >> Since this patch is under review, once ...
4 years, 9 months ago (2016-03-03 13:28:57 UTC) #7
tkent
https://codereview.chromium.org/1756483005/diff/40001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html File third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html (right): https://codereview.chromium.org/1756483005/diff/40001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html#newcode1 third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html:1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> Please do not add ...
4 years, 9 months ago (2016-03-03 13:29:08 UTC) #8
ramya.v
Updated as per review comments. PTAL! Thanks https://codereview.chromium.org/1756483005/diff/40001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html File third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html (right): https://codereview.chromium.org/1756483005/diff/40001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html#newcode1 third_party/WebKit/LayoutTests/fast/css/pseudo-default-005.html:1: <!DOCTYPE HTML ...
4 years, 9 months ago (2016-03-04 06:31:45 UTC) #10
tkent
Almost ok. Please hold uploading new patch set until https://codereview.chromium.org/1764063002/ is landed. https://codereview.chromium.org/1756483005/diff/80001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html File third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html ...
4 years, 9 months ago (2016-03-04 06:39:15 UTC) #12
ramya.v
PTAL! Thanks https://codereview.chromium.org/1756483005/diff/80001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html File third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html (right): https://codereview.chromium.org/1756483005/diff/80001/third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html#newcode6 third_party/WebKit/LayoutTests/fast/css/pseudo-default-checkbox-radio.html:6: <style> On 2016/03/04 06:39:14, tkent wrote: > ...
4 years, 9 months ago (2016-03-04 10:22:40 UTC) #13
tkent
lgtm
4 years, 9 months ago (2016-03-04 12:32:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756483005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756483005/100001
4 years, 9 months ago (2016-03-04 12:32:51 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-04 13:42:38 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 13:44:38 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6e3a05d6080ba6ae25af2835573ff9e2406b90c0
Cr-Commit-Position: refs/heads/master@{#379279}

Powered by Google App Engine
This is Rietveld 408576698