| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool hasAttribute(const QualifiedName&) const; | 71 bool hasAttribute(const QualifiedName&) const; |
| 72 const AtomicString& getAttribute(const QualifiedName&) const; | 72 const AtomicString& getAttribute(const QualifiedName&) const; |
| 73 Vector<RefPtr<Attr>> getAttributes(); | 73 Vector<RefPtr<Attr>> getAttributes(); |
| 74 bool hasAttributes() const; | 74 bool hasAttributes() const; |
| 75 bool hasAttribute(const AtomicString& name) const; | 75 bool hasAttribute(const AtomicString& name) const; |
| 76 const AtomicString& getAttribute(const AtomicString& name) const; | 76 const AtomicString& getAttribute(const AtomicString& name) const; |
| 77 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); | 77 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); |
| 78 void setAttribute(const AtomicString& name, ExceptionState& es) { | 78 void setAttribute(const AtomicString& name, ExceptionState& es) { |
| 79 setAttribute(name, String(), es); | 79 setAttribute(name, String(), es); |
| 80 } | 80 } |
| 81 void setAttributes(const Vector<RefPtr<Attr>>& attrs, ExceptionState& es); |
| 81 void removeAttribute(const AtomicString& name); | 82 void removeAttribute(const AtomicString& name); |
| 82 void removeAttribute(const QualifiedName&); | 83 void removeAttribute(const QualifiedName&); |
| 83 | 84 |
| 84 // 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. |
| 85 void setAttribute(const QualifiedName&, const AtomicString& value); | 86 void setAttribute(const QualifiedName&, const AtomicString& value); |
| 86 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); | 87 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); |
| 87 | 88 |
| 88 // Typed getters and setters for language bindings. | 89 // Typed getters and setters for language bindings. |
| 89 int getIntegralAttribute(const QualifiedName& attributeName) const; | 90 int getIntegralAttribute(const QualifiedName& attributeName) const; |
| 90 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 91 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 static PassRefPtr<T> create(const QualifiedName&, Document&) | 554 static PassRefPtr<T> create(const QualifiedName&, Document&) |
| 554 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 555 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 555 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 556 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 556 { \ | 557 { \ |
| 557 return adoptRef(new T(tagName, document)); \ | 558 return adoptRef(new T(tagName, document)); \ |
| 558 } | 559 } |
| 559 | 560 |
| 560 } // namespace | 561 } // namespace |
| 561 | 562 |
| 562 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ | 563 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ |
| OLD | NEW |