mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove all traces of WindowProxy. Implement basic browser context concept and outerizing of inner windows.
This commit is contained in:
parent
c760577aee
commit
94dffca1e1
24 changed files with 354 additions and 155 deletions
|
@ -25,7 +25,7 @@ interface HTMLFrameElement : HTMLElement {
|
|||
[SetterThrows]
|
||||
attribute boolean noResize;
|
||||
readonly attribute Document? contentDocument;
|
||||
readonly attribute WindowProxy? contentWindow;
|
||||
readonly attribute Window? contentWindow;
|
||||
|
||||
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight;
|
||||
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth;
|
||||
|
|
|
@ -27,7 +27,7 @@ interface HTMLIFrameElement : HTMLElement {
|
|||
[SetterThrows, Pure]
|
||||
attribute DOMString height;
|
||||
readonly attribute Document? contentDocument;
|
||||
readonly attribute WindowProxy? contentWindow;
|
||||
readonly attribute Window? contentWindow;
|
||||
};
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||
|
|
|
@ -32,7 +32,7 @@ interface HTMLObjectElement : HTMLElement {
|
|||
// Not pure: can trigger about:blank instantiation
|
||||
readonly attribute Document? contentDocument;
|
||||
// Not pure: can trigger about:blank instantiation
|
||||
readonly attribute WindowProxy? contentWindow;
|
||||
readonly attribute Window? contentWindow;
|
||||
|
||||
readonly attribute boolean willValidate;
|
||||
readonly attribute ValidityState validity;
|
||||
|
|
|
@ -26,7 +26,7 @@ interface MouseEvent : UIEvent {
|
|||
void initMouseEvent(DOMString typeArg,
|
||||
boolean canBubbleArg,
|
||||
boolean cancelableArg,
|
||||
WindowProxy? viewArg,
|
||||
Window? viewArg,
|
||||
long detailArg,
|
||||
long screenXArg,
|
||||
long screenYArg,
|
||||
|
@ -56,7 +56,7 @@ dictionary MouseEventInit {
|
|||
boolean cancelable = false;
|
||||
|
||||
// Attributes from UIEvent:
|
||||
WindowProxy? view = null;
|
||||
Window? view = null;
|
||||
long detail = 0;
|
||||
|
||||
// Attributes for MouseEvent:
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
[Constructor(DOMString type, optional UIEventInit eventInitDict)]
|
||||
interface UIEvent : Event
|
||||
{
|
||||
readonly attribute WindowProxy? view;
|
||||
readonly attribute long detail;
|
||||
readonly attribute Window? view;
|
||||
readonly attribute long detail;
|
||||
void initUIEvent(DOMString aType,
|
||||
boolean aCanBubble,
|
||||
boolean aCancelable,
|
||||
WindowProxy? aView,
|
||||
Window? aView,
|
||||
long aDetail);
|
||||
};
|
||||
|
||||
|
@ -40,6 +40,6 @@ partial interface UIEvent {
|
|||
|
||||
dictionary UIEventInit : EventInit
|
||||
{
|
||||
WindowProxy? view = null;
|
||||
long detail = 0;
|
||||
Window? view = null;
|
||||
long detail = 0;
|
||||
};
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
[NamedPropertiesObject]
|
||||
/*sealed*/ interface Window : EventTarget {
|
||||
// the current browsing context
|
||||
/*[Unforgeable] readonly attribute WindowProxy window;
|
||||
[Replaceable] readonly attribute WindowProxy self;*/
|
||||
[Unforgeable] readonly attribute Window window;
|
||||
[Replaceable] readonly attribute Window self;
|
||||
[Unforgeable] readonly attribute Document document;
|
||||
attribute DOMString name;
|
||||
/* [PutForwards=href, Unforgeable] */ readonly attribute Location location;
|
||||
|
@ -30,14 +30,14 @@
|
|||
void blur();
|
||||
|
||||
// other browsing contexts
|
||||
/*[Replaceable] readonly attribute WindowProxy frames;
|
||||
/*[Replaceable] readonly attribute Window frames;
|
||||
[Replaceable] readonly attribute unsigned long length;
|
||||
[Unforgeable] readonly attribute WindowProxy top;
|
||||
attribute WindowProxy? opener;
|
||||
readonly attribute WindowProxy parent;*/
|
||||
[Unforgeable] readonly attribute Window top;
|
||||
attribute Window? opener;
|
||||
readonly attribute Window parent;*/
|
||||
readonly attribute Element? frameElement;
|
||||
/*WindowProxy open(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false);
|
||||
getter WindowProxy (unsigned long index);*/
|
||||
/*Window open(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false);
|
||||
getter Window (unsigned long index);*/
|
||||
//getter object (DOMString name);
|
||||
|
||||
// the user agent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue