Changeset 147025 in webkit


Ignore:
Timestamp:
Mar 27, 2013 5:05:17 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: [DTE] paint overlay highlight for unhighlighted lines
https://bugs.webkit.org/show_bug.cgi?id=113344

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-27
Reviewed by Pavel Feldman.

No new tests.

Remove fast-return condition from paintLine method that checked for
highlight existence.

  • inspector/front-end/DefaultTextEditor.js:

(WebInspector.TextEditorMainPanel.prototype._paintLine):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147022 r147025  
     12013-03-27  Andrey Lushnikov  <lushnikov@chromium.org>
     2
     3        Web Inspector: [DTE] paint overlay highlight for unhighlighted lines
     4        https://bugs.webkit.org/show_bug.cgi?id=113344
     5
     6        Reviewed by Pavel Feldman.
     7
     8        No new tests.
     9
     10        Remove fast-return condition from paintLine method that checked for
     11        highlight existence.
     12
     13        * inspector/front-end/DefaultTextEditor.js:
     14        (WebInspector.TextEditorMainPanel.prototype._paintLine):
     15
    1162013-03-27  Ryosuke Niwa  <rniwa@webkit.org>
    217
  • trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js

    r146971 r147025  
    21122112        try {
    21132113            var syntaxHighlight = this._textModel.getAttribute(lineNumber, "highlight");
    2114             if (!syntaxHighlight)
    2115                 return;
    21162114
    21172115            var line = this._textModel.line(lineNumber);
    2118             var ranges = syntaxHighlight.ranges;
     2116            var ranges = syntaxHighlight ? syntaxHighlight.ranges : [];
    21192117            this._renderRanges(lineRow, line, ranges, this._showWhitespace);
    21202118
Note: See TracChangeset for help on using the changeset viewer.