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

Unified Diff: sky/engine/core/page/FocusController.cpp

Issue 759663003: Only allow one shadowRoot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan review. Created 6 years, 1 month 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 | « sky/engine/core/events/EventPath.cpp ('k') | sky/engine/web/tests/data/touch-action-tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/FocusController.cpp
diff --git a/sky/engine/core/page/FocusController.cpp b/sky/engine/core/page/FocusController.cpp
index 00721a6aceab501a2ef53eaae5a0829e365a947c..d13049947a17a05cec4e90ad45a8ffd7a3b44d5e 100644
--- a/sky/engine/core/page/FocusController.cpp
+++ b/sky/engine/core/page/FocusController.cpp
@@ -96,7 +96,7 @@ FocusNavigationScope FocusNavigationScope::ownedByNonFocusableFocusScopeOwner(No
FocusNavigationScope FocusNavigationScope::ownedByShadowHost(Node* node)
{
ASSERT(isShadowHost(node));
- return FocusNavigationScope(toElement(node)->shadow()->youngestShadowRoot());
+ return FocusNavigationScope(toElement(node)->shadow()->shadowRoot());
}
static inline void dispatchEventsOnWindowAndFocusedNode(Document* document, bool focused)
« no previous file with comments | « sky/engine/core/events/EventPath.cpp ('k') | sky/engine/web/tests/data/touch-action-tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698