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

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

Issue 1863413004: Rename Slot.getAssingedNodes() -> Slot.assignedNodes() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/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 3f8137e4b19b1f5f4528ab53f8c66e69f44f2c69..cd0d21be2e6d0021e14b96d13faa67dcbc81cda8 100644
--- a/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.cpp
@@ -45,7 +45,7 @@ Element* SlotScopedTraversal::next(const Element& current)
slot = nearestAncestorAssignedToSlot->assignedSlot();
ASSERT(slot);
}
- HeapVector<Member<Node>> assignedNodes = slot->getAssignedNodes();
+ HeapVector<Member<Node>> assignedNodes = slot->assignedNodes();
size_t currentIndex = assignedNodes.find(*nearestAncestorAssignedToSlot);
ASSERT(currentIndex != kNotFound);
for (++currentIndex; currentIndex < assignedNodes.size(); ++currentIndex) {
@@ -63,7 +63,7 @@ Element* SlotScopedTraversal::previous(const Element& current)
if (Element* previous = ElementTraversal::previous(current, nearestAncestorAssignedToSlot))
return previous;
// If null, jump to previous assigned node's descendant
- const HeapVector<Member<Node>> assignedNodes = nearestAncestorAssignedToSlot->assignedSlot()->getAssignedNodes();
+ const HeapVector<Member<Node>> assignedNodes = nearestAncestorAssignedToSlot->assignedSlot()->assignedNodes();
size_t currentIndex = assignedNodes.reverseFind(*nearestAncestorAssignedToSlot);
ASSERT(currentIndex != kNotFound);
for (; currentIndex > 0; --currentIndex) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698