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

Issue 17827004: Include disabled stylesheets in document.styleSheets. (Closed)

Created:
7 years, 6 months ago by rune
Modified:
7 years, 5 months ago
Reviewers:
dglazkov
CC:
blink-reviews, gavinp+prerender_chromium.org, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, tasak (please_use_google.com)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Include disabled stylesheets in document.styleSheets. Stylesheets disabled through LinkStyle.disabled were not included in Document.styleSheets, even if they existed as CSSStyleSheet objects. Fixed LinkStyle::setDisabled so it propagates disabled state to the sheet object when present. According to the HTML5 spec, setting disabled on LinkStyle when the sheet is not present should not have any effect and getting it should return false. I did not dare to do any changes there in this CL. BUG=88310 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153485

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebased onto current master #

Patch Set 3 : Review issue: removed css from variable name #

Patch Set 4 : Changed expected result for mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -38 lines) Patch
A LayoutTests/cssom/stylesheetlist-01.html View 1 chunk +63 lines, -0 lines 0 comments Download
A LayoutTests/cssom/stylesheetlist-01-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLLinkElement/disabled-attribute-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug92868_1-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/win/tables/mozilla_expected_failures/bugs/bug92868_1-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/DocumentStyleSheetCollection.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DocumentStyleSheetCollection.cpp View 1 2 9 chunks +26 lines, -34 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rune
7 years, 6 months ago (2013-06-26 12:45:00 UTC) #1
dglazkov
lgtm https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp File Source/core/dom/DocumentStyleSheetCollection.cpp (left): https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp#oldcode416 Source/core/dom/DocumentStyleSheetCollection.cpp:416: if (sheets[i]->disabled()) How did this used to work ...
7 years, 6 months ago (2013-06-26 15:56:27 UTC) #2
rune
https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp File Source/core/dom/DocumentStyleSheetCollection.cpp (left): https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp#oldcode416 Source/core/dom/DocumentStyleSheetCollection.cpp:416: if (sheets[i]->disabled()) On 2013/06/26 15:56:27, Dimitri Glazkov wrote: > ...
7 years, 5 months ago (2013-06-28 09:14:37 UTC) #3
rune
https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp File Source/core/dom/DocumentStyleSheetCollection.cpp (right): https://codereview.chromium.org/17827004/diff/1/Source/core/dom/DocumentStyleSheetCollection.cpp#newcode463 Source/core/dom/DocumentStyleSheetCollection.cpp:463: InspectorInstrumentation::activeStyleSheetsUpdated(m_document, cssStyleSheets); On 2013/06/28 09:14:37, rune wrote: > On ...
7 years, 5 months ago (2013-06-28 09:37:25 UTC) #4
dglazkov
On 2013/06/28 09:37:25, rune wrote: > Also, changing this method name means changing InspectorInstrumentation.idl. I ...
7 years, 5 months ago (2013-06-28 14:58:16 UTC) #5
rune
On 2013/06/28 14:58:16, Dimitri Glazkov wrote: > On 2013/06/28 09:37:25, rune wrote: > > Also, ...
7 years, 5 months ago (2013-07-02 12:21:10 UTC) #6
dglazkov
On 2013/07/02 12:21:10, rune wrote: > @dglazkov: I've removed the "css" part of the variable ...
7 years, 5 months ago (2013-07-02 14:08:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/17827004/14001
7 years, 5 months ago (2013-07-02 19:06:32 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=11350
7 years, 5 months ago (2013-07-02 20:51:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/17827004/14001
7 years, 5 months ago (2013-07-02 21:23:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/17827004/35001
7 years, 5 months ago (2013-07-03 07:23:09 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-03 08:48:46 UTC) #12
Message was sent while issue was closed.
Change committed as 153485

Powered by Google App Engine
This is Rietveld 408576698