| 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 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 class CSSStyleDeclaration; | 33 class CSSStyleDeclaration; |
| 34 class StylePropertySet; | 34 class StylePropertySet; |
| 35 | 35 |
| 36 // Attr can have Text and EntityReference children | 36 // Attr can have Text and EntityReference children |
| 37 // therefore it has to be a fullblown Node. The plan | 37 // therefore it has to be a fullblown Node. The plan |
| 38 // is to dynamically allocate a textchild and store the | 38 // is to dynamically allocate a textchild and store the |
| 39 // resulting nodevalue in the attribute upon | 39 // resulting nodevalue in the attribute upon |
| 40 // destruction. however, this is not yet implemented. | 40 // destruction. however, this is not yet implemented. |
| 41 | 41 |
| 42 class Attr : public ContainerNode { | 42 class Attr FINAL : public ContainerNode { |
| 43 public: | 43 public: |
| 44 static PassRefPtr<Attr> create(Element*, const QualifiedName&); | 44 static PassRefPtr<Attr> create(Element*, const QualifiedName&); |
| 45 static PassRefPtr<Attr> create(Document*, const QualifiedName&, const Atomic
String& value); | 45 static PassRefPtr<Attr> create(Document*, const QualifiedName&, const Atomic
String& value); |
| 46 virtual ~Attr(); | 46 virtual ~Attr(); |
| 47 | 47 |
| 48 String name() const { return qualifiedName().toString(); } | 48 String name() const { return qualifiedName().toString(); } |
| 49 bool specified() const { return m_specified; } | 49 bool specified() const { return m_specified; } |
| 50 Element* ownerElement() const { return m_element; } | 50 Element* ownerElement() const { return m_element; } |
| 51 | 51 |
| 52 const AtomicString& value() const; | 52 const AtomicString& value() const; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 AtomicString m_standaloneValue; | 101 AtomicString m_standaloneValue; |
| 102 | 102 |
| 103 RefPtr<StylePropertySet> m_style; | 103 RefPtr<StylePropertySet> m_style; |
| 104 unsigned m_ignoreChildrenChanged : 31; | 104 unsigned m_ignoreChildrenChanged : 31; |
| 105 bool m_specified : 1; | 105 bool m_specified : 1; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace WebCore | 108 } // namespace WebCore |
| 109 | 109 |
| 110 #endif // Attr_h | 110 #endif // Attr_h |
| OLD | NEW |