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

Issue 206043009: Setup parent stylesheet for tree boundary crossing rules. (Closed)

Created:
6 years, 9 months ago by lushnikov
Modified:
6 years, 8 months ago
Reviewers:
apavlov, esprehn, vsevik, ojan
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Setup parent stylesheet for tree boundary crossing rules. The purpose of the patch is to store information about parent stylesheets for rules that are crossing tree boundary. Currently, this information is missing, thus DevTools do not allow to edit them. To achieve this, the patch modifies TreeBoundaryCrossingRules data structure from storing <ScopingNode, RuleSet> to storing <ScopingNode, CSSStyleSheet, RuleSet>. Iteration over this new data structure is somewhat tricky, so logic related to collecting matched rules is moved in TreeBoundaryCrossingRules class as well. BUG=337016 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170929

Patch Set 1 #

Total comments: 2

Patch Set 2 : preserve rule order in TreeBoundaryCrossingRules #

Patch Set 3 : address @apavlov comment #

Total comments: 5

Patch Set 4 : address @vsevik comments #

Total comments: 1

Patch Set 5 : rebaseline #

Patch Set 6 : do not add scoping nodes if they don't have any tree-crossing rules #

Patch Set 7 : cleanup #

Patch Set 8 : rebaseline #

Total comments: 8

Patch Set 9 : address @esprehn comments #

Patch Set 10 : compiles on oilpan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -80 lines) Patch
M Source/core/css/TreeBoundaryCrossingRules.h View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -9 lines 0 comments Download
M Source/core/css/TreeBoundaryCrossingRules.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +68 lines, -12 lines 0 comments Download
M Source/core/css/resolver/MatchRequest.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 3 4 5 6 7 8 9 3 chunks +1 line, -5 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +8 lines, -49 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
lushnikov
This is a draft implementation of the idea we discussed on Friday evening; I'm still ...
6 years, 9 months ago (2014-03-22 15:07:48 UTC) #1
apavlov
https://codereview.chromium.org/206043009/diff/1/Source/core/css/resolver/MatchRequest.h File Source/core/css/resolver/MatchRequest.h (right): https://codereview.chromium.org/206043009/diff/1/Source/core/css/resolver/MatchRequest.h#newcode36 Source/core/css/resolver/MatchRequest.h:36: MatchRequest(RuleSet* ruleSet, bool includeEmptyRules = false, const ContainerNode* scope ...
6 years, 9 months ago (2014-03-24 14:05:12 UTC) #2
lushnikov
Addressed comment; preserved order of rules in collecting. https://codereview.chromium.org/206043009/diff/1/Source/core/css/resolver/MatchRequest.h File Source/core/css/resolver/MatchRequest.h (right): https://codereview.chromium.org/206043009/diff/1/Source/core/css/resolver/MatchRequest.h#newcode36 Source/core/css/resolver/MatchRequest.h:36: MatchRequest(RuleSet* ...
6 years, 9 months ago (2014-03-25 13:31:32 UTC) #3
vsevik
https://codereview.chromium.org/206043009/diff/50001/Source/core/css/TreeBoundaryCrossingRules.h File Source/core/css/TreeBoundaryCrossingRules.h (right): https://codereview.chromium.org/206043009/diff/50001/Source/core/css/TreeBoundaryCrossingRules.h#newcode47 Source/core/css/TreeBoundaryCrossingRules.h:47: typedef HashMap<const CSSStyleSheet*, OwnPtrWillBeMember<RuleSet> > CSSStyleSheetRuleSubSet; Can we use ...
6 years, 9 months ago (2014-03-26 08:33:44 UTC) #4
lushnikov
addressed comments https://codereview.chromium.org/206043009/diff/50001/Source/core/css/TreeBoundaryCrossingRules.h File Source/core/css/TreeBoundaryCrossingRules.h (right): https://codereview.chromium.org/206043009/diff/50001/Source/core/css/TreeBoundaryCrossingRules.h#newcode47 Source/core/css/TreeBoundaryCrossingRules.h:47: typedef HashMap<const CSSStyleSheet*, OwnPtrWillBeMember<RuleSet> > CSSStyleSheetRuleSubSet; On ...
6 years, 9 months ago (2014-03-26 14:04:35 UTC) #5
lushnikov
The patch adds memory overhead proportional to the size of the datastructure. I believe this ...
6 years, 9 months ago (2014-03-26 19:04:50 UTC) #6
esprehn
On 2014/03/26 19:04:50, lushnikov wrote: > The patch adds memory overhead proportional to the size ...
6 years, 9 months ago (2014-03-26 19:16:03 UTC) #7
esprehn
lgtm, I think this is probably fine. We should fix addTreeBoundaryCrossingRules to not do so ...
6 years, 9 months ago (2014-03-26 19:59:25 UTC) #8
vsevik
DevTools-wise lgtm.
6 years, 9 months ago (2014-03-27 09:01:21 UTC) #9
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 9 months ago (2014-03-27 12:32:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/206043009/160001
6 years, 9 months ago (2014-03-27 12:32:39 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 13:05:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-27 13:05:46 UTC) #13
esprehn
Your failures look real: fast/dom/shadow/content-pseudo-element-overridden.html
6 years, 9 months ago (2014-03-27 13:20:07 UTC) #14
lushnikov
Could you guys please take another look on the patch due to non-trivial changes? On ...
6 years, 9 months ago (2014-03-28 17:48:04 UTC) #15
lushnikov
On 2014/03/28 17:48:04, lushnikov wrote: > Could you guys please take another look on the ...
6 years, 8 months ago (2014-04-01 12:08:57 UTC) #16
esprehn
https://codereview.chromium.org/206043009/diff/220001/Source/core/css/TreeBoundaryCrossingRules.cpp File Source/core/css/TreeBoundaryCrossingRules.cpp (right): https://codereview.chromium.org/206043009/diff/220001/Source/core/css/TreeBoundaryCrossingRules.cpp#newcode54 Source/core/css/TreeBoundaryCrossingRules.cpp:54: return; How did the old code deal with this ...
6 years, 8 months ago (2014-04-03 09:57:16 UTC) #17
lushnikov
https://codereview.chromium.org/206043009/diff/220001/Source/core/css/TreeBoundaryCrossingRules.cpp File Source/core/css/TreeBoundaryCrossingRules.cpp (right): https://codereview.chromium.org/206043009/diff/220001/Source/core/css/TreeBoundaryCrossingRules.cpp#newcode54 Source/core/css/TreeBoundaryCrossingRules.cpp:54: return; On 2014/04/03 09:57:17, esprehn wrote: > How did ...
6 years, 8 months ago (2014-04-03 13:53:12 UTC) #18
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 8 months ago (2014-04-04 22:37:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/206043009/240001
6 years, 8 months ago (2014-04-04 22:37:23 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 22:49:24 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-04 22:49:25 UTC) #22
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 8 months ago (2014-04-05 07:34:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/206043009/240001
6 years, 8 months ago (2014-04-05 07:34:40 UTC) #24
commit-bot: I haz the power
6 years, 8 months ago (2014-04-05 21:39:43 UTC) #25
Message was sent while issue was closed.
Change committed as 170929

Powered by Google App Engine
This is Rietveld 408576698