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, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 125 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
126 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co
nst; | 126 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co
nst; |
127 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); | 127 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); |
128 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; | 128 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; |
129 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); | 129 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); |
130 | 130 |
131 // Call this to get the value of an attribute that is known not to be the st
yle | 131 // Call this to get the value of an attribute that is known not to be the st
yle |
132 // attribute or one of the SVG animatable attributes. | 132 // attribute or one of the SVG animatable attributes. |
133 bool fastHasAttribute(const QualifiedName&) const; | 133 bool fastHasAttribute(const QualifiedName&) const; |
134 const AtomicString& fastGetAttribute(const QualifiedName&) const; | 134 const AtomicString& fastGetAttribute(const QualifiedName&) const; |
135 #ifndef NDEBUG | 135 #if ENABLE(ASSERT) |
136 bool fastAttributeLookupAllowed(const QualifiedName&) const; | 136 bool fastAttributeLookupAllowed(const QualifiedName&) const; |
137 #endif | 137 #endif |
138 | 138 |
139 #ifdef DUMP_NODE_STATISTICS | 139 #ifdef DUMP_NODE_STATISTICS |
140 bool hasNamedNodeMap() const; | 140 bool hasNamedNodeMap() const; |
141 #endif | 141 #endif |
142 bool hasAttributes() const; | 142 bool hasAttributes() const; |
143 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 143 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
144 // in style attribute or one of the SVG animation attributes. | 144 // in style attribute or one of the SVG animation attributes. |
145 bool hasAttributesWithoutUpdate() const; | 145 bool hasAttributesWithoutUpdate() const; |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 869 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
870 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 870 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
871 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 871 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
872 { \ | 872 { \ |
873 return adoptRefWillBeNoop(new T(tagName, document)); \ | 873 return adoptRefWillBeNoop(new T(tagName, document)); \ |
874 } | 874 } |
875 | 875 |
876 } // namespace | 876 } // namespace |
877 | 877 |
878 #endif | 878 #endif |
OLD | NEW |