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

Unified Diff: third_party/WebKit/Source/core/page/FocusController.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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.idl ('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/page/FocusController.cpp
diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp
index d4e28bbd070693ed2730601834164751023dc596..42e6f3d80c8630ca756b7d8216f3c31352b41323 100644
--- a/third_party/WebKit/Source/core/page/FocusController.cpp
+++ b/third_party/WebKit/Source/core/page/FocusController.cpp
@@ -112,7 +112,7 @@ ScopedFocusNavigation::ScopedFocusNavigation(HTMLSlotElement& slot, const Elemen
: m_rootNode(nullptr)
, m_rootSlot(&slot)
, m_current(const_cast<Element*>(current))
- , m_slotFallbackTraversal(slot.getAssignedNodes().isEmpty())
+ , m_slotFallbackTraversal(slot.assignedNodes().isEmpty())
{
}
@@ -168,7 +168,7 @@ void ScopedFocusNavigation::moveToFirst()
{
if (m_rootSlot) {
if (!m_slotFallbackTraversal) {
- HeapVector<Member<Node>> assignedNodes = m_rootSlot->getAssignedNodes();
+ HeapVector<Member<Node>> assignedNodes = m_rootSlot->assignedNodes();
for (auto assignedNode : assignedNodes) {
if (assignedNode->isElementNode()) {
m_current = toElement(assignedNode);
@@ -194,7 +194,7 @@ void ScopedFocusNavigation::moveToLast()
{
if (m_rootSlot) {
if (!m_slotFallbackTraversal) {
- HeapVector<Member<Node>> assignedNodes = m_rootSlot->getAssignedNodes();
+ HeapVector<Member<Node>> assignedNodes = m_rootSlot->assignedNodes();
for (auto assignedNode = assignedNodes.rbegin(); assignedNode != assignedNodes.rend(); ++assignedNode) {
if ((*assignedNode)->isElementNode()) {
m_current = ElementTraversal::lastWithinOrSelf(*toElement(*assignedNode));
@@ -284,7 +284,7 @@ HTMLSlotElement* ScopedFocusNavigation::findFallbackScopeOwnerSlot(const Element
Element* parent = const_cast<Element*>(element.parentElement());
while (parent) {
if (isHTMLSlotElement(parent))
- return toHTMLSlotElement(parent)->getAssignedNodes().isEmpty() ? toHTMLSlotElement(parent) : nullptr;
+ return toHTMLSlotElement(parent)->assignedNodes().isEmpty() ? toHTMLSlotElement(parent) : nullptr;
parent = parent->parentElement();
}
return nullptr;
@@ -299,7 +299,7 @@ bool ScopedFocusNavigation::isSlotFallbackScopedForThisSlot(const HTMLSlotElemen
{
Element* parent = current.parentElement();
while (parent) {
- if (isHTMLSlotElement(parent) && toHTMLSlotElement(parent)->getAssignedNodes().isEmpty())
+ if (isHTMLSlotElement(parent) && toHTMLSlotElement(parent)->assignedNodes().isEmpty())
return !SlotScopedTraversal::isSlotScoped(current) && toHTMLSlotElement(parent) == slot;
parent = parent->parentElement();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698