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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. | 115 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. |
116 void setAttribute(const QualifiedName&, const AtomicString& value); | 116 void setAttribute(const QualifiedName&, const AtomicString& value); |
117 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); | 117 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); |
118 | 118 |
119 void removeAttribute(const QualifiedName&); | 119 void removeAttribute(const QualifiedName&); |
120 | 120 |
121 // Typed getters and setters for language bindings. | 121 // Typed getters and setters for language bindings. |
122 int getIntegralAttribute(const QualifiedName& attributeName) const; | 122 int getIntegralAttribute(const QualifiedName& attributeName) const; |
123 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 123 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
124 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co
nst; | |
125 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); | 124 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); |
126 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; | 125 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; |
127 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); | 126 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); |
128 | 127 |
129 // Call this to get the value of an attribute that is known not to be the st
yle | 128 // Call this to get the value of an attribute that is known not to be the st
yle |
130 // attribute or one of the SVG animatable attributes. | 129 // attribute or one of the SVG animatable attributes. |
131 bool fastHasAttribute(const QualifiedName&) const; | 130 bool fastHasAttribute(const QualifiedName&) const; |
132 const AtomicString& fastGetAttribute(const QualifiedName&) const; | 131 const AtomicString& fastGetAttribute(const QualifiedName&) const; |
133 #if ENABLE(ASSERT) | 132 #if ENABLE(ASSERT) |
134 bool fastAttributeLookupAllowed(const QualifiedName&) const; | 133 bool fastAttributeLookupAllowed(const QualifiedName&) const; |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 867 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
869 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 868 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
870 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 869 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
871 { \ | 870 { \ |
872 return adoptRefWillBeNoop(new T(tagName, document)); \ | 871 return adoptRefWillBeNoop(new T(tagName, document)); \ |
873 } | 872 } |
874 | 873 |
875 } // namespace | 874 } // namespace |
876 | 875 |
877 #endif // Element_h | 876 #endif // Element_h |
OLD | NEW |