mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibWeb: Switch IDL from UseNewAKString to UseDeprecatedAKString
NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
This commit is contained in:
parent
198591cc20
commit
d4a890080d
146 changed files with 157 additions and 158 deletions
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/Element.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Attr : Node {
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
readonly attribute DOMString? prefix;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#characterdata
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface CharacterData : Node {
|
||||
[LegacyNullToEmptyString] attribute DOMString data;
|
||||
readonly attribute unsigned long length;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/CharacterData.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#comment
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Comment : CharacterData {
|
||||
constructor(optional DOMString data = "");
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
[Exposed=(Window,Worker), UseNewAKString]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CustomEvent : Event {
|
||||
constructor(DOMString type, optional CustomEventInit eventInitDict = {});
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/Document.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#domimplementation
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface DOMImplementation {
|
||||
|
||||
// FIXME: This should return XMLDocument instead of Document.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// https://dom.spec.whatwg.org/#interface-domtokenlist
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface DOMTokenList {
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMString? item(unsigned long index);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#import <Selection/Selection.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#document
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Document : Node {
|
||||
constructor();
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#import <DOM/ParentNode.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#documentfragment
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface DocumentFragment : Node {
|
||||
constructor();
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#documenttype
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface DocumentType : Node {
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString publicId;
|
||||
|
|
|
@ -19,7 +19,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
|
|||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#element
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Element : Node {
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
readonly attribute DOMString? prefix;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#event
|
||||
[Exposed=*, UseNewAKString]
|
||||
[Exposed=*]
|
||||
interface Event {
|
||||
|
||||
constructor(DOMString type, optional EventInit eventInitDict = {});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/AbortSignal.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#eventtarget
|
||||
[Exposed=*, UseNewAKString]
|
||||
[Exposed=*]
|
||||
interface EventTarget {
|
||||
|
||||
constructor();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <DOM/Element.idl>
|
||||
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface HTMLCollection {
|
||||
|
||||
readonly attribute unsigned long length;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#htmlformcontrolscollection
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface HTMLFormControlsCollection : HTMLCollection {
|
||||
[ImplementedAs=named_item_or_radio_node_list] getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/MutationRecord.idl>
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface MutationObserver {
|
||||
|
||||
constructor(MutationCallback callback);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/NodeList.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface MutationRecord {
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <DOM/Attr.idl>
|
||||
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties, UseDeprecatedAKString]
|
||||
interface NamedNodeMap {
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#node
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Node : EventTarget {
|
||||
|
||||
readonly attribute unsigned short nodeType;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/NodeList.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#radionodelist
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface RadioNodeList : NodeList {
|
||||
attribute DOMString value;
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#import <DOM/AbstractRange.idl>
|
||||
#import <Geometry/DOMRect.idl>
|
||||
|
||||
[Exposed=Window, UseNewAKString]
|
||||
[Exposed=Window]
|
||||
interface Range : AbstractRange {
|
||||
|
||||
constructor();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#import <DOM/InnerHTML.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#shadowroot
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface ShadowRoot : DocumentFragment {
|
||||
readonly attribute ShadowRootMode mode;
|
||||
// FIXME: readonly attribute boolean delegatesFocus;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <DOM/CharacterData.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#text
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
interface Text : CharacterData {
|
||||
constructor(optional DOMString data = "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue