(making typing even snappier)
Created attachment 46213 [details] [PATCH] Proposed change
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.
(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