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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 enum AttributeModificationReason { | 303 enum AttributeModificationReason { |
304 ModifiedDirectly, | 304 ModifiedDirectly, |
305 ModifiedByCloning | 305 ModifiedByCloning |
306 }; | 306 }; |
307 | 307 |
308 // This method is called whenever an attribute is added, changed or removed. | 308 // This method is called whenever an attribute is added, changed or removed. |
309 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly); | 309 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly); |
310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } | 310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } |
311 | 311 |
312 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; | 312 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; |
| 313 virtual const QualifiedName* subResourceAttributeName() const; |
313 | 314 |
314 // Only called by the parser immediately after element construction. | 315 // Only called by the parser immediately after element construction. |
315 void parserSetAttributes(const Vector<Attribute>&); | 316 void parserSetAttributes(const Vector<Attribute>&); |
316 | 317 |
317 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. | 318 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. |
318 void stripScriptingAttributes(Vector<Attribute>&) const; | 319 void stripScriptingAttributes(Vector<Attribute>&) const; |
319 | 320 |
320 const ElementData* elementData() const { return m_elementData.get(); } | 321 const ElementData* elementData() const { return m_elementData.get(); } |
321 UniqueElementData& ensureUniqueElementData(); | 322 UniqueElementData& ensureUniqueElementData(); |
322 | 323 |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 931 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
931 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 932 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
932 | 933 |
933 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 934 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
934 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 935 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
935 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 936 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
936 | 937 |
937 } // namespace | 938 } // namespace |
938 | 939 |
939 #endif | 940 #endif |
OLD | NEW |