| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 enum AttributeModificationReason { | 305 enum AttributeModificationReason { |
| 306 ModifiedDirectly, | 306 ModifiedDirectly, |
| 307 ModifiedByCloning | 307 ModifiedByCloning |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 // This method is called whenever an attribute is added, changed or removed. | 310 // This method is called whenever an attribute is added, changed or removed. |
| 311 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly); | 311 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly); |
| 312 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } | 312 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } |
| 313 | 313 |
| 314 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; | 314 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; |
| 315 virtual const QualifiedName& subResourceAttributeName() const; |
| 315 | 316 |
| 316 // Only called by the parser immediately after element construction. | 317 // Only called by the parser immediately after element construction. |
| 317 void parserSetAttributes(const Vector<Attribute>&); | 318 void parserSetAttributes(const Vector<Attribute>&); |
| 318 | 319 |
| 319 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. | 320 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. |
| 320 void stripScriptingAttributes(Vector<Attribute>&) const; | 321 void stripScriptingAttributes(Vector<Attribute>&) const; |
| 321 | 322 |
| 322 const ElementData* elementData() const { return m_elementData.get(); } | 323 const ElementData* elementData() const { return m_elementData.get(); } |
| 323 UniqueElementData& ensureUniqueElementData(); | 324 UniqueElementData& ensureUniqueElementData(); |
| 324 | 325 |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 936 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
| 936 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 937 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
| 937 | 938 |
| 938 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 939 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
| 939 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 940 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
| 940 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 941 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 941 | 942 |
| 942 } // namespace | 943 } // namespace |
| 943 | 944 |
| 944 #endif | 945 #endif |
| OLD | NEW |