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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 const AtomicString& GetNameAttribute() const; | 200 const AtomicString& GetNameAttribute() const; |
201 const AtomicString& GetClassAttribute() const; | 201 const AtomicString& GetClassAttribute() const; |
202 | 202 |
203 // This is an operation defined in the DOM standard like: | 203 // 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 | 204 // If element is in the HTML namespace and its node document is an HTML |
205 // document, then set qualifiedName to qualifiedName in ASCII lowercase. | 205 // document, then set qualifiedName to qualifiedName in ASCII lowercase. |
206 // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name | 206 // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name |
207 AtomicString LowercaseIfNecessary(const AtomicString&) const; | 207 AtomicString LowercaseIfNecessary(const AtomicString&) const; |
208 | 208 |
| 209 // NoncedElement implementation: this is only used by HTMLElement and |
| 210 // SVGElement, but putting the implementation here allows us to use |
| 211 // ElementRareData to hold the data. |
| 212 const AtomicString& nonce() const; |
| 213 void setNonce(const AtomicString&); |
| 214 |
209 // Call this to get the value of the id attribute for style resolution | 215 // Call this to get the value of the id attribute for style resolution |
210 // purposes. The value will already be lowercased if the document is in | 216 // purposes. The value will already be lowercased if the document is in |
211 // compatibility mode, so this function is not suitable for non-style uses. | 217 // compatibility mode, so this function is not suitable for non-style uses. |
212 const AtomicString& IdForStyleResolution() const; | 218 const AtomicString& IdForStyleResolution() const; |
213 | 219 |
214 // This getter takes care of synchronizing all attributes before returning the | 220 // This getter takes care of synchronizing all attributes before returning the |
215 // AttributeCollection. If the Element has no attributes, an empty | 221 // AttributeCollection. If the Element has no attributes, an empty |
216 // AttributeCollection will be returned. This is not a trivial getter and its | 222 // AttributeCollection will be returned. This is not a trivial getter and its |
217 // return value should be cached for performance. | 223 // return value should be cached for performance. |
218 AttributeCollection Attributes() const; | 224 AttributeCollection Attributes() const; |
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1239 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1234 static T* Create(const QualifiedName&, Document&) | 1240 static T* Create(const QualifiedName&, Document&) |
1235 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1241 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1236 T* T::Create(const QualifiedName& tagName, Document& document) { \ | 1242 T* T::Create(const QualifiedName& tagName, Document& document) { \ |
1237 return new T(tagName, document); \ | 1243 return new T(tagName, document); \ |
1238 } | 1244 } |
1239 | 1245 |
1240 } // namespace blink | 1246 } // namespace blink |
1241 | 1247 |
1242 #endif // Element_h | 1248 #endif // Element_h |
OLD | NEW |