Bug 1539884 - Part 32: Mark nsHtml5SVGLoadDispatcher::Run as CAN_RUN_SCRIPT_BOUNDARY r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D134415
This commit is contained in:
Kagami Sascha Rosylight 2021-12-23 16:27:24 +00:00
parent 964184af24
commit dc3411ed8f
2 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ nsHtml5SVGLoadDispatcher::nsHtml5SVGLoadDispatcher(nsIContent* aElement)
mDocument->BlockOnload();
}
NS_IMETHODIMP
nsHtml5SVGLoadDispatcher::Run() {
// TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398)
MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsHtml5SVGLoadDispatcher::Run() {
WidgetEvent event(true, eSVGLoad);
event.mFlags.mBubbles = false;
// Do we care about forcing presshell creation if it hasn't happened yet?

View File

@ -10,8 +10,8 @@
class nsHtml5SVGLoadDispatcher : public mozilla::Runnable {
private:
nsCOMPtr<nsIContent> mElement;
RefPtr<mozilla::dom::Document> mDocument;
const nsCOMPtr<nsIContent> mElement;
const RefPtr<mozilla::dom::Document> mDocument;
public:
explicit nsHtml5SVGLoadDispatcher(nsIContent* aElement);