| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 void synchronizeStyleAttributeInternal() const; | 178 void synchronizeStyleAttributeInternal() const; |
| 179 | 179 |
| 180 enum AttributeModificationReason { | 180 enum AttributeModificationReason { |
| 181 ModifiedDirectly, | 181 ModifiedDirectly, |
| 182 ModifiedByCloning | 182 ModifiedByCloning |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 virtual void parseAttribute(const QualifiedName&, const AtomicString&); | 185 virtual void parseAttribute(const QualifiedName&, const AtomicString&); |
| 186 | 186 |
| 187 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; | |
| 188 virtual const QualifiedName& subResourceAttributeName() const; | |
| 189 | |
| 190 // Only called by the parser immediately after element construction. | 187 // Only called by the parser immediately after element construction. |
| 191 void parserSetAttributes(const Vector<Attribute>&); | 188 void parserSetAttributes(const Vector<Attribute>&); |
| 192 | 189 |
| 193 bool sharesSameElementData(const Element& other) const { return elementData(
) == other.elementData(); } | 190 bool sharesSameElementData(const Element& other) const { return elementData(
) == other.elementData(); } |
| 194 | 191 |
| 195 // Clones attributes only. | 192 // Clones attributes only. |
| 196 void cloneAttributesFromElement(const Element&); | 193 void cloneAttributesFromElement(const Element&); |
| 197 | 194 |
| 198 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) | 195 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) |
| 199 void cloneDataFromElement(const Element&); | 196 void cloneDataFromElement(const Element&); |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 static PassRefPtr<T> create(const QualifiedName&, Document&) | 601 static PassRefPtr<T> create(const QualifiedName&, Document&) |
| 605 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 602 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 606 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 603 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 607 { \ | 604 { \ |
| 608 return adoptRef(new T(tagName, document)); \ | 605 return adoptRef(new T(tagName, document)); \ |
| 609 } | 606 } |
| 610 | 607 |
| 611 } // namespace | 608 } // namespace |
| 612 | 609 |
| 613 #endif // Element_h | 610 #endif // Element_h |
| OLD | NEW |