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

Unified Diff: Source/core/dom/shadow/InsertionPoint.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/dom/shadow/InsertionPoint.cpp
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
index c00c3c90c011be68a632d19d711d26c689b6247f..e193af8ee617287e44d0e0c2442911cb9a09e938 100644
--- a/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/Source/core/dom/shadow/InsertionPoint.cpp
@@ -35,6 +35,7 @@
#include "core/dom/QualifiedName.h"
#include "core/dom/StaticNodeList.h"
#include "core/dom/shadow/ElementShadow.h"
+#include "core/dom/shadow/ScopeContentDistribution.h"
#include "core/dom/shadow/ShadowRoot.h"
namespace WebCore {
@@ -250,7 +251,7 @@ InsertionPoint* resolveReprojection(const Node* projectedNode)
while (current) {
if (ElementShadow* shadow = shadowOfParentForDistribution(current)) {
- if (InsertionPoint* insertedTo = shadow->distributor().findInsertionPointFor(projectedNode)) {
+ if (InsertionPoint* insertedTo = shadow->findInsertionPointFor(projectedNode)) {
current = insertedTo;
insertionPoint = insertedTo;
continue;
@@ -276,7 +277,7 @@ void collectInsertionPointsWhereNodeIsDistributed(const Node* node, Vector<Inser
const Node* current = node;
while (true) {
if (ElementShadow* shadow = shadowOfParentForDistribution(current)) {
- if (InsertionPoint* insertedTo = shadow->distributor().findInsertionPointFor(node)) {
+ if (InsertionPoint* insertedTo = shadow->findInsertionPointFor(node)) {
current = insertedTo;
results.append(insertedTo);
continue;

Powered by Google App Engine
This is Rietveld 408576698