зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452862. Remove various pointless QueryInterface implementations from bindings. r=qdot
BarProp, CaretPosition, Crypto, CSSMozDocumentRule, CSSPrimitiveValue, CSSStyleDeclaration, CSSStyleRule, CSSValueList, DOMImplementation, DOMTokenList, FileList, FrameLoader, FormData, HTMLCollection, History, MimeTypeArray, NamedNodeMap, MutationObserver, MutationRecord, Navigator, NodeIterator, PaintRequest, PaintRequestList, Plugin, Rect, SVGAnimatedEnumeration, SVGAnimatedInteger, SVGAnimatedNumber, SVGAnimatedNumberList, SVGAnimatedPreserveAspectRatio, SVGAnimatedString, SVGLengthList, SVGNumberList, SVGPathSegList, SVGPoint, SVGPointList, SVGPreserveAspectRatio, SVGRect, SVGStringList, SVGTransformList, Touch, TouchList, TreeWalker, ValidityState only implement nsISupports, so there's no point QIing them. DOMStringMap, FrameLoader, NodeIterator, SVGPoint, StyleSheet only implement non-scriptable non-shimmed interfaces (nsIMutationObserver, nsISVGPoint, nsICSSLoaderObserver), so can't be usefully QIed from script. EventSource, Notification, OfflineResourceList, Performance, Screen, WebSocket, XMLHttpRequestUpload only implement nsIDOMEventTarget, and nothing QIs to that in script. PluginArray QIs to nsIObserver but doesn't expose any corresponding methods. None of the QIs to that interface seem to be on PluginArray objects. Range QIs to nsIDOMRange, but there is no JS code that QIs to that. NodeList QIs to nsIDOMNodeList, but there is no JS code that QIs to that. XMLSerializer doesn't even implement nsISupports. MozReview-Commit-ID: Fil5cBd4K4d
This commit is contained in:
Родитель
2542e6eb8a
Коммит
7477a7ddce
|
@ -18,80 +18,23 @@ interface LegacyQueryInterface {
|
|||
};
|
||||
|
||||
Attr implements LegacyQueryInterface;
|
||||
BarProp implements LegacyQueryInterface;
|
||||
BoxObject implements LegacyQueryInterface;
|
||||
CaretPosition implements LegacyQueryInterface;
|
||||
ChildProcessMessageManager implements LegacyQueryInterface;
|
||||
ChromeMessageBroadcaster implements LegacyQueryInterface;
|
||||
ChromeMessageSender implements LegacyQueryInterface;
|
||||
Comment implements LegacyQueryInterface;
|
||||
ContentFrameMessageManager implements LegacyQueryInterface;
|
||||
ContentProcessMessageManager implements LegacyQueryInterface;
|
||||
Crypto implements LegacyQueryInterface;
|
||||
CSSMozDocumentRule implements LegacyQueryInterface;
|
||||
CSSPrimitiveValue implements LegacyQueryInterface;
|
||||
CSSStyleDeclaration implements LegacyQueryInterface;
|
||||
CSSStyleRule implements LegacyQueryInterface;
|
||||
CSSValueList implements LegacyQueryInterface;
|
||||
DOMImplementation implements LegacyQueryInterface;
|
||||
DOMParser implements LegacyQueryInterface;
|
||||
DOMStringMap implements LegacyQueryInterface;
|
||||
DOMTokenList implements LegacyQueryInterface;
|
||||
Document implements LegacyQueryInterface;
|
||||
DocumentFragment implements LegacyQueryInterface;
|
||||
DocumentType implements LegacyQueryInterface;
|
||||
Element implements LegacyQueryInterface;
|
||||
Event implements LegacyQueryInterface;
|
||||
EventSource implements LegacyQueryInterface;
|
||||
FileList implements LegacyQueryInterface;
|
||||
FrameLoader implements LegacyQueryInterface;
|
||||
FormData implements LegacyQueryInterface;
|
||||
HTMLCollection implements LegacyQueryInterface;
|
||||
History implements LegacyQueryInterface;
|
||||
MimeTypeArray implements LegacyQueryInterface;
|
||||
NamedNodeMap implements LegacyQueryInterface;
|
||||
MutationObserver implements LegacyQueryInterface;
|
||||
MutationRecord implements LegacyQueryInterface;
|
||||
Navigator implements LegacyQueryInterface;
|
||||
NodeIterator implements LegacyQueryInterface;
|
||||
NodeList implements LegacyQueryInterface;
|
||||
Notification implements LegacyQueryInterface;
|
||||
OfflineResourceList implements LegacyQueryInterface;
|
||||
PaintRequest implements LegacyQueryInterface;
|
||||
PaintRequestList implements LegacyQueryInterface;
|
||||
Performance implements LegacyQueryInterface;
|
||||
Plugin implements LegacyQueryInterface;
|
||||
PluginArray implements LegacyQueryInterface;
|
||||
ProcessingInstruction implements LegacyQueryInterface;
|
||||
Range implements LegacyQueryInterface;
|
||||
Rect implements LegacyQueryInterface;
|
||||
Selection implements LegacyQueryInterface;
|
||||
SVGAnimatedEnumeration implements LegacyQueryInterface;
|
||||
SVGAnimatedInteger implements LegacyQueryInterface;
|
||||
SVGAnimatedNumber implements LegacyQueryInterface;
|
||||
SVGAnimatedNumberList implements LegacyQueryInterface;
|
||||
SVGAnimatedPreserveAspectRatio implements LegacyQueryInterface;
|
||||
SVGAnimatedString implements LegacyQueryInterface;
|
||||
SVGLengthList implements LegacyQueryInterface;
|
||||
SVGNumberList implements LegacyQueryInterface;
|
||||
SVGPathSegList implements LegacyQueryInterface;
|
||||
SVGPoint implements LegacyQueryInterface;
|
||||
SVGPointList implements LegacyQueryInterface;
|
||||
SVGPreserveAspectRatio implements LegacyQueryInterface;
|
||||
SVGRect implements LegacyQueryInterface;
|
||||
SVGStringList implements LegacyQueryInterface;
|
||||
SVGTransformList implements LegacyQueryInterface;
|
||||
Screen implements LegacyQueryInterface;
|
||||
StyleSheet implements LegacyQueryInterface;
|
||||
Text implements LegacyQueryInterface;
|
||||
Touch implements LegacyQueryInterface;
|
||||
TouchList implements LegacyQueryInterface;
|
||||
TreeColumns implements LegacyQueryInterface;
|
||||
TreeContentView implements LegacyQueryInterface;
|
||||
TreeWalker implements LegacyQueryInterface;
|
||||
ValidityState implements LegacyQueryInterface;
|
||||
WebSocket implements LegacyQueryInterface;
|
||||
Window implements LegacyQueryInterface;
|
||||
XMLHttpRequest implements LegacyQueryInterface;
|
||||
XMLHttpRequestUpload implements LegacyQueryInterface;
|
||||
XMLSerializer implements LegacyQueryInterface;
|
||||
|
|
Загрузка…
Ссылка в новой задаче