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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 0e68691113381ecaef9955e8a2d8d8af865009b7..fb58dcc3e12943f7adfc42b92fc9b9638dd0b87a 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -153,7 +153,7 @@ AXObject* AXNodeObject::activeDescendant() const
return nullptr;
Element* element = toElement(getNode());
- Element* descendant = element->treeScope().getElementById(activeDescendantAttr);
+ Element* descendant = element->treeScopeOrDocument().getElementById(activeDescendantAttr);
if (!descendant)
return nullptr;
@@ -650,7 +650,7 @@ HTMLLabelElement* AXNodeObject::labelForElement(const Element* element) const
const AtomicString& id = element->getIdAttribute();
if (!id.isEmpty()) {
- if (HTMLLabelElement* labelFor = element->treeScope().labelElementForId(id))
+ if (HTMLLabelElement* labelFor = element->treeScopeOrDocument().labelElementForId(id))
return labelFor;
}
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathFunctions.cpp ('k') | third_party/WebKit/Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698