Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index 5d2af1d58b1e0cc547e315ebc605da3ea8be84da..045315f82f6b41743906fc7ba807d1245fbebda4 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -322,17 +322,17 @@ const SelectRuleFeatureSet& ElementShadow::ensureSelectFeatureSet() |
m_selectFeatures.clear(); |
for (ShadowRoot* root = oldestShadowRoot(); root; root = root->youngerShadowRoot()) |
- collectSelectFeatureSetFrom(root); |
+ collectSelectFeatureSetFrom(*root); |
m_needsSelectFeatureSet = false; |
return m_selectFeatures; |
} |
-void ElementShadow::collectSelectFeatureSetFrom(ShadowRoot* root) |
+void ElementShadow::collectSelectFeatureSetFrom(ShadowRoot& root) |
{ |
- if (!root->containsShadowRoots() && !root->containsContentElements()) |
+ if (!root.containsShadowRoots() && !root.containsContentElements()) |
return; |
- for (Element* element = ElementTraversal::firstWithin(root); element; element = ElementTraversal::next(*element, 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)) |