When serializing DOM, we need to know the default styles of elements in order to avoid overriding them by computed style.
Created attachment 94840 [details] Patch
Comment on attachment 94840 [details] Patch R=me
Committed r87317: <http://trac.webkit.org/changeset/87317>
The inspector must already know how to do this kind of thing. No?
Does this change what rules JavaScript code can see, and thus re-introduce bug 46853?
(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.