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

Unified Diff: Source/core/dom/Element.h

Issue 337753005: Make iterator for Element's attributes more lightweight (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Proper rebase Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DatasetDOMStringMap.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 8b7fa740c332df750c8eeba6c33007fc644f8a7c..788c15b05180e8186cea26e363bc6b8197f9cc99 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -171,7 +171,7 @@ public:
// Internal methods that assume the existence of attribute storage, one should use hasAttributes()
// before calling them. This is not a trivial getter and its return value should be cached for
// performance.
- AttributeIteratorAccessor attributesIterator() const { return elementData()->attributesIterator(); }
+ AttributeCollection attributes() const { return elementData()->attributes(); }
size_t attributeCount() const;
const Attribute& attributeAt(unsigned index) const;
const Attribute* findAttributeByName(const QualifiedName&) const;
@@ -284,7 +284,7 @@ public:
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) { }
// For exposing to DOM only.
- NamedNodeMap* attributes() const;
+ NamedNodeMap* attributesForBindings() const;
enum AttributeModificationReason {
ModifiedDirectly,
« no previous file with comments | « Source/core/dom/DatasetDOMStringMap.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698