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

Issue 143463011: [import] support document.stylesheets in imported documents. (Closed)

Created:
6 years, 11 months ago by Hajime Morrita
Modified:
6 years, 11 months ago
Reviewers:
esprehn
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org, Inactive
Visibility:
Public.

Description

[import] support document.stylesheets in imported documents. This change adds document.stylesheets support. Before this change, these these sheets were just skipped during stylesheet update traversal. This change lets the traversal recursively update StyleEngine of imported document. In the update, the stylesheet value is computed. Note that as activeStyleSheet of the master document have to contains sheets in the import tree, this change turns DocumentStyleSheetCollector to a carrier of stylsheet list to be updated: The collector doesn't own its own list and have a reference to lists, that are provided by StyleEngine or DocumentStyleSheetCollection. BUG=334819 TEST=import-style-basic.html R=esprehn Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165741

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated #

Patch Set 3 : Rebased to ToT #

Patch Set 4 : Rebased to ToT #

Total comments: 3

Patch Set 5 : Landing #

Patch Set 6 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -42 lines) Patch
M LayoutTests/fast/html/imports/import-style-basic.html View 2 chunks +8 lines, -1 line 0 comments Download
M LayoutTests/fast/html/imports/import-style-basic-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentStyleSheetCollection.cpp View 1 2 3 4 4 chunks +13 lines, -14 lines 0 comments Download
M Source/core/dom/DocumentStyleSheetCollector.h View 1 2 3 4 1 chunk +25 lines, -17 lines 0 comments Download
M Source/core/dom/DocumentStyleSheetCollector.cpp View 1 2 3 4 1 chunk +32 lines, -5 lines 0 comments Download
M Source/core/dom/StyleEngine.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/dom/StyleSheetCandidate.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/dom/StyleSheetCollection.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/dom/StyleSheetCollection.cpp View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/html/LinkImport.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/LinkImport.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Hajime Morrita
PTAL?
6 years, 11 months ago (2014-01-23 07:15:45 UTC) #1
esprehn
It seems like there's some abstraction issue here, each StyleEngine should manage the sheets for ...
6 years, 11 months ago (2014-01-23 07:51:02 UTC) #2
Hajime Morrita
PTAL? Updated to get saner abstraction (I hope). See the issue description for overview. https://codereview.chromium.org/143463011/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp ...
6 years, 11 months ago (2014-01-24 01:25:50 UTC) #3
esprehn
lgtm, returning that object by value is super weird, it seems like you want to ...
6 years, 11 months ago (2014-01-24 09:30:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/143463011/220001
6 years, 11 months ago (2014-01-24 10:48:03 UTC) #5
Hajime Morrita
On 2014/01/24 09:30:10, esprehn wrote: > lgtm, returning that object by value is super weird, ...
6 years, 11 months ago (2014-01-24 10:50:12 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 13:39:11 UTC) #7
Message was sent while issue was closed.
Change committed as 165741

Powered by Google App Engine
This is Rietveld 408576698