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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTableRowsCollection.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/HTMLTableRowsCollection.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTableRowsCollection.cpp b/third_party/WebKit/Source/core/html/HTMLTableRowsCollection.cpp
index 8e7e45c105fa8f2b7fe838112199cdaddba5476b..746ca264a477baba4deb6e2000ecad284cc37951 100644
--- a/third_party/WebKit/Source/core/html/HTMLTableRowsCollection.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTableRowsCollection.cpp
@@ -39,8 +39,9 @@ using namespace HTMLNames;
static inline bool isInSection(HTMLTableRowElement& row,
const HTMLQualifiedName& sectionTag) {
- // Because we know that the parent is a table or a section, it's safe to cast it to an HTMLElement
- // giving us access to the faster hasTagName overload from that class.
+ // Because we know that the parent is a table or a section, it's safe to cast
+ // it to an HTMLElement giving us access to the faster hasTagName overload
+ // from that class.
return toHTMLElement(row.parentNode())->hasTagName(sectionTag);
}
@@ -55,7 +56,8 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(
return row;
}
- // If still looking at head sections, find the first row in the next head section.
+ // If still looking at head sections, find the first row in the next head
+ // section.
HTMLElement* child = 0;
if (!previous)
child = Traversal<HTMLElement>::firstChild(table);
@@ -69,7 +71,8 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(
}
}
- // If still looking at top level and bodies, find the next row in top level or the first in the next body section.
+ // If still looking at top level and bodies, find the next row in top level or
+ // the first in the next body section.
if (!previous || isInSection(*previous, theadTag))
child = Traversal<HTMLElement>::firstChild(table);
else if (previous->parentNode() == table)
@@ -135,9 +138,9 @@ HTMLTableRowElement* HTMLTableRowsCollection::lastRow(HTMLTableElement& table) {
return nullptr;
}
-// Must call get() on the table in case that argument is compiled before dereferencing the
-// table to get at the collection cache. Order of argument evaluation is undefined and can
-// differ between compilers.
+// Must call get() on the table in case that argument is compiled before
+// dereferencing the table to get at the collection cache. Order of argument
+// evaluation is undefined and can differ between compilers.
HTMLTableRowsCollection::HTMLTableRowsCollection(ContainerNode& table)
: HTMLCollection(table, TableRows, OverridesItemAfter) {
DCHECK(isHTMLTableElement(table));
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTagCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698