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/css/resolver/ElementResolveContext.cpp

Issue 1489433002: Support the essential part of Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Internals.* Created 5 years 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 | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp b/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp
index 469d91158134442b42f9d408f43e125ef0df3013..409465b23851def85037e02053ec14f19efa541f 100644
--- a/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp
@@ -45,7 +45,7 @@ ElementResolveContext::ElementResolveContext(Element& element)
, m_distributedToInsertionPoint(false)
{
LayoutTreeBuilderTraversal::ParentDetails parentDetails;
- m_parentNode = isActiveInsertionPoint(element) ? nullptr : LayoutTreeBuilderTraversal::parent(element, &parentDetails);
+ m_parentNode = element.isSlotOrActiveInsertionPoint() ? nullptr : LayoutTreeBuilderTraversal::parent(element, &parentDetails);
m_distributedToInsertionPoint = parentDetails.insertionPoint();
const Document& document = element.document();
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698