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

Issue 2416893002: CSSMediaRule and CSSSupportsRule inherit from CSSConditionRule (Closed)

Created:
4 years, 2 months ago by xing.xu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, kenneth.christiansen, Yoav Weiss, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSSMediaRule and CSSSupportsRule inherit from CSSConditionRule From the spec, the conditionText attribute of CSSMediaRule (inherited from CSSConditionRule parent rule), on getting, must return the value of media.mediaText on the rule. Setting the conditionText attribute must set the media.mediaText attribute on the rule. So conditionText of CSSConditionRule should be mutable instead of readonly, this is a TODO. Spec: https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface BUG=651792 Committed: https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae Cr-Commit-Position: refs/heads/master@{#425950}

Patch Set 1 #

Patch Set 2 : Refine var's name #

Patch Set 3 : Fix linux layout tests #

Patch Set 4 : Fix layout virtual tests #

Total comments: 2

Patch Set 5 : Remove extra space and add TODO for conditionText #

Patch Set 6 : Fix CSSSupportsRule.idl and test case #

Total comments: 2

Patch Set 7 : Rebase, refine idl and test case #

Patch Set 8 : Fix supports test case #

Total comments: 5

Patch Set 9 : Refine variable's name and trace #

Total comments: 1

Patch Set 10 : Add protype test #

Total comments: 1

Patch Set 11 : Fix windows build #

Total comments: 6

Patch Set 12 : Fix tracing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -62 lines) Patch
A third_party/WebKit/LayoutTests/css3/condition-cssom.html View 1 2 3 4 5 6 7 8 9 1 chunk +62 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/supports-cssom.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/supports-cssom-expected.txt View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSConditionRule.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSConditionRule.cpp View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSConditionRule.idl View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSMediaRule.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSMediaRule.cpp View 1 2 3 4 5 6 9 10 11 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSMediaRule.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSSupportsRule.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSupportsRule.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSupportsRule.idl View 1 2 3 4 5 6 1 chunk +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleRule.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleRule.cpp View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -11 lines 0 comments Download

Messages

Total messages: 106 (73 generated)
xing.xu
PTAL
4 years, 2 months ago (2016-10-13 15:05:38 UTC) #6
foolip
Started a dry run, happy to leave the actual review to the others, but can ...
4 years, 2 months ago (2016-10-13 15:17:10 UTC) #9
xing.xu
Thanks foolip@. Now the tests are fixed, PTAL. BTW, after click trybot results's "More>>>", I ...
4 years, 2 months ago (2016-10-14 04:50:26 UTC) #21
Timothy Loh
On 2016/10/14 04:50:26, xing.xu wrote: > Thanks foolip@. Now the tests are fixed, PTAL. > ...
4 years, 2 months ago (2016-10-14 07:07:18 UTC) #22
xing.xu
> By the way, it's helpful if you can describe in the change description what ...
4 years, 2 months ago (2016-10-14 08:05:10 UTC) #23
foolip
I see no change in CSSSupportsRule.idl, did you omit that intentionally?
4 years, 2 months ago (2016-10-14 08:32:39 UTC) #25
foolip
https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl File third_party/WebKit/Source/core/css/CSSConditionRule.idl (right): https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl#newcode5 third_party/WebKit/Source/core/css/CSSConditionRule.idl:5: //https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface An extra space here :) https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl#newcode8 third_party/WebKit/Source/core/css/CSSConditionRule.idl:8: readonly ...
4 years, 2 months ago (2016-10-14 08:36:44 UTC) #26
xing.xu
On 2016/10/14 08:36:44, foolip wrote: > https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl > File third_party/WebKit/Source/core/css/CSSConditionRule.idl (right): > > https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl#newcode5 > ...
4 years, 2 months ago (2016-10-14 11:58:02 UTC) #27
xing.xu
On 2016/10/14 11:58:02, xing.xu wrote: > On 2016/10/14 08:36:44, foolip wrote: > > > https://codereview.chromium.org/2416893002/diff/60001/third_party/WebKit/Source/core/css/CSSConditionRule.idl ...
4 years, 2 months ago (2016-10-15 07:44:55 UTC) #52
foolip
On 2016/10/15 07:44:55, xing.xu wrote: > It is wierd all try bots failed. "Patch failure" ...
4 years, 2 months ago (2016-10-15 20:45:21 UTC) #53
foolip
Mostly wanted to look at the IDL files, will leave the real review to the ...
4 years, 2 months ago (2016-10-15 21:02:19 UTC) #54
xing.xu
On 2016/10/15 21:02:19, foolip wrote: > Mostly wanted to look at the IDL files, will ...
4 years, 2 months ago (2016-10-16 22:22:26 UTC) #63
meade_UTC10
lgtm Seems fine to me, but my lgtm doesn't mean much. The reviewers currently on ...
4 years, 2 months ago (2016-10-17 02:58:44 UTC) #64
xing.xu
On 2016/10/17 02:58:44, Eddy wrote: > lgtm > > Seems fine to me, but my ...
4 years, 2 months ago (2016-10-17 07:44:49 UTC) #69
foolip
Thanks for working on this. Can you send an Intent to Implement and Ship for ...
4 years, 2 months ago (2016-10-17 09:24:02 UTC) #71
foolip
https://codereview.chromium.org/2416893002/diff/160001/third_party/WebKit/LayoutTests/css3/media-cssom.html File third_party/WebKit/LayoutTests/css3/media-cssom.html (right): https://codereview.chromium.org/2416893002/diff/160001/third_party/WebKit/LayoutTests/css3/media-cssom.html#newcode29 third_party/WebKit/LayoutTests/css3/media-cssom.html:29: }, "@media inherited from CSSConditionRule."); Can you add explicit ...
4 years, 2 months ago (2016-10-17 09:25:40 UTC) #72
xing.xu
On 2016/10/17 09:25:40, foolip wrote: > https://codereview.chromium.org/2416893002/diff/160001/third_party/WebKit/LayoutTests/css3/media-cssom.html > File third_party/WebKit/LayoutTests/css3/media-cssom.html (right): > > https://codereview.chromium.org/2416893002/diff/160001/third_party/WebKit/LayoutTests/css3/media-cssom.html#newcode29 > ...
4 years, 2 months ago (2016-10-17 14:06:45 UTC) #75
foolip
LGTM once the intent has 3xLGTM https://codereview.chromium.org/2416893002/diff/180001/third_party/WebKit/LayoutTests/css3/condition-cssom.html File third_party/WebKit/LayoutTests/css3/condition-cssom.html (right): https://codereview.chromium.org/2416893002/diff/180001/third_party/WebKit/LayoutTests/css3/condition-cssom.html#newcode34 third_party/WebKit/LayoutTests/css3/condition-cssom.html:34: "@media screen and ...
4 years, 2 months ago (2016-10-17 14:23:01 UTC) #76
xing.xu
On 2016/10/17 14:23:01, foolip wrote: > LGTM once the intent has 3xLGTM > > https://codereview.chromium.org/2416893002/diff/180001/third_party/WebKit/LayoutTests/css3/condition-cssom.html ...
4 years, 2 months ago (2016-10-17 14:47:52 UTC) #77
foolip
On 2016/10/17 14:47:52, xing.xu wrote: > On 2016/10/17 14:23:01, foolip wrote: > > LGTM once ...
4 years, 2 months ago (2016-10-17 14:56:27 UTC) #79
xing.xu
On 2016/10/17 14:56:27, foolip wrote: > On 2016/10/17 14:47:52, xing.xu wrote: > > On 2016/10/17 ...
4 years, 2 months ago (2016-10-18 00:37:01 UTC) #82
xing.xu
The Intent got 3xLGTM. PTAL.
4 years, 2 months ago (2016-10-18 05:22:53 UTC) #87
foolip
Adding oilpan-reviews@ for sanity check of the tracing. https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp File third_party/WebKit/Source/core/css/CSSMediaRule.cpp (right): https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode55 third_party/WebKit/Source/core/css/CSSMediaRule.cpp:55: return ...
4 years, 2 months ago (2016-10-18 10:38:33 UTC) #89
xing.xu
On 2016/10/18 10:38:33, foolip wrote: > https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode75 > third_party/WebKit/Source/core/css/CSSMediaRule.cpp:75: > CSSGroupingRule::trace(visitor); > This should become ...
4 years, 2 months ago (2016-10-18 11:00:30 UTC) #90
foolip
https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp File third_party/WebKit/Source/core/css/CSSMediaRule.cpp (right): https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode75 third_party/WebKit/Source/core/css/CSSMediaRule.cpp:75: CSSGroupingRule::trace(visitor); On 2016/10/18 10:38:33, foolip wrote: > This should ...
4 years, 2 months ago (2016-10-18 11:20:29 UTC) #91
foolip
On 2016/10/18 11:00:30, xing.xu wrote: > On 2016/10/18 10:38:33, foolip wrote: > > > https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode75 ...
4 years, 2 months ago (2016-10-18 11:21:18 UTC) #92
foolip
https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp File third_party/WebKit/Source/core/css/CSSMediaRule.cpp (right): https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode75 third_party/WebKit/Source/core/css/CSSMediaRule.cpp:75: CSSGroupingRule::trace(visitor); On 2016/10/18 11:20:29, foolip wrote: > On 2016/10/18 ...
4 years, 2 months ago (2016-10-18 11:21:57 UTC) #93
xing.xu
On 2016/10/18 11:21:57, foolip wrote: > https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp > File third_party/WebKit/Source/core/css/CSSMediaRule.cpp (right): > > https://codereview.chromium.org/2416893002/diff/200001/third_party/WebKit/Source/core/css/CSSMediaRule.cpp#newcode75 > ...
4 years, 2 months ago (2016-10-18 12:20:02 UTC) #94
foolip
lgtm Sending to CQ, this has been up for a while so I hope everyone ...
4 years, 2 months ago (2016-10-18 12:21:12 UTC) #99
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2416893002/220001
4 years, 2 months ago (2016-10-18 12:21:21 UTC) #101
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-10-18 14:14:49 UTC) #103
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae Cr-Commit-Position: refs/heads/master@{#425950}
4 years, 2 months ago (2016-10-18 14:16:41 UTC) #105
haraken
4 years, 2 months ago (2016-10-18 18:17:00 UTC) #106
Message was sent while issue was closed.
Oilpan part LGTM

Powered by Google App Engine
This is Rietveld 408576698