Summary: | Web Inspector: Do not repaint line numbers while editing within line. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Pavel Feldman <pfeldman> | ||||
Component: | Web Inspector (Deprecated) | Assignee: | Pavel Feldman <pfeldman> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bweinstein, joepeck, rik, timothy | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Pavel Feldman
2010-01-09 13:04:09 PST
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 |