Web Inspector: show whitespace characters in DTE
[WebKit-https.git] / Source / WebCore / ChangeLog
index dcb364c3f63faae2947a873813c87f87920a6c74..b8f147dbc57672d3f2923099a049208506d21a57 100644 (file)
@@ -1,3 +1,35 @@
+2013-02-09  Andrey Lushnikov  <lushnikov@chromium.org>
+
+        Web Inspector: show whitespace characters in DTE
+        https://bugs.webkit.org/show_bug.cgi?id=108947
+
+        Reviewed by Pavel Feldman.
+
+        New test: inspector/editor/text-editor-show-whitespaces.html
+
+        Split consecutive whitespace characters into groups of 16, 8, 4, 2 and 1 and
+        add ::before pseudoclass for this groups which contains necessary
+        amount of "dots" (u+00b7). Add a setting "Show whitespace" for this
+        option in "Sources" section of "General" tab.
+
+        * English.lproj/localizedStrings.js:
+        * inspector/front-end/DefaultTextEditor.js:
+        (WebInspector.TextEditorMainPanel.prototype.wasShown):
+        (WebInspector.TextEditorMainPanel.prototype.willHide):
+        (WebInspector.TextEditorMainPanel.prototype._renderRanges):
+        (WebInspector.TextEditorMainPanel.prototype._renderWhitespaceCharsWithFixedSizeSpans):
+        (WebInspector.TextEditorMainPanel.prototype._paintLine):
+        * inspector/front-end/Settings.js:
+        * inspector/front-end/SettingsScreen.js:
+        (WebInspector.GenericSettingsTab):
+        * inspector/front-end/inspectorSyntaxHighlight.css:
+        (.webkit-whitespace-1::before):
+        (.webkit-whitespace-2::before):
+        (.webkit-whitespace-4::before):
+        (.webkit-whitespace-8::before):
+        (.webkit-whitespace-16::before):
+        (.webkit-whitespace::before):
+
 2013-02-08  Eric Carlson  <eric.carlson@apple.com>
 
         [Mac] respect in-band caption color
 2013-02-08  Eric Carlson  <eric.carlson@apple.com>
 
         [Mac] respect in-band caption color