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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1868433002: Rename function names to match the DOM Standard (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/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 63df73dbe813f155d403d0174a7531425355644e..01a385244cef9f89959ddb6147550717ced2ce3a 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -2364,12 +2364,12 @@ void Element::focus(const FocusParams& params)
return;
if (authorShadowRoot() && authorShadowRoot()->delegatesFocus()) {
- if (containsIncludingShadowDOM(document().focusedElement()))
+ if (isShadowIncludingInclusiveAncestorOf(document().focusedElement()))
return;
// Slide the focus to its inner node.
Element* found = document().page()->focusController().findFocusableElementInShadowHost(*this);
- if (found && containsIncludingShadowDOM(found)) {
+ if (found && isShadowIncludingInclusiveAncestorOf(found)) {
found->focus(FocusParams(SelectionBehaviorOnFocus::Reset, WebFocusTypeForward, nullptr));
return;
}

Powered by Google App Engine
This is Rietveld 408576698