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

Unified Diff: sky/engine/core/dom/shadow/ElementShadow.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/engine/core/dom/shadow/ComposedTreeWalker.cpp ('k') | sky/engine/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/shadow/ElementShadow.cpp
diff --git a/sky/engine/core/dom/shadow/ElementShadow.cpp b/sky/engine/core/dom/shadow/ElementShadow.cpp
index 8bea6e026a744cca9fa1ca2a31d9cd6ca86b87b5..ba20801fa53e857f216f4865eb452e4b79f34e40 100644
--- a/sky/engine/core/dom/shadow/ElementShadow.cpp
+++ b/sky/engine/core/dom/shadow/ElementShadow.cpp
@@ -30,7 +30,6 @@
#include "sky/engine/core/dom/ElementTraversal.h"
#include "sky/engine/core/dom/NodeTraversal.h"
#include "sky/engine/core/dom/shadow/ContentDistribution.h"
-#include "sky/engine/core/html/HTMLContentElement.h"
#include "sky/engine/platform/EventDispatchForbiddenScope.h"
#include "sky/engine/platform/ScriptForbiddenScope.h"
@@ -87,9 +86,6 @@ void DistributionPool::distributeTo(InsertionPoint* insertionPoint, ElementShado
if (m_distributed[i])
continue;
- if (isHTMLContentElement(*insertionPoint) && !toHTMLContentElement(insertionPoint)->canSelectNode(m_nodes, i))
- continue;
-
Node* node = m_nodes[i];
distribution.append(node);
elementShadow->didDistributeNode(node, insertionPoint);
@@ -271,13 +267,6 @@ void ElementShadow::collectSelectFeatureSetFrom(ShadowRoot& root)
for (Element* element = ElementTraversal::firstWithin(root); element; element = ElementTraversal::next(*element, &root)) {
if (ElementShadow* shadow = element->shadow())
m_selectFeatures.add(shadow->ensureSelectFeatureSet());
- if (!isHTMLContentElement(*element))
- continue;
- const CSSSelectorList& list = toHTMLContentElement(*element).selectorList();
- for (const CSSSelector* selector = list.first(); selector; selector = CSSSelectorList::next(*selector)) {
- for (const CSSSelector* component = selector; component; component = component->tagHistory())
- m_selectFeatures.collectFeaturesFromSelector(*component);
- }
}
}
« no previous file with comments | « sky/engine/core/dom/shadow/ComposedTreeWalker.cpp ('k') | sky/engine/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698