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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e02af71e
2013-03-27 Andrey Lushnikov <lushnikov@chromium.org>
Web Inspector: [DTE] paint overlay highlight for unhighlighted lines
https://bugs.webkit.org/show_bug.cgi?id=113344
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):
2013-03-27 Ryosuke Niwa <rniwa@webkit.org>
Shift clicking on an element with -webkit-user-select: all doesn't extend selection
......@@ -2111,11 +2111,9 @@ WebInspector.TextEditorMainPanel.prototype = {
this.beginDomUpdates();
try {
var syntaxHighlight = this._textModel.getAttribute(lineNumber, "highlight");
if (!syntaxHighlight)
return;
var line = this._textModel.line(lineNumber);
var ranges = syntaxHighlight.ranges;
var ranges = syntaxHighlight ? syntaxHighlight.ranges : [];
this._renderRanges(lineRow, line, ranges, this._showWhitespace);
if (overlayHighlight)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment