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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp b/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
index 57a9c6ac7d45e4328543976721ff17c6f288a69e..bbffc1cef8b7212c90bc0a9a4f10efaf0e6417bf 100644
--- a/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
@@ -20,7 +20,8 @@ HTMLSlotElement* SlotScopedTraversal::findScopeOwnerSlot(
Element* SlotScopedTraversal::nearestAncestorAssignedToSlot(
const Element& current) {
- // nearestAncestorAssignedToSlot returns an ancestor element of current which is directly assigned to a slot.
+ // nearestAncestorAssignedToSlot returns an ancestor element of current which
+ // is directly assigned to a slot.
Element* element = const_cast<Element*>(&current);
for (; element; element = element->parentElement()) {
if (element->assignedSlot())
@@ -30,8 +31,10 @@ Element* SlotScopedTraversal::nearestAncestorAssignedToSlot(
}
Element* SlotScopedTraversal::next(const Element& current) {
- // current.assignedSlot returns a slot only when current is assigned explicitly
- // If current is assigned to a slot, return a descendant of current, which is in the assigned scope of the same slot as current.
+ // current.assignedSlot returns a slot only when current is assigned
+ // explicitly
+ // If current is assigned to a slot, return a descendant of current, which is
+ // in the assigned scope of the same slot as current.
HTMLSlotElement* slot = current.assignedSlot();
Element* nearestAncestorAssignedToSlot =
SlotScopedTraversal::nearestAncestorAssignedToSlot(current);
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698