mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
964184af24
commit
dc3411ed8f
@ -18,8 +18,8 @@ nsHtml5SVGLoadDispatcher::nsHtml5SVGLoadDispatcher(nsIContent* aElement)
|
|||||||
mDocument->BlockOnload();
|
mDocument->BlockOnload();
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
// TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398)
|
||||||
nsHtml5SVGLoadDispatcher::Run() {
|
MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsHtml5SVGLoadDispatcher::Run() {
|
||||||
WidgetEvent event(true, eSVGLoad);
|
WidgetEvent event(true, eSVGLoad);
|
||||||
event.mFlags.mBubbles = false;
|
event.mFlags.mBubbles = false;
|
||||||
// Do we care about forcing presshell creation if it hasn't happened yet?
|
// Do we care about forcing presshell creation if it hasn't happened yet?
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
class nsHtml5SVGLoadDispatcher : public mozilla::Runnable {
|
class nsHtml5SVGLoadDispatcher : public mozilla::Runnable {
|
||||||
private:
|
private:
|
||||||
nsCOMPtr<nsIContent> mElement;
|
const nsCOMPtr<nsIContent> mElement;
|
||||||
RefPtr<mozilla::dom::Document> mDocument;
|
const RefPtr<mozilla::dom::Document> mDocument;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit nsHtml5SVGLoadDispatcher(nsIContent* aElement);
|
explicit nsHtml5SVGLoadDispatcher(nsIContent* aElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user