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

Unified Diff: Source/core/testing/Internals.cpp

Issue 23133006: Merge ContentDistributor into ElementShadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't find git copies Created 7 years, 4 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: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 63285fab5800b7d1b6253b37cfe949c5dd3cd423..5cc6bf51c1ac8245d031659e58e0372bec269671 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -61,8 +61,8 @@
#include "core/dom/TreeScope.h"
#include "core/dom/ViewportArguments.h"
#include "core/dom/shadow/ComposedShadowTreeWalker.h"
-#include "core/dom/shadow/ContentDistributor.h"
#include "core/dom/shadow/ElementShadow.h"
+#include "core/dom/shadow/ScopeContentDistribution.h"
#include "core/dom/shadow/SelectRuleFeatureSet.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/Editor.h"
@@ -341,7 +341,7 @@ bool Internals::hasSelectorForIdInShadow(Element* host, const String& idValue, E
return 0;
}
- return host->shadow()->distributor().ensureSelectFeatureSet(host->shadow()).hasSelectorForId(idValue);
+ return host->shadow()->ensureSelectFeatureSet().hasSelectorForId(idValue);
}
bool Internals::hasSelectorForClassInShadow(Element* host, const String& className, ExceptionState& es)
@@ -351,7 +351,7 @@ bool Internals::hasSelectorForClassInShadow(Element* host, const String& classNa
return 0;
}
- return host->shadow()->distributor().ensureSelectFeatureSet(host->shadow()).hasSelectorForClass(className);
+ return host->shadow()->ensureSelectFeatureSet().hasSelectorForClass(className);
}
bool Internals::hasSelectorForAttributeInShadow(Element* host, const String& attributeName, ExceptionState& es)
@@ -361,7 +361,7 @@ bool Internals::hasSelectorForAttributeInShadow(Element* host, const String& att
return 0;
}
- return host->shadow()->distributor().ensureSelectFeatureSet(host->shadow()).hasSelectorForAttribute(attributeName);
+ return host->shadow()->ensureSelectFeatureSet().hasSelectorForAttribute(attributeName);
}
bool Internals::hasSelectorForPseudoClassInShadow(Element* host, const String& pseudoClass, ExceptionState& es)
@@ -371,7 +371,7 @@ bool Internals::hasSelectorForPseudoClassInShadow(Element* host, const String& p
return 0;
}
- const SelectRuleFeatureSet& featureSet = host->shadow()->distributor().ensureSelectFeatureSet(host->shadow());
+ const SelectRuleFeatureSet& featureSet = host->shadow()->ensureSelectFeatureSet();
if (pseudoClass == "checked")
return featureSet.hasSelectorForChecked();
if (pseudoClass == "enabled")
« Source/core/dom/shadow/ElementShadow.h ('K') | « Source/core/html/shadow/HTMLContentElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698