Web Inspector: CSS minification should not strip whitespace around calc +/- binary...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Oct 2014 22:38:37 +0000 (22:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Oct 2014 22:38:37 +0000 (22:38 +0000)
commit7225c1db89cad4d3247d08823fc52280cd11b72a
tree96c7d22f5c65b9631c32e1866ebf05e1465a3733
parent34f7557d856a5ac05c423755343a531fb459b1e8
Web Inspector: CSS minification should not strip whitespace around calc +/- binary operators
https://bugs.webkit.org/show_bug.cgi?id=137624

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-10-10
Reviewed by Timothy Hatcher.

Be careful when stripping whitespace around "+". We want to strip for
selectors "a + b" but not for calc expressions "calc(1px + 2px)".

This is not a perfect solution, but it does a good job. It may still break
with more complex calc expressions, like "calc(1px + calc())" but this
handles the basics.

* Scripts/copy-user-interface-resources-dryrun.rb: Added.
* Scripts/cssmin.py:
(cssminify):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/Scripts/copy-user-interface-resources-dryrun.rb [new file with mode: 0755]
Source/WebInspectorUI/Scripts/cssmin.py [changed mode: 0644->0755]