Bug 118708
Summary: | Include disabled stylesheets in document.styleSheets | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ahmad.saleem792, dino, kling, koivisto |
Priority: | P2 | Keywords: | BlinkMergeCandidate |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=243540 |
Ryosuke Niwa
Consider merging https://chromium.googlesource.com/chromium/blink/+/ecb0f25278c990b2483ef78ed1612a5cb3cefd48
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
*** This bug has been marked as a duplicate of bug 56932 ***