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

Issue 1329013002: Revert of Add inline style in the element's scope. (Closed)

Created:
5 years, 3 months ago by kochi
Modified:
5 years, 3 months ago
Reviewers:
hayato, rune
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis, esprehn
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revert of Add inline style in the element's scope. (patchset #1 id:1 of https://codereview.chromium.org/1322753006/ ) Reason for revert: This caused regression. https://code.google.com/p/chromium/issues/detail?id=528370 Original issue's description: > Add inline style in the element's scope. > > Style attribute declarations were added in a separate scope after all > other author origins. Instead add style attribute declarations right after > collecting matching rules from the element's scope. This means that we can > override values set on the style attribute from outer scopes, like we can > with values from inner scope's stylesheet. > > Without this fix, you would get green on orange below: > > <style>html /deep/ span { color: green; background-color: lime }</style> > <host> > <host:root> > <style>span { color:red }</style> > <span style="background:orange">Green on orange?</span> > </host:root> > </host> > > With this change, we will get green on lime. > > The regression (issue 526634) was not relying on this, but it would be > more complex code to fix the regression without fixing the style attribute > cascading order. > > R=kochi@chromium.org,hayato@chromium.org > BUG=526634 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201620 TBR=hayato@chromium.org,rune@opera.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=526634 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201842

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -43 lines) Patch
M LayoutTests/fast/css/deep-cascade-order.html View 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/deep-cascade-order-expected.txt View 1 chunk +4 lines, -2 lines 0 comments Download
D LayoutTests/fast/css/style-and-stylesheet-important.html View 1 chunk +0 lines, -11 lines 0 comments Download
D LayoutTests/fast/css/style-and-stylesheet-important-expected.txt View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/core/css/ElementRuleCollector.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 5 chunks +21 lines, -18 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
kochi
Created Revert of Add inline style in the element's scope.
5 years, 3 months ago (2015-09-05 04:02:03 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1329013002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1329013002/1
5 years, 3 months ago (2015-09-05 04:02:47 UTC) #3
commit-bot: I haz the power
5 years, 3 months ago (2015-09-05 04:03:17 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201842

Powered by Google App Engine
This is Rietveld 408576698