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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 static PassRefPtr<Element> create(const QualifiedName&, Document*); | 69 static PassRefPtr<Element> create(const QualifiedName&, Document*); |
70 virtual ~Element(); | 70 virtual ~Element(); |
71 | 71 |
72 bool hasAttribute(const QualifiedName&) const; | 72 bool hasAttribute(const QualifiedName&) const; |
73 const AtomicString& getAttribute(const QualifiedName&) const; | 73 const AtomicString& getAttribute(const QualifiedName&) const; |
74 Vector<RefPtr<Attr>> getAttributes(); | 74 Vector<RefPtr<Attr>> getAttributes(); |
75 bool hasAttributes() const; | 75 bool hasAttributes() const; |
76 bool hasAttribute(const AtomicString& name) const; | 76 bool hasAttribute(const AtomicString& name) const; |
77 const AtomicString& getAttribute(const AtomicString& name) const; | 77 const AtomicString& getAttribute(const AtomicString& name) const; |
78 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); | 78 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); |
| 79 void setAttribute(const AtomicString& name, ExceptionState& es) { |
| 80 setAttribute(name, String(), es); |
| 81 } |
79 void removeAttribute(const AtomicString& name); | 82 void removeAttribute(const AtomicString& name); |
80 void removeAttribute(const QualifiedName&); | 83 void removeAttribute(const QualifiedName&); |
81 | 84 |
82 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. | 85 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. |
83 void setAttribute(const QualifiedName&, const AtomicString& value); | 86 void setAttribute(const QualifiedName&, const AtomicString& value); |
84 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); | 87 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); |
85 | 88 |
86 // Typed getters and setters for language bindings. | 89 // Typed getters and setters for language bindings. |
87 int getIntegralAttribute(const QualifiedName& attributeName) const; | 90 int getIntegralAttribute(const QualifiedName& attributeName) const; |
88 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 91 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 static PassRefPtr<T> create(const QualifiedName&, Document&) | 564 static PassRefPtr<T> create(const QualifiedName&, Document&) |
562 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 565 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
563 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 566 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
564 { \ | 567 { \ |
565 return adoptRef(new T(tagName, document)); \ | 568 return adoptRef(new T(tagName, document)); \ |
566 } | 569 } |
567 | 570 |
568 } // namespace | 571 } // namespace |
569 | 572 |
570 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ | 573 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ |
OLD | NEW |