| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 virtual void didMoveToNewDocument(Document&) OVERRIDE; | 216 virtual void didMoveToNewDocument(Document&) OVERRIDE; |
| 217 | 217 |
| 218 void removeAttribute(const AtomicString& name); | 218 void removeAttribute(const AtomicString& name); |
| 219 void removeAttributeNS(const AtomicString& namespaceURI, const AtomicString&
localName); | 219 void removeAttributeNS(const AtomicString& namespaceURI, const AtomicString&
localName); |
| 220 | 220 |
| 221 PassRefPtr<Attr> detachAttribute(size_t index); | 221 PassRefPtr<Attr> detachAttribute(size_t index); |
| 222 | 222 |
| 223 PassRefPtr<Attr> getAttributeNode(const AtomicString& name); | 223 PassRefPtr<Attr> getAttributeNode(const AtomicString& name); |
| 224 PassRefPtr<Attr> getAttributeNodeNS(const AtomicString& namespaceURI, const
AtomicString& localName); | 224 PassRefPtr<Attr> getAttributeNodeNS(const AtomicString& namespaceURI, const
AtomicString& localName); |
| 225 PassRefPtr<Attr> setAttributeNode(Attr*, ExceptionState&); | 225 PassRefPtr<Attr> setAttributeNode(Attr*, ExceptionState&); |
| 226 PassRefPtr<Attr> setAttributeNodeNS(Attr*, ExceptionState&); |
| 226 PassRefPtr<Attr> removeAttributeNode(Attr*, ExceptionState&); | 227 PassRefPtr<Attr> removeAttributeNode(Attr*, ExceptionState&); |
| 227 | 228 |
| 228 PassRefPtr<Attr> attrIfExists(const QualifiedName&); | 229 PassRefPtr<Attr> attrIfExists(const QualifiedName&); |
| 229 PassRefPtr<Attr> ensureAttr(const QualifiedName&); | 230 PassRefPtr<Attr> ensureAttr(const QualifiedName&); |
| 230 | 231 |
| 231 const Vector<RefPtr<Attr> >& attrNodeList(); | 232 const Vector<RefPtr<Attr> >& attrNodeList(); |
| 232 | 233 |
| 233 CSSStyleDeclaration* style(); | 234 CSSStyleDeclaration* style(); |
| 234 | 235 |
| 235 const QualifiedName& tagQName() const { return m_tagName; } | 236 const QualifiedName& tagQName() const { return m_tagName; } |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 880 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
| 880 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 881 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
| 881 | 882 |
| 882 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 883 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
| 883 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 884 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
| 884 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 885 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 885 | 886 |
| 886 } // namespace | 887 } // namespace |
| 887 | 888 |
| 888 #endif | 889 #endif |
| OLD | NEW |