Bug 127905

Summary: WebPage::determinePrimarySnapshottedPlugIn is slow
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, gyuyoung.kim, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch andersca: review+

Description Antti Koivisto 2014-01-30 05:37:48 PST
It is taking shotgun approach to hit testing.

PLT:

Running Time	Self		Symbol Name
132.0ms    0.8%	0,0	 	Main Thread  0x8a984
132.0ms    0.8%	0,0	 	 WebKit::WebPage::determinePrimarySnapshottedPlugIn()
130.0ms    0.8%	0,0	 	  WebCore::RenderView::hitTest(WebCore::HitTestRequest const&, WebCore::HitTestResult&)
1.0ms    0.0%	0,0	 	  WebCore::HTMLPlugInImageElement::restartSimilarPlugIns()
1.0ms    0.0%	0,0	 	  WTF::RunLoop::TimerBase::start(double, bool)
Comment 1 Antti Koivisto 2014-01-30 05:49:56 PST
Created attachment 222662 [details]
patch
Comment 2 WebKit Commit Bot 2014-01-30 05:52:28 PST
Attachment 222662 [details] did not pass style-queue:


ERROR: Source/WebKit2/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebKit2/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebKit2/ChangeLog:13:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebKit2/ChangeLog:14:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 4 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Antti Koivisto 2014-01-30 07:49:45 PST
https://trac.webkit.org/r163082
Comment 4 Tim Horton 2014-01-30 11:04:38 PST
Comment on attachment 222662 [details]
patch

So much better! Thanks, Antti :)