⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179879 in webkit


Ignore:
Timestamp:
Feb 10, 2015, 1:41:53 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: CSS Pretty Printing: still fails fails to put space between rgb(...) and numbers in minified gradients
https://bugs.webkit.org/show_bug.cgi?id=141411

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-02-10
Reviewed by Timothy Hatcher.

  • Tools/PrettyPrinting/CodeMirrorFormatters.js:
  • UserInterface/Views/CodeMirrorFormatters.js:

Token actually was "number m-css" so we should check token strings
more robustly, like elsewhere in the formatters.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r179846 r179879  
     12015-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
    1132015-02-09  Brian J. Burg  <burg@cs.washington.edu>
    214
  • trunk/Source/WebInspectorUI/Tools/PrettyPrinting/CodeMirrorFormatters.js

    r174484 r179879  
    324324                return state.state === "prop";
    325325            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%)
    327327                    return true;
    328328                if (state.state === "prop") // -webkit-transform:rotate(...)translate(...);
  • trunk/Source/WebInspectorUI/UserInterface/Views/CodeMirrorFormatters.js

    r174484 r179879  
    324324                return state.state === "prop";
    325325            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%)
    327327                    return true;
    328328                if (state.state === "prop") // -webkit-transform:rotate(...)translate(...);
Note: See TracChangeset for help on using the changeset viewer.