Bug 62757 - Have Document keep track of whether scroll listeners are registered
Summary: Have Document keep track of whether scroll listeners are registered
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 14:40 PDT by Simon Fraser (smfr)
Modified: 2011-06-15 16:03 PDT (History)
4 users (show)

See Also:


Attachments
Patch (5.01 KB, patch)
2011-06-15 14:44 PDT, Simon Fraser (smfr)
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-06-15 14:40:06 PDT
Have Document keep track of whether scroll listeners are registered
Comment 1 Simon Fraser (smfr) 2011-06-15 14:44:51 PDT
Created attachment 97365 [details]
Patch
Comment 2 Alexey Proskuryakov 2011-06-15 14:52:51 PDT
Comment on attachment 97365 [details]
Patch

Did you check that this works with both document.onscroll and window.onscroll?
Comment 3 Simon Fraser (smfr) 2011-06-15 14:56:50 PDT
Will check.
Comment 4 Simon Fraser (smfr) 2011-06-15 15:56:36 PDT
window.onscroll and document.onscroll both work fine. DOMWindow::addEventListener() calls document->addListenerTypeIfNeeded().
Comment 5 Simon Fraser (smfr) 2011-06-15 16:03:25 PDT
http://trac.webkit.org/changeset/88980