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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 5598d4f4915aaa87f4144c8e2dd691553b5174fa..c11e818d14b043ae806311c5ce154a110ed27792 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3544,7 +3544,7 @@ void Document::removeFocusedElementOfSubtree(Node* node, bool amongChildrenOnly)
// We can't be focused if we're not in the document.
if (!node->inDocument())
return;
- bool contains = node->containsIncludingShadowDOM(m_focusedElement.get());
+ bool contains = node->isShadowIncludingInclusiveAncestorOf(m_focusedElement.get());
if (contains && (m_focusedElement != node || !amongChildrenOnly))
clearFocusedElement();
}

Powered by Google App Engine
This is Rietveld 408576698