RESOLVED FIXED 62757
Have Document keep track of whether scroll listeners are registered
https://bugs.webkit.org/show_bug.cgi?id=62757
Summary Have Document keep track of whether scroll listeners are registered
Simon Fraser (smfr)
Reported 2011-06-15 14:40:06 PDT
Have Document keep track of whether scroll listeners are registered
Attachments
Patch (5.01 KB, patch)
2011-06-15 14:44 PDT, Simon Fraser (smfr)
mitz: review+
Simon Fraser (smfr)
Comment 1 2011-06-15 14:44:51 PDT
Alexey Proskuryakov
Comment 2 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?
Simon Fraser (smfr)
Comment 3 2011-06-15 14:56:50 PDT
Will check.
Simon Fraser (smfr)
Comment 4 2011-06-15 15:56:36 PDT
window.onscroll and document.onscroll both work fine. DOMWindow::addEventListener() calls document->addListenerTypeIfNeeded().
Simon Fraser (smfr)
Comment 5 2011-06-15 16:03:25 PDT
Note You need to log in before you can comment on or make changes to this bug.