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

Issue 310443002: Remove scoped styles. (Closed)

Created:
6 years, 6 months ago by kochi
Modified:
6 years, 6 months ago
Reviewers:
esprehn, tasak
CC:
darktears, arv+blink, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, hayato, rwlbuis, rune+blink, sof, watchdog-blink-watchlist_google.com, webcomponents-bugzilla_chromium.org, Nils Barth (inactive)
Visibility:
Public.

Description

Remove scoped styles. Removes <style scoped>. This was discussed and approved with LGTMs in blink-dev: https://groups.google.com/a/chromium.org/d/msg/blink-dev/R1x18ZLS5qQ/Bjuh_cENhlQJ Chrome status dashboard entry: http://www.chromestatus.com/features/5374137958662144 Note: this is based on esprehn's original cl: https://codereview.chromium.org/214693002/ BUG=379096 TEST=pass all layout tests

Patch Set 1 : rebase #

Patch Set 2 : Fix layout test #

Total comments: 12

Patch Set 3 : fix for tasak's review #

Patch Set 4 : Remove HasScopedHTMLStyleChildFlag from Node. #

Total comments: 2

Patch Set 5 : Fix Node.h comment about remaining flag bits. #

Patch Set 6 : Rebase for CQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2274 lines) Patch
D LayoutTests/fast/css/style-scoped/basic-attribute.html View 1 chunk +0 lines, -122 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/basic-attribute-expected.txt View 1 chunk +0 lines, -62 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash.html View 1 chunk +0 lines, -46 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
D LayoutTests/fast/css/style-scoped/registering.html View 1 chunk +0 lines, -142 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/registering-expected.txt View 1 chunk +0 lines, -59 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/registering-shadowroot.html View 1 chunk +0 lines, -70 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/registering-shadowroot-expected.txt View 1 chunk +0 lines, -31 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-attach.html View 1 chunk +0 lines, -70 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-attach-expected.txt View 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-basic.html View 1 chunk +0 lines, -88 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-basic-expected.txt View 1 chunk +0 lines, -44 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-change-scoped-in-shadow.html View 1 chunk +0 lines, -304 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-change-scoped-in-shadow-expected.txt View 1 chunk +0 lines, -55 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-detach.html View 1 chunk +0 lines, -72 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-detach-expected.txt View 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html View 1 chunk +0 lines, -41 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-in-shadow-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-keyframes.html View 1 chunk +0 lines, -60 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-keyframes-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-nested.html View 1 chunk +0 lines, -46 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-nested-expected.txt View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-remove-scoped.html View 1 chunk +0 lines, -77 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-remove-scoped-expected.txt View 1 chunk +0 lines, -42 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-scoping-nodes-different-order.html View 1 chunk +0 lines, -42 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-scoping-nodes-different-order-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-set-scoped.html View 1 chunk +0 lines, -77 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-set-scoped-expected.txt View 1 chunk +0 lines, -42 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash.html View 1 chunk +0 lines, -28 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-with-dom-operation.html View 1 chunk +0 lines, -52 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-with-dom-operation-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule.html View 1 chunk +0 lines, -83 lines 0 comments Download
D LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt View 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html View 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/fast/dom/shadow/content-pseudo-element-scoped-expected.html View 1 chunk +0 lines, -12 lines 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-tree-styles-select-host.html View 1 chunk +0 lines, -22 lines 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-tree-styles-select-host-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/fast/dom/shadow/style-scoped-not-enabled.html View 1 chunk +0 lines, -34 lines 0 comments Download
D LayoutTests/fast/dom/shadow/style-scoped-not-enabled-expected.txt View 1 chunk +0 lines, -16 lines 0 comments Download
M Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp View 1 2 2 chunks +12 lines, -17 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 1 chunk +4 lines, -11 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleTree.cpp View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/css/resolver/SharedStyleFinder.cpp View 2 chunks +0 lines, -4 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/ContextFeatures.h View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/dom/ContextFeatures.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 4 5 3 chunks +1 line, -11 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 1 chunk +0 lines, -22 lines 0 comments Download
M Source/core/dom/StyleSheetScopingNodeList.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/html/HTMLStyleElement.h View 1 2 2 chunks +0 lines, -26 lines 0 comments Download
M Source/core/html/HTMLStyleElement.cpp View 1 2 5 chunks +16 lines, -126 lines 0 comments Download
M Source/core/html/HTMLStyleElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/testing/InternalSettings.h View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/testing/InternalSettings.cpp View 3 chunks +0 lines, -7 lines 0 comments Download
M Source/core/testing/InternalSettings.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/testing/Internals.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/ContextFeaturesClientImpl.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
kochi
Hi Eliott, Takashi, This is a CL to remove <style scoped>. I applied Eliott's CL, ...
6 years, 6 months ago (2014-06-03 04:47:12 UTC) #1
tasak
https://codereview.chromium.org/310443002/diff/40001/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp File Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp (right): https://codereview.chromium.org/310443002/diff/40001/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp#newcode95 Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp:95: static Node* determineScopingNodeForStyleScoped(HTMLStyleElement* ownerElement, StyleSheetContents* styleSheetContents) Probably it would ...
6 years, 6 months ago (2014-06-03 05:57:48 UTC) #2
kochi
https://codereview.chromium.org/310443002/diff/40001/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp File Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp (right): https://codereview.chromium.org/310443002/diff/40001/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp#newcode95 Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp:95: static Node* determineScopingNodeForStyleScoped(HTMLStyleElement* ownerElement, StyleSheetContents* styleSheetContents) On 2014/06/03 05:57:48, ...
6 years, 6 months ago (2014-06-03 07:47:04 UTC) #3
kochi
Removed HasScopedHTMLStyleChildFlag from Node in patch set 4. Please take another look.
6 years, 6 months ago (2014-06-03 08:38:18 UTC) #4
kochi
On 2014/06/03 08:38:18, Takayoshi Kochi wrote: > Removed HasScopedHTMLStyleChildFlag from Node in patch set 4. ...
6 years, 6 months ago (2014-06-04 07:31:36 UTC) #5
esprehn
On 2014/06/04 07:31:36, Takayoshi Kochi wrote: > On 2014/06/03 08:38:18, Takayoshi Kochi wrote: > > ...
6 years, 6 months ago (2014-06-04 08:13:04 UTC) #6
kochi
On 2014/06/04 08:13:04, esprehn wrote: > On 2014/06/04 07:31:36, Takayoshi Kochi wrote: > > On ...
6 years, 6 months ago (2014-06-04 08:14:29 UTC) #7
tasak
lgtm. I expect, once we remove style scoped, we can make Blink much simpler. e.g. ...
6 years, 6 months ago (2014-06-05 04:36:39 UTC) #8
esprehn
lgtm, but please update the node flags comment before landing. https://codereview.chromium.org/310443002/diff/80001/Source/core/dom/Node.h File Source/core/dom/Node.h (left): https://codereview.chromium.org/310443002/diff/80001/Source/core/dom/Node.h#oldcode728 ...
6 years, 6 months ago (2014-06-05 05:23:00 UTC) #9
kochi
Thanks for your reviews! I'll rebase and submit to CQ. https://codereview.chromium.org/310443002/diff/80001/Source/core/dom/Node.h File Source/core/dom/Node.h (left): https://codereview.chromium.org/310443002/diff/80001/Source/core/dom/Node.h#oldcode728 ...
6 years, 6 months ago (2014-06-05 05:56:21 UTC) #10
kochi
The CQ bit was checked by kochi@chromium.org
6 years, 6 months ago (2014-06-05 06:07:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/310443002/200001
6 years, 6 months ago (2014-06-05 06:07:57 UTC) #12
kochi
The CQ bit was unchecked by kochi@chromium.org
6 years, 6 months ago (2014-06-05 06:20:08 UTC) #13
kochi
The CQ bit was checked by kochi@chromium.org
6 years, 6 months ago (2014-06-05 06:24:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/310443002/210001
6 years, 6 months ago (2014-06-05 06:25:06 UTC) #15
commit-bot: I haz the power
Change committed as 175550
6 years, 6 months ago (2014-06-05 08:28:39 UTC) #16
sergeyv
A revert of this CL has been created in https://codereview.chromium.org/317143002/ by sergeyv@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-05 09:38:14 UTC) #17
sergeyv
A revert of this CL has been created in https://codereview.chromium.org/313173010/ by sergeyv@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-05 09:38:32 UTC) #18
tasak
On 2014/06/05 09:38:32, sergeyv wrote: > A revert of this CL has been created in ...
6 years, 6 months ago (2014-06-05 09:46:32 UTC) #19
kochi
On 2014/06/05 09:46:32, tasak wrote: > On 2014/06/05 09:38:32, sergeyv wrote: > > A revert ...
6 years, 6 months ago (2014-06-05 09:57:57 UTC) #20
tasak
On 2014/06/05 09:57:57, Takayoshi Kochi wrote: > On 2014/06/05 09:46:32, tasak wrote: > > On ...
6 years, 6 months ago (2014-06-05 10:52:06 UTC) #21
kochi
On 2014/06/05 10:52:06, tasak wrote: > On 2014/06/05 09:57:57, Takayoshi Kochi wrote: > > On ...
6 years, 6 months ago (2014-06-05 11:01:09 UTC) #22
kochi
The CQ bit was checked by kochi@chromium.org
6 years, 6 months ago (2014-06-05 11:01:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/310443002/210001
6 years, 6 months ago (2014-06-05 11:02:24 UTC) #24
commit-bot: I haz the power
Change committed as 175555
6 years, 6 months ago (2014-06-05 11:20:22 UTC) #25
Peter Beverloo
A revert of this CL has been created in https://codereview.chromium.org/315173002/ by peter@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-05 12:10:19 UTC) #26
kochi
On 2014/06/05 12:10:19, Peter Beverloo wrote: > A revert of this CL has been created ...
6 years, 6 months ago (2014-06-06 04:56:26 UTC) #27
kochi
As nbarth's landmine CL landed on Chromium at r275406, Retrying CQ to see how it ...
6 years, 6 months ago (2014-06-07 01:21:37 UTC) #28
kochi
The CQ bit was checked by kochi@chromium.org
6 years, 6 months ago (2014-06-07 01:21:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/310443002/210001
6 years, 6 months ago (2014-06-07 01:23:00 UTC) #30
commit-bot: I haz the power
Change committed as 175720
6 years, 6 months ago (2014-06-07 03:29:21 UTC) #31
dcheng
A revert of this CL has been created in https://codereview.chromium.org/324593003/ by dcheng@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-08 04:15:23 UTC) #32
kochi
6 years, 6 months ago (2014-06-09 09:58:46 UTC) #33
On 2014/06/08 04:15:23, dcheng wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/324593003/ by mailto:dcheng@chromium.org.
> 
> The reason for reverting is: Causes several browser tests to fail on
ChromiumOS
> (dbg):
>
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2....

Sorry for making this CL fail again.
I'm now on it and will update the CL at
https://codereview.chromium.org/325663003/ .

Powered by Google App Engine
This is Rietveld 408576698