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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 enum SpellcheckAttributeState { | 60 enum SpellcheckAttributeState { |
61 SpellcheckAttributeTrue, | 61 SpellcheckAttributeTrue, |
62 SpellcheckAttributeFalse, | 62 SpellcheckAttributeFalse, |
63 SpellcheckAttributeDefault | 63 SpellcheckAttributeDefault |
64 }; | 64 }; |
65 | 65 |
66 class Element : public ContainerNode { | 66 class Element : public ContainerNode { |
67 DEFINE_WRAPPERTYPEINFO(); | 67 DEFINE_WRAPPERTYPEINFO(); |
68 public: | 68 public: |
| 69 // Used for custom elements. |
| 70 static PassRefPtr<Element> create(Document& document, const AtomicString& ta
gName); |
| 71 |
69 static PassRefPtr<Element> create(const QualifiedName&, Document*); | 72 static PassRefPtr<Element> create(const QualifiedName&, Document*); |
70 virtual ~Element(); | 73 virtual ~Element(); |
71 | 74 |
72 bool hasAttribute(const QualifiedName&) const; | 75 bool hasAttribute(const QualifiedName&) const; |
73 const AtomicString& getAttribute(const QualifiedName&) const; | 76 const AtomicString& getAttribute(const QualifiedName&) const; |
74 Vector<RefPtr<Attr>> getAttributes(); | 77 Vector<RefPtr<Attr>> getAttributes(); |
75 bool hasAttributes() const; | 78 bool hasAttributes() const; |
76 bool hasAttribute(const AtomicString& name) const; | 79 bool hasAttribute(const AtomicString& name) const; |
77 const AtomicString& getAttribute(const AtomicString& name) const; | 80 const AtomicString& getAttribute(const AtomicString& name) const; |
78 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); | 81 void setAttribute(const AtomicString& name, const AtomicString& value, Excep
tionState&); |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 static PassRefPtr<T> create(const QualifiedName&, Document&) | 561 static PassRefPtr<T> create(const QualifiedName&, Document&) |
559 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 562 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
560 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 563 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
561 { \ | 564 { \ |
562 return adoptRef(new T(tagName, document)); \ | 565 return adoptRef(new T(tagName, document)); \ |
563 } | 566 } |
564 | 567 |
565 } // namespace | 568 } // namespace |
566 | 569 |
567 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ | 570 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ |
OLD | NEW |