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

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

Issue 1883083002: Introduce Node::containingTreeScope(), which asserts that the node's root is a tree scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 522b8c0a5f5947bb6e8b97c1e2e838485a7d9c17..0cc727779c3f23970d0b5af2ba0efe72fe275fbf 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -425,6 +425,7 @@ public:
virtual bool isKeyboardFocusable() const;
virtual bool isMouseFocusable() const;
bool isFocusedElementInDocument() const;
+ Element* adjustedFocusedElementInTreeScope() const;
virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nullptr);
virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nullptr);
@@ -885,7 +886,7 @@ inline void Node::removedFrom(ContainerNode* insertionPoint)
clearFlag(InDocumentFlag);
insertionPoint->document().decrementNodeCount();
}
- if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
+ if (isInShadowTree() && !containingTreeScope().rootNode().isShadowRoot())
clearFlag(IsInShadowTreeFlag);
if (AXObjectCache* cache = document().existingAXObjectCache())
cache->remove(this);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698