mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #7389 - frewsxcv:implement-nihilistic-methods, r=nox
Implement 'do nothing' methods on Window and Document <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7389) <!-- Reviewable:end -->
This commit is contained in:
commit
8c301c291a
6 changed files with 35 additions and 39 deletions
|
@ -1825,12 +1825,27 @@ impl<'a> DocumentMethods for &'a Document {
|
|||
collection.r().reflector().get_jsobject().get()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/#document
|
||||
// https://html.spec.whatwg.org/multipage/#document
|
||||
fn SupportedPropertyNames(self) -> Vec<DOMString> {
|
||||
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
|
||||
vec![]
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-clear
|
||||
fn Clear(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-document-captureevents
|
||||
fn CaptureEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/#dom-document-releaseevents
|
||||
fn ReleaseEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
global_event_handlers!();
|
||||
event_handler!(readystatechange, GetOnreadystatechange, SetOnreadystatechange);
|
||||
}
|
||||
|
|
|
@ -146,9 +146,9 @@ partial interface Document {
|
|||
[SameObject]
|
||||
readonly attribute HTMLCollection applets;
|
||||
|
||||
// void clear();
|
||||
// void captureEvents();
|
||||
// void releaseEvents();
|
||||
void clear();
|
||||
void captureEvents();
|
||||
void releaseEvents();
|
||||
|
||||
// Tracking issue for document.all: https://github.com/servo/servo/issues/7396
|
||||
// readonly attribute HTMLAllCollection all;
|
||||
|
|
|
@ -93,6 +93,12 @@ partial interface Window {
|
|||
/*[Replaceable]*/ readonly attribute Performance performance;
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#Window-partial
|
||||
partial interface Window {
|
||||
void captureEvents();
|
||||
void releaseEvents();
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/cssom/#extensions-to-the-window-interface
|
||||
partial interface Window {
|
||||
[NewObject]
|
||||
|
|
|
@ -542,6 +542,16 @@ impl<'a> WindowMethods for &'a Window {
|
|||
doc.r().cancel_animation_frame(ident);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-window-captureevents
|
||||
fn CaptureEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-window-releaseevents
|
||||
fn ReleaseEvents(self) {
|
||||
// This method intentionally does nothing
|
||||
}
|
||||
|
||||
// check-tidy: no specs after this line
|
||||
fn Debug(self, message: DOMString) {
|
||||
debug!("{}", message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue