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

Side by Side Diff: Source/core/dom/Element.idl

Issue 158713002: Move popular DOM attributes to prototype chains (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Node.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); 42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName);
43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS(DOMString? nam espaceURI, DOMString localName); 44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS(DOMString? nam espaceURI, DOMString localName);
45 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS(Attr newAttr); 45 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS(Attr newAttr);
46 boolean hasAttribute(DOMString name); 46 boolean hasAttribute(DOMString name);
47 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); 47 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
48 48
49 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 49 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
50 50
51 // DOM4 51 // DOM4
52 [Reflect] attribute DOMString id; 52 [Reflect, ExposeJSAccessors] attribute DOMString id;
53 readonly attribute DOMString? namespaceURI; 53 readonly attribute DOMString? namespaceURI;
54 readonly attribute DOMString? prefix; 54 readonly attribute DOMString? prefix;
55 readonly attribute DOMString? localName; 55 readonly attribute DOMString? localName;
56 56
57 [RaisesException] boolean matches(DOMString selectors); 57 [RaisesException] boolean matches(DOMString selectors);
58 [RaisesException] Element closest(DOMString selectors); 58 [RaisesException] Element closest(DOMString selectors);
59 59
60 // Common extensions 60 // Common extensions
61 61
62 readonly attribute long offsetLeft; 62 readonly attribute long offsetLeft;
(...skipping 21 matching lines...) Expand all
84 void focus(); 84 void focus();
85 void blur(); 85 void blur();
86 void scrollIntoView(optional boolean alignWithTop); 86 void scrollIntoView(optional boolean alignWithTop);
87 87
88 // WebKit extensions 88 // WebKit extensions
89 89
90 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 90 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
91 91
92 // HTML 5 92 // HTML 5
93 HTMLCollection getElementsByClassName(DOMString classNames); 93 HTMLCollection getElementsByClassName(DOMString classNames);
94 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString innerHTML; 94 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, Exp oseJSAccessors] attribute DOMString innerHTML;
95 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 95 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML;
96 96
97 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 97 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
98 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 98 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
99 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void insertAdjacentHTML(DOMString where, DOMString html); 99 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void insertAdjacentHTML(DOMString where, DOMString html);
100 100
101 [Reflect=class] attribute DOMString className; 101 [Reflect=class] attribute DOMString className;
102 [PerWorldBindings] readonly attribute DOMTokenList classList; 102 [PerWorldBindings] readonly attribute DOMTokenList classList;
103 103
104 [PerWorldBindings] readonly attribute DOMStringMap dataset; 104 [PerWorldBindings] readonly attribute DOMStringMap dataset;
(...skipping 28 matching lines...) Expand all
133 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 133 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
134 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 134 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
135 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 135 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
136 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 136 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
137 attribute EventHandler onwheel; 137 attribute EventHandler onwheel;
138 }; 138 };
139 139
140 Element implements ParentNode; 140 Element implements ParentNode;
141 Element implements ChildNode; 141 Element implements ChildNode;
142 Element implements NonDocumentTypeChildNode; 142 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Node.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698