Bug 78102

Summary: Web Inspector: Avoid an avalanche of "class" attribute modifications in WatchExpressionsSidebarPane
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch vsevik: review+

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>