Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: Source/core/frame/Window.idl

Issue 998673002: Add [NewObject] and [SameObject] to various interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/TreeWalker.idl ('k') | Source/core/html/HTMLFieldSetElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/dom/TreeWalker.idl ('k') | Source/core/html/HTMLFieldSetElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698