Bug 78102 - Web Inspector: Avoid an avalanche of "class" attribute modifications in WatchExpressionsSidebarPane
Summary: Web Inspector: Avoid an avalanche of "class" attribute modifications in Watch...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 04:22 PST by Alexander Pavlov (apavlov)
Modified: 2012-02-08 04:58 PST (History)
10 users (show)

See Also:


Attachments
Patch (2.40 KB, patch)
2012-02-08 04:28 PST, Alexander Pavlov (apavlov)
vsevik: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2012-02-08 04:22:51 PST
_updateHoveredElement() removes and adds the "hovered" style class (perhaps on the same element) on every "mousemove" event
Comment 1 Alexander Pavlov (apavlov) 2012-02-08 04:28:18 PST
Created attachment 126054 [details]
Patch
Comment 2 Vsevolod Vlasov 2012-02-08 04:54:40 PST
Comment on attachment 126054 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126054&action=review

> Source/WebCore/inspector/front-end/WatchExpressionsSidebarPane.js:293
> +            candidateElement.addStyleClass("hovered");

Please check that candidateElement is not null here.
Comment 3 Alexander Pavlov (apavlov) 2012-02-08 04:58:36 PST
Committed r107076: <http://trac.webkit.org/changeset/107076>