Index: Source/core/frame/Window.idl |
diff --git a/Source/core/frame/Window.idl b/Source/core/frame/Window.idl |
index 006a11d949f4e4de69420216929c0824e4dc64cf..426a07c9c4f8767b01c970f040b9f3721ee610c7 100644 |
--- a/Source/core/frame/Window.idl |
+++ b/Source/core/frame/Window.idl |
@@ -95,7 +95,7 @@ |
// CSS Object Model (CSSOM) |
// http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface |
// FIXME: The optional pseudoElt argument should have no default. |
- [TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString? pseudoElt = null); |
+ [NewObject, TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString? pseudoElt = null); |
// http://dev.w3.org/csswg/cssom/#utility-apis |
// FIXME: CSS should be an interface with static members, in which |
// case this getter would not be needed. |
@@ -103,8 +103,8 @@ |
// CSSOM View Module |
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface |
- MediaQueryList matchMedia(DOMString query); |
- readonly attribute Screen screen; |
+ [NewObject] MediaQueryList matchMedia(DOMString query); |
+ [SameObject] readonly attribute Screen screen; |
// browsing context |
// FIXME: The x and y arguments should not be optional. crbug.com/453421 |