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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.cpp

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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
Index: third_party/WebKit/Source/core/html/HTMLCollection.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.cpp b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
index cb02c2c8ab090b21dfdc761663d70df9dbb9948c..53eab77a12eed211985e47fcad7edabeb591ee84 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
@@ -424,12 +424,16 @@ bool HTMLCollection::namedPropertyQuery(const AtomicString& name,
void HTMLCollection::supportedPropertyNames(Vector<String>& names) {
// As per the specification (https://dom.spec.whatwg.org/#htmlcollection):
- // The supported property names are the values from the list returned by these steps:
+ // The supported property names are the values from the list returned by these
+ // steps:
// 1. Let result be an empty list.
- // 2. For each element represented by the collection, in tree order, run these substeps:
- // 1. If element has an ID which is neither the empty string nor is in result, append element's ID to result.
- // 2. If element is in the HTML namespace and has a name attribute whose value is neither the empty string
- // nor is in result, append element's name attribute value to result.
+ // 2. For each element represented by the collection, in tree order, run these
+ // substeps:
+ // 1. If element has an ID which is neither the empty string nor is in
+ // result, append element's ID to result.
+ // 2. If element is in the HTML namespace and has a name attribute whose
+ // value is neither the empty string nor is in result, append element's
+ // name attribute value to result.
// 3. Return result.
HashSet<AtomicString> existingNames;
unsigned length = this->length();
@@ -480,7 +484,8 @@ void HTMLCollection::updateIdNameCache() const {
nameShouldBeVisibleInDocumentAll(toHTMLElement(*element))))
cache->addElementWithName(nameAttrVal, element);
}
- // Set the named item cache last as traversing the tree may cause cache invalidation.
+ // Set the named item cache last as traversing the tree may cause cache
+ // invalidation.
setNamedItemCache(cache);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCollection.h ('k') | third_party/WebKit/Source/core/html/HTMLDetailsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698