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

Unified Diff: Source/core/dom/Element.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/Document.idl ('k') | Source/core/dom/MutationRecord.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.idl
diff --git a/Source/core/dom/Element.idl b/Source/core/dom/Element.idl
index b4338ed58fd64821f54e06547e5fee86478bfb44..f933ae7dc4dc0634f3deada6543329bfc5877991 100644
--- a/Source/core/dom/Element.idl
+++ b/Source/core/dom/Element.idl
@@ -31,10 +31,10 @@
[Reflect, ExposeJSAccessors] attribute DOMString id;
[Reflect=class] attribute DOMString className;
- [PerWorldBindings] readonly attribute DOMTokenList classList;
+ [SameObject, PerWorldBindings] readonly attribute DOMTokenList classList;
[MeasureAs=HasAttributes] boolean hasAttributes();
- [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
+ [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
DOMString? getAttribute(DOMString name);
DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
[RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
@@ -107,12 +107,12 @@
// http://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface
// FIXME: style should be on HTMLElement and SVGElement.
// FIXME: style should have [PutForwards=cssText].
- [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
+ [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style;
// HTML
// https://html.spec.whatwg.org/#htmlelement
// FIXME: dataset, focus() and blur() should be on HTMLElement.
- [PerWorldBindings] readonly attribute DOMStringMap dataset;
+ [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset;
void focus();
void blur();
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/MutationRecord.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698