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

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

Issue 2460813002: Make slots in non-shadow trees participate in a flat tree (Closed)
Patch Set: update expectation Created 4 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 | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/NodeComputedStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb83ec98218b18f963f7fbeec0bdc7b17702883c..0de3ef3e8fb1f9c489a3aaafc0cbd78717d2d243 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -993,11 +993,13 @@ bool Node::isStyledElement() const {
bool Node::canParticipateInFlatTree() const {
// TODO(hayato): Return false for pseudo elements.
- return !isShadowRoot() && !isSlotOrActiveInsertionPoint();
+ return !isShadowRoot() && !isActiveSlotOrActiveInsertionPoint();
}
-bool Node::isSlotOrActiveInsertionPoint() const {
- return isHTMLSlotElement(*this) || isActiveInsertionPoint(*this);
+bool Node::isActiveSlotOrActiveInsertionPoint() const {
+ return (isHTMLSlotElement(*this) &&
+ toHTMLSlotElement(*this).supportsDistribution()) ||
+ isActiveInsertionPoint(*this);
}
AtomicString Node::slotName() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/NodeComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698