RESOLVED FIXED 33427
Web Inspector: Do not repaint line numbers while editing within line.
https://bugs.webkit.org/show_bug.cgi?id=33427
Summary Web Inspector: Do not repaint line numbers while editing within line.
Pavel Feldman
Reported 2010-01-09 13:04:09 PST
(making typing even snappier)
Attachments
[PATCH] Proposed change (6.25 KB, patch)
2010-01-09 13:06 PST, Pavel Feldman
timothy: review+
Pavel Feldman
Comment 1 2010-01-09 13:06:03 PST
Created attachment 46213 [details] [PATCH] Proposed change
Timothy Hatcher
Comment 2 2010-01-09 13:10:58 PST
Comment on attachment 46213 [details] [PATCH] Proposed change > + if (oldRange.isEmpty() && newRange.isEmpty() && oldRange.startLine === newRange.startLine) > + // Nothing to repaint. > + return; This should have braces, even in the comment case, since it is multiline. See style guide, Braces clause 3.
Pavel Feldman
Comment 3 2010-01-10 11:07:39 PST
(In reply to comment #2) > (From update of attachment 46213 [details]) > > + if (oldRange.isEmpty() && newRange.isEmpty() && oldRange.startLine === newRange.startLine) > > + // Nothing to repaint. > > + return; > > This should have braces, even in the comment case, since it is multiline. See > style guide, Braces clause 3. Done. Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/TextEditor.js Committed r53051
Note You need to log in before you can comment on or make changes to this bug.