mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Implement Document.readyState. Prevent iframes from notifying the compositor after the initial parse. Fixes #1720. Fixes #3738.
This commit is contained in:
parent
470d27a668
commit
539c21f380
10 changed files with 113 additions and 41 deletions
|
@ -17,7 +17,6 @@ interface Document : Node {
|
|||
readonly attribute DOMString compatMode;
|
||||
readonly attribute DOMString characterSet;
|
||||
readonly attribute DOMString contentType;
|
||||
readonly attribute Location location;
|
||||
|
||||
readonly attribute DocumentType? doctype;
|
||||
readonly attribute Element? documentElement;
|
||||
|
@ -52,17 +51,23 @@ interface Document : Node {
|
|||
[NewObject]
|
||||
TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
|
||||
};
|
||||
Document implements ParentNode;
|
||||
|
||||
enum DocumentReadyState { "loading", "interactive", "complete" };
|
||||
|
||||
/* http://www.whatwg.org/specs/web-apps/current-work/#the-document-object */
|
||||
partial interface Document {
|
||||
// resource metadata management
|
||||
readonly attribute DocumentReadyState readyState;
|
||||
readonly attribute DOMString lastModified;
|
||||
readonly attribute Location location;
|
||||
|
||||
// DOM tree accessors
|
||||
[SetterThrows]
|
||||
attribute DOMString title;
|
||||
[SetterThrows]
|
||||
attribute HTMLElement? body;
|
||||
readonly attribute HTMLHeadElement? head;
|
||||
NodeList getElementsByName(DOMString elementName);
|
||||
|
||||
readonly attribute HTMLCollection images;
|
||||
readonly attribute HTMLCollection embeds;
|
||||
readonly attribute HTMLCollection plugins;
|
||||
|
@ -71,7 +76,9 @@ partial interface Document {
|
|||
readonly attribute HTMLCollection scripts;
|
||||
readonly attribute HTMLCollection anchors;
|
||||
readonly attribute HTMLCollection applets;
|
||||
};
|
||||
NodeList getElementsByName(DOMString elementName);
|
||||
|
||||
Document implements ParentNode;
|
||||
// special event handler IDL attributes that only apply to Document objects
|
||||
/*[LenientThis]*/ attribute EventHandler onreadystatechange;
|
||||
};
|
||||
Document implements GlobalEventHandlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue