web-sys: Use mixins instead of [NoInterfaceObject] interfaces and implements

I think these might all be from before WebIDL mixins existed. Either way,
multiple inheritance of interfaces that don't have exposed interface objects is
equivalent to mixins.
This commit is contained in:
Nick Fitzgerald
2018-08-15 16:32:06 -07:00
parent 69cc7725d6
commit b8afa0abde
99 changed files with 224 additions and 518 deletions

View File

@ -21,8 +21,7 @@ dictionary ConvertCoordinateOptions {
CSSBoxType toBox = "border";
};
[NoInterfaceObject]
interface GeometryUtils {
interface mixin GeometryUtils {
[Throws, Func="nsINode::HasBoxQuadsSupport", NeedsCallerType]
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options);
[Throws, Pref="layout.css.convertFromNode.enabled", NeedsCallerType]
@ -33,6 +32,6 @@ interface GeometryUtils {
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options);
};
// PseudoElement implements GeometryUtils;
// PseudoElement includes GeometryUtils;
typedef (Text or Element /* or PseudoElement */ or Document) GeometryNode;