Bug 1574195 part 3. Switch XPathEvaluator to using IDL mixins. r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D46522

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-09-24 10:10:47 +00:00
Родитель 3f72fbb470
Коммит adcd36b901
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -618,7 +618,7 @@ partial interface Document {
[Func="Document::DocumentSupportsL10n"] readonly attribute DocumentL10n? l10n;
};
Document implements XPathEvaluator;
Document includes XPathEvaluatorMixin;
Document includes GlobalEventHandlers;
Document includes DocumentAndElementEventHandlers;
Document implements TouchEventHandlers;

Просмотреть файл

@ -6,7 +6,10 @@
interface XPathEvaluator {
constructor();
};
XPathEvaluator includes XPathEvaluatorMixin;
interface mixin XPathEvaluatorMixin {
[NewObject, Throws]
XPathExpression createExpression(DOMString expression,
optional XPathNSResolver? resolver = null);