OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 void setAttributeNS(const AtomicString& namespace_uri, | 192 void setAttributeNS(const AtomicString& namespace_uri, |
193 const AtomicString& qualified_name, | 193 const AtomicString& qualified_name, |
194 const AtomicString& value, | 194 const AtomicString& value, |
195 ExceptionState&); | 195 ExceptionState&); |
196 | 196 |
197 const AtomicString& GetIdAttribute() const; | 197 const AtomicString& GetIdAttribute() const; |
198 void SetIdAttribute(const AtomicString&); | 198 void SetIdAttribute(const AtomicString&); |
199 | 199 |
200 const AtomicString& GetNameAttribute() const; | 200 const AtomicString& GetNameAttribute() const; |
201 const AtomicString& GetClassAttribute() const; | 201 const AtomicString& GetClassAttribute() const; |
202 Vector<AtomicString> getAttributeNames() const; | |
tkent
2017/06/01 23:48:10
nit: I'd like to move this next to |attributesForB
Shanmuga Pandi
2017/06/02 05:21:51
Done.
| |
202 | 203 |
203 // This is an operation defined in the DOM standard like: | 204 // This is an operation defined in the DOM standard like: |
204 // If element is in the HTML namespace and its node document is an HTML | 205 // If element is in the HTML namespace and its node document is an HTML |
205 // document, then set qualifiedName to qualifiedName in ASCII lowercase. | 206 // document, then set qualifiedName to qualifiedName in ASCII lowercase. |
206 // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name | 207 // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name |
207 AtomicString LowercaseIfNecessary(const AtomicString&) const; | 208 AtomicString LowercaseIfNecessary(const AtomicString&) const; |
208 | 209 |
209 // NoncedElement implementation: this is only used by HTMLElement and | 210 // NoncedElement implementation: this is only used by HTMLElement and |
210 // SVGElement, but putting the implementation here allows us to use | 211 // SVGElement, but putting the implementation here allows us to use |
211 // ElementRareData to hold the data. | 212 // ElementRareData to hold the data. |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1239 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1240 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1240 static T* Create(const QualifiedName&, Document&) | 1241 static T* Create(const QualifiedName&, Document&) |
1241 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1242 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1242 T* T::Create(const QualifiedName& tagName, Document& document) { \ | 1243 T* T::Create(const QualifiedName& tagName, Document& document) { \ |
1243 return new T(tagName, document); \ | 1244 return new T(tagName, document); \ |
1244 } | 1245 } |
1245 | 1246 |
1246 } // namespace blink | 1247 } // namespace blink |
1247 | 1248 |
1248 #endif // Element_h | 1249 #endif // Element_h |
OLD | NEW |