[Webkit-unassigned] [Bug 145679] REGRESSION (r184000): Web Inspector: Stripped whitespace after editing CSS in Styles sidebar

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 8 03:39:58 PDT 2015


basecode <tobi+webkit at basecode.de> changed:

           What    |Removed                     |Added
                 CC|                            |tobi+webkit at basecode.de

--- Comment #4 from basecode <tobi+webkit at basecode.de> ---
Editing CSS in the Styles sidebar happens within an Editor that uses the CSSRule-Formatter for pretty printing.

Before http://trac.webkit.org/changeset/184000/trunk:
The CSSRule-Formatter was (kinda) a copy of the CSS-Formatter.

After http://trac.webkit.org/changeset/184000/trunk:
The CSSRule-Formatter was optimized for CSSRules and lost some of the CSSStyleSheet specific features. That change optimized pretty printing in the Styles sidebar.

The bug is a result of applying CSS that is optimized for CSSRules to a CSSStyleSheet.

Potential solutions:
1) Let the CSS being formatted with the CSS-Formatter before it gets copied to the CSS Resource.
2) Change the CSSRule-Formatter in a way so that it works for CSSRule and CSSStyleSheet.

I'd prefer solution 1. Not sure though what part of the code should apply the CSS-Formatter.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150608/dfbfa54c/attachment.html>

More information about the webkit-unassigned mailing list