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

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

Issue 436603003: Make Element::attributes() less error-prone and simplify call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take feedback into consideration Created 6 years, 4 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/css/SelectorChecker.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/AttributeCollection.h
diff --git a/Source/core/dom/AttributeCollection.h b/Source/core/dom/AttributeCollection.h
index 8890e70bbe48e0627bf0b722076d749d73496d3d..860111cae01ec77928853ace81e1dae58bb9471e 100644
--- a/Source/core/dom/AttributeCollection.h
+++ b/Source/core/dom/AttributeCollection.h
@@ -95,6 +95,10 @@ class AttributeCollection : public AttributeCollectionGeneric<const AttributeArr
public:
typedef iterator const_iterator;
+ AttributeCollection()
+ : AttributeCollectionGeneric<const AttributeArray>(AttributeArray(nullptr, 0))
+ { }
+
AttributeCollection(const Attribute* array, unsigned size)
: AttributeCollectionGeneric<const AttributeArray>(AttributeArray(array, size))
{ }
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698