The code in EventHandlerRegistry is currently a per-Page, but as event handlers often need to be tracked by compositors, it would make more sense for this to be owned by LocalFrameRoots, which have a 1:1 correspondence with LayerTreeViews.
We should refactor the code to reflect this.
Updating the references to |page_| in the class itself should be straightforward, so the main work appears to be in converting call sites for Page::GetEventHandlerRegistry(), most of which are associated with a Document or Frame reference.
Comment 1 by ekaramad@chromium.org
, May 15 2018