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

Issue 1285293003: Remove ScopedStyleResolver::treeScopeFor. (Closed)

Created:
5 years, 4 months ago by esprehn
Modified:
5 years, 4 months ago
Reviewers:
Timothy Loh, rune, ojan
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove ScopedStyleResolver::treeScopeFor. The ownerNode()'s treeScope() is always the scope of a stylesheet except for document scoped sheets in imports which apply to the main document. We can express this simpler without the set of checks in treeScopeFor. Link elements and processing instructions also don't even get added as candidates if they're not children of the Document so we don't need the type checks, I've instead replaced them with asserts. There's also no way for us have a null ownerDocument at the point where this code is called so I added an assert for that too. R=ojan@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200578

Patch Set 1 #

Patch Set 2 : Apply sheets for html imports to the main document. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -23 lines) Patch
M Source/core/css/resolver/ScopedStyleResolver.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/1
5 years, 4 months ago (2015-08-12 20:27:39 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/65985)
5 years, 4 months ago (2015-08-12 21:23:14 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-12 21:49:30 UTC) #6
esprehn
5 years, 4 months ago (2015-08-12 22:28:08 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-12 23:09:35 UTC) #10
esprehn
Ping.
5 years, 4 months ago (2015-08-13 08:58:24 UTC) #11
rune
lgtm
5 years, 4 months ago (2015-08-13 10:08:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-13 10:23:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/98550)
5 years, 4 months ago (2015-08-13 11:06:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-13 15:53:13 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/92725)
5 years, 4 months ago (2015-08-13 16:58:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-13 17:10:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/92764)
5 years, 4 months ago (2015-08-13 19:35:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-13 21:41:59 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/92954)
5 years, 4 months ago (2015-08-14 00:30:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-14 15:34:33 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/93324)
5 years, 4 months ago (2015-08-14 17:52:11 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-14 18:22:14 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/93462)
5 years, 4 months ago (2015-08-14 21:11:18 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285293003/20001
5 years, 4 months ago (2015-08-14 21:28:48 UTC) #38
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 23:57:18 UTC) #39
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200578

Powered by Google App Engine
This is Rietveld 408576698