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

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

Issue 1707443003: Consider slots as a focus scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring in response to review comments Created 4 years, 10 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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index a9c7a70153d49d47c19a290c795bdc87495ab167..6c0713b3ea2e6e0c76e7ee62499d338d6f8344c7 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2276,6 +2276,8 @@ PassRefPtrWillBeRawPtr<StaticNodeList> Node::getDestinationInsertionPoints()
HTMLSlotElement* Node::assignedSlot() const
{
ASSERT(!needsDistributionRecalc());
+ if (!isChildOfV1ShadowHost())
+ return nullptr;
kochi 2016/03/04 04:16:30 isChildOfV1ShadowHost() is almost identical to lin
yuzuchan 2016/03/04 06:44:01 Done.
if (ElementShadow* shadow = parentElementShadow()) {
if (shadow->isV1())
return shadow->assignedSlotFor(*this);
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/shadow/SlotScopedTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698