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 30 matching lines...) Expand all Loading... |
41 public: | 41 public: |
42 static PassRefPtr<Attr> create(Element*, Document*, PassRefPtr<Attribute>); | 42 static PassRefPtr<Attr> create(Element*, Document*, PassRefPtr<Attribute>); |
43 virtual ~Attr(); | 43 virtual ~Attr(); |
44 | 44 |
45 String name() const { return qualifiedName().toString(); } | 45 String name() const { return qualifiedName().toString(); } |
46 bool specified() const { return m_specified; } | 46 bool specified() const { return m_specified; } |
47 Element* ownerElement() const { return m_element; } | 47 Element* ownerElement() const { return m_element; } |
48 | 48 |
49 const AtomicString& value() const { return m_attribute->value(); } | 49 const AtomicString& value() const { return m_attribute->value(); } |
50 void setValue(const AtomicString&, ExceptionCode&); | 50 void setValue(const AtomicString&, ExceptionCode&); |
| 51 void setValue(const AtomicString&); |
51 | 52 |
52 Attribute* attr() const { return m_attribute.get(); } | 53 Attribute* attr() const { return m_attribute.get(); } |
53 const QualifiedName& qualifiedName() const { return m_attribute->name(); } | 54 const QualifiedName& qualifiedName() const { return m_attribute->name(); } |
54 | 55 |
55 bool isId() const; | 56 bool isId() const; |
56 | 57 |
57 // An extension to get presentational information for attributes. | 58 // An extension to get presentational information for attributes. |
58 CSSStyleDeclaration* style() { return m_attribute->style(); } | 59 CSSStyleDeclaration* style() { return m_attribute->style(); } |
59 | 60 |
60 void setSpecified(bool specified) { m_specified = specified; } | 61 void setSpecified(bool specified) { m_specified = specified; } |
(...skipping 27 matching lines...) Expand all Loading... |
88 | 89 |
89 Element* m_element; | 90 Element* m_element; |
90 RefPtr<Attribute> m_attribute; | 91 RefPtr<Attribute> m_attribute; |
91 unsigned m_ignoreChildrenChanged : 31; | 92 unsigned m_ignoreChildrenChanged : 31; |
92 bool m_specified : 1; | 93 bool m_specified : 1; |
93 }; | 94 }; |
94 | 95 |
95 } // namespace WebCore | 96 } // namespace WebCore |
96 | 97 |
97 #endif // Attr_h | 98 #endif // Attr_h |
OLD | NEW |