Changeset 279294 in webkit


Ignore:
Timestamp:
Jun 25, 2021 11:50:15 AM (13 months ago)
Author:
Patrick Angle
Message:

Web Inspector: Sources: Scope Chain sidebar panel is stripping repeating whitespace from strings
https://bugs.webkit.org/show_bug.cgi?id=227234

Reviewed by Devin Rousso.

String and Regular Expression values in Object Trees were having white-space: nowrap; applied to them, which
was redundant because white-space: pre; was already defined for .formatted-string and .formatted-regexp,
which makes sure that the text does not wrap unless it contains a newline, and these previews have newlines
replaced with a Unicode symbol to visually represent a newline without breaking to a new line.

  • UserInterface/Views/ObjectTreeView.css:

(.object-tree-property :matches(.formatted-string, .formatted-regexp)): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r278853 r279294  
     12021-06-25  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Sources: Scope Chain sidebar panel is stripping repeating whitespace from strings
     4        https://bugs.webkit.org/show_bug.cgi?id=227234
     5
     6        Reviewed by Devin Rousso.
     7
     8        String and Regular Expression values in Object Trees were having `white-space: nowrap;` applied to them, which
     9        was redundant because `white-space: pre;` was already defined for `.formatted-string` and `.formatted-regexp`,
     10        which makes sure that the text does not wrap unless it contains a newline, and these previews have newlines
     11        replaced with a Unicode symbol to visually represent a newline without breaking to a new line.
     12
     13        * UserInterface/Views/ObjectTreeView.css:
     14        (.object-tree-property :matches(.formatted-string, .formatted-regexp)): Deleted.
     15
    1162021-06-14  Patrick Angle  <pangle@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.css

    r269166 r279294  
    140140    vertical-align: -4px;
    141141}
    142 
    143 .object-tree-property :matches(.formatted-string, .formatted-regexp) {
    144     white-space: nowrap;
    145 }
Note: See TracChangeset for help on using the changeset viewer.