Loading layout/xul/tree/nsTreeBodyFrame.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -4178,8 +4178,8 @@ void nsTreeBodyFrame::ScrollCallback(nsITimer* aTimer, void* aClosure) { } } NS_IMETHODIMP nsTreeBodyFrame::ScrollEvent::Run() { // TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398) MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsTreeBodyFrame::ScrollEvent::Run() { if (mInner) { mInner->FireScrollEvent(); } Loading @@ -4191,7 +4191,9 @@ void nsTreeBodyFrame::FireScrollEvent() { WidgetGUIEvent event(true, eScroll, nullptr); // scroll events fired at elements don't bubble event.mFlags.mBubbles = false; EventDispatcher::Dispatch(GetContent(), PresContext(), &event); RefPtr<nsIContent> content = GetContent(); RefPtr<nsPresContext> presContext = PresContext(); EventDispatcher::Dispatch(content, presContext, &event); } void nsTreeBodyFrame::PostScrollEvent() { Loading layout/xul/tree/nsTreeBodyFrame.h +1 −1 Original line number Diff line number Diff line Loading @@ -443,7 +443,7 @@ class nsTreeBodyFrame final : public nsLeafBoxFrame, }; void PostScrollEvent(); void FireScrollEvent(); MOZ_CAN_RUN_SCRIPT void FireScrollEvent(); /** * Clear the pointer to this frame for all nsTreeImageListeners that were Loading Loading
layout/xul/tree/nsTreeBodyFrame.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -4178,8 +4178,8 @@ void nsTreeBodyFrame::ScrollCallback(nsITimer* aTimer, void* aClosure) { } } NS_IMETHODIMP nsTreeBodyFrame::ScrollEvent::Run() { // TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398) MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsTreeBodyFrame::ScrollEvent::Run() { if (mInner) { mInner->FireScrollEvent(); } Loading @@ -4191,7 +4191,9 @@ void nsTreeBodyFrame::FireScrollEvent() { WidgetGUIEvent event(true, eScroll, nullptr); // scroll events fired at elements don't bubble event.mFlags.mBubbles = false; EventDispatcher::Dispatch(GetContent(), PresContext(), &event); RefPtr<nsIContent> content = GetContent(); RefPtr<nsPresContext> presContext = PresContext(); EventDispatcher::Dispatch(content, presContext, &event); } void nsTreeBodyFrame::PostScrollEvent() { Loading
layout/xul/tree/nsTreeBodyFrame.h +1 −1 Original line number Diff line number Diff line Loading @@ -443,7 +443,7 @@ class nsTreeBodyFrame final : public nsLeafBoxFrame, }; void PostScrollEvent(); void FireScrollEvent(); MOZ_CAN_RUN_SCRIPT void FireScrollEvent(); /** * Clear the pointer to this frame for all nsTreeImageListeners that were Loading