зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
964184af24
Коммит
dc3411ed8f
|
@ -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?
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче