RESOLVED FIXED 61454
CSSStyleSelector should provide a way to obtain rules from non-author stylesheets
https://bugs.webkit.org/show_bug.cgi?id=61454
Summary CSSStyleSelector should provide a way to obtain rules from non-author stylesh...
Ryosuke Niwa
Reported 2011-05-25 11:44:09 PDT
When serializing DOM, we need to know the default styles of elements in order to avoid overriding them by computed style.
Attachments
Patch (10.14 KB, patch)
2011-05-25 12:44 PDT, Ryosuke Niwa
jamesr: review+
Ryosuke Niwa
Comment 1 2011-05-25 12:44:38 PDT
James Robinson
Comment 2 2011-05-25 13:00:17 PDT
Comment on attachment 94840 [details] Patch R=me
Ryosuke Niwa
Comment 3 2011-05-25 13:32:42 PDT
Eric Seidel (no email)
Comment 4 2011-05-25 15:34:57 PDT
The inspector must already know how to do this kind of thing. No?
Alexey Proskuryakov
Comment 5 2011-05-25 23:23:43 PDT
Does this change what rules JavaScript code can see, and thus re-introduce bug 46853?
Ryosuke Niwa
Comment 6 2011-05-25 23:32:55 PDT
(In reply to comment #5) > Does this change what rules JavaScript code can see, and thus re-introduce bug 46853? I don't think so. This bug is about letting StylizedMarkupAccumulator know of the default UA + user stylesheets so that we don't override style rules from UA+user stylesheets when we're serializing DOM; e.g. when serializing pre, we shouldn't be overriding whitespace property unless it's specified in inline style declaration or some CSS rules.
Note You need to log in before you can comment on or make changes to this bug.