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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 | 84 |
85 class Element : public ContainerNode { | 85 class Element : public ContainerNode { |
86 DEFINE_WRAPPERTYPEINFO(); | 86 DEFINE_WRAPPERTYPEINFO(); |
87 public: | 87 public: |
88 static PassRefPtr<Element> create(const QualifiedName&, Document*); | 88 static PassRefPtr<Element> create(const QualifiedName&, Document*); |
89 virtual ~Element(); | 89 virtual ~Element(); |
90 | 90 |
91 bool hasAttribute(const QualifiedName&) const; | 91 bool hasAttribute(const QualifiedName&) const; |
92 const AtomicString& getAttribute(const QualifiedName&) const; | 92 const AtomicString& getAttribute(const QualifiedName&) const; |
93 | 93 |
94 Vector<RefPtr<Attr>> getAttributes(); | |
esprehn
2014/10/30 20:53:09
const
abarth-chromium
2014/10/30 20:54:52
It can't be const because it calls ensureAttr, whi
| |
95 | |
94 // Passing nullAtom as the second parameter removes the attribute when calli ng either of these set methods. | 96 // Passing nullAtom as the second parameter removes the attribute when calli ng either of these set methods. |
95 void setAttribute(const QualifiedName&, const AtomicString& value); | 97 void setAttribute(const QualifiedName&, const AtomicString& value); |
96 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value); | 98 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value); |
97 | 99 |
98 void removeAttribute(const QualifiedName&); | 100 void removeAttribute(const QualifiedName&); |
99 | 101 |
100 // Typed getters and setters for language bindings. | 102 // Typed getters and setters for language bindings. |
101 int getIntegralAttribute(const QualifiedName& attributeName) const; | 103 int getIntegralAttribute(const QualifiedName& attributeName) const; |
102 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 104 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
103 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst; | 105 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst; |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
683 static PassRefPtr<T> create(const QualifiedName&, Document&) | 685 static PassRefPtr<T> create(const QualifiedName&, Document&) |
684 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 686 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
685 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 687 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
686 { \ | 688 { \ |
687 return adoptRef(new T(tagName, document)); \ | 689 return adoptRef(new T(tagName, document)); \ |
688 } | 690 } |
689 | 691 |
690 } // namespace | 692 } // namespace |
691 | 693 |
692 #endif // Element_h | 694 #endif // Element_h |
OLD | NEW |