Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: Source/core/dom/Element.h

Issue 84713002: Add number() static methods to AtomicString class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass NaN as default argument Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMStringMap.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const AtomicString& getAttribute(const QualifiedName&) const; 107 const AtomicString& getAttribute(const QualifiedName&) const;
108 void setAttribute(const QualifiedName&, const AtomicString& value); 108 void setAttribute(const QualifiedName&, const AtomicString& value);
109 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value); 109 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value);
110 void removeAttribute(const QualifiedName&); 110 void removeAttribute(const QualifiedName&);
111 111
112 // Typed getters and setters for language bindings. 112 // Typed getters and setters for language bindings.
113 int getIntegralAttribute(const QualifiedName& attributeName) const; 113 int getIntegralAttribute(const QualifiedName& attributeName) const;
114 void setIntegralAttribute(const QualifiedName& attributeName, int value); 114 void setIntegralAttribute(const QualifiedName& attributeName, int value);
115 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst; 115 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst;
116 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign ed value); 116 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign ed value);
117 double getFloatingPointAttribute(const QualifiedName& attributeName, double fallbackValue = std::numeric_limits<double>::quiet_NaN()) const;
118 void setFloatingPointAttribute(const QualifiedName& attributeName, double va lue);
117 119
118 // Call this to get the value of an attribute that is known not to be the st yle 120 // Call this to get the value of an attribute that is known not to be the st yle
119 // attribute or one of the SVG animatable attributes. 121 // attribute or one of the SVG animatable attributes.
120 bool fastHasAttribute(const QualifiedName&) const; 122 bool fastHasAttribute(const QualifiedName&) const;
121 const AtomicString& fastGetAttribute(const QualifiedName&) const; 123 const AtomicString& fastGetAttribute(const QualifiedName&) const;
122 #ifndef NDEBUG 124 #ifndef NDEBUG
123 bool fastAttributeLookupAllowed(const QualifiedName&) const; 125 bool fastAttributeLookupAllowed(const QualifiedName&) const;
124 #endif 126 #endif
125 127
126 #ifdef DUMP_NODE_STATISTICS 128 #ifdef DUMP_NODE_STATISTICS
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 } 888 }
887 889
888 inline bool isShadowHost(const Element* element) 890 inline bool isShadowHost(const Element* element)
889 { 891 {
890 return element && element->shadow(); 892 return element && element->shadow();
891 } 893 }
892 894
893 } // namespace 895 } // namespace
894 896
895 #endif 897 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DOMStringMap.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698