Changeset 179879 in webkit
- Timestamp:
- Feb 10, 2015, 1:41:53 PM (12 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Tools/PrettyPrinting/CodeMirrorFormatters.js (modified) (1 diff)
-
UserInterface/Views/CodeMirrorFormatters.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r179846 r179879 1 2015-02-10 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: CSS Pretty Printing: still fails fails to put space between rgb(...) and numbers in minified gradients 4 https://bugs.webkit.org/show_bug.cgi?id=141411 5 6 Reviewed by Timothy Hatcher. 7 8 * Tools/PrettyPrinting/CodeMirrorFormatters.js: 9 * UserInterface/Views/CodeMirrorFormatters.js: 10 Token actually was "number m-css" so we should check token strings 11 more robustly, like elsewhere in the formatters. 12 1 13 2015-02-09 Brian J. Burg <burg@cs.washington.edu> 2 14 -
trunk/Source/WebInspectorUI/Tools/PrettyPrinting/CodeMirrorFormatters.js
r174484 r179879 324 324 return state.state === "prop"; 325 325 if (lastContent === ")" && (content !== ")" && content !== ",")) { 326 if ( token === "number") // linear-gradient(rgb(...)0%,rgb(...)100%)326 if (/\bnumber\b/.test(token)) // linear-gradient(rgb(...)0%,rgb(...)100%) 327 327 return true; 328 328 if (state.state === "prop") // -webkit-transform:rotate(...)translate(...); -
trunk/Source/WebInspectorUI/UserInterface/Views/CodeMirrorFormatters.js
r174484 r179879 324 324 return state.state === "prop"; 325 325 if (lastContent === ")" && (content !== ")" && content !== ",")) { 326 if ( token === "number") // linear-gradient(rgb(...)0%,rgb(...)100%)326 if (/\bnumber\b/.test(token)) // linear-gradient(rgb(...)0%,rgb(...)100%) 327 327 return true; 328 328 if (state.state === "prop") // -webkit-transform:rotate(...)translate(...);
Note:
See TracChangeset
for help on using the changeset viewer.