зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1535384 part 10. Remove MOZ_CAN_RUN_SCRIPT_BOUNDARY for FontFaceSetForEachCallback. r=heycam
This code should all go away (bug 1311198), but in the meantime... Differential Revision: https://phabricator.services.mozilla.com/D23781 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5869bb7df1
Коммит
b21a31cc49
|
@ -23,7 +23,6 @@ interface FontFaceSetIterator {
|
|||
[Throws] FontFaceSetIteratorResult next();
|
||||
};
|
||||
|
||||
[MOZ_CAN_RUN_SCRIPT_BOUNDARY]
|
||||
callback FontFaceSetForEachCallback = void (FontFace value, FontFace key, FontFaceSet set);
|
||||
|
||||
enum FontFaceSetLoadStatus { "loading", "loaded" };
|
||||
|
|
|
@ -569,7 +569,7 @@ void FontFaceSet::ForEach(JSContext* aCx, FontFaceSetForEachCallback& aCallback,
|
|||
JS::Handle<JS::Value> aThisArg, ErrorResult& aRv) {
|
||||
JS::Rooted<JS::Value> thisArg(aCx, aThisArg);
|
||||
for (size_t i = 0; i < Size(); i++) {
|
||||
FontFace* face = GetFontFaceAt(i);
|
||||
RefPtr<FontFace> face = GetFontFaceAt(i);
|
||||
aCallback.Call(thisArg, *face, *face, *this, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return;
|
||||
|
|
|
@ -192,6 +192,7 @@ class FontFaceSet final : public DOMEventTargetHelper,
|
|||
uint32_t Size();
|
||||
already_AddRefed<mozilla::dom::FontFaceSetIterator> Entries();
|
||||
already_AddRefed<mozilla::dom::FontFaceSetIterator> Values();
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
void ForEach(JSContext* aCx, FontFaceSetForEachCallback& aCallback,
|
||||
JS::Handle<JS::Value> aThisArg, mozilla::ErrorResult& aRv);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче