Index: third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
index ccf05a80afca47ba0092611129ff765fe93df283..024e3647d811dc7f998bf3f6d685313811209c35 100644 |
--- a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp |
@@ -276,6 +276,14 @@ const DestinationInsertionPoints* ElementShadow::destinationInsertionPointsFor(c |
void ElementShadow::distribute() |
{ |
+ if (isV1()) |
+ distributeV1(); |
+ else |
+ distributeV0(); |
+} |
+ |
+void ElementShadow::distributeV0() |
+{ |
host()->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Shadow)); |
WillBeHeapVector<RawPtrWillBeMember<HTMLShadowElement>, 32> shadowInsertionPoints; |
DistributionPool pool(*host()); |
@@ -318,6 +326,11 @@ void ElementShadow::distribute() |
InspectorInstrumentation::didPerformElementShadowDistribution(host()); |
} |
+void ElementShadow::distributeV1() |
+{ |
+ // TODO(hayato): Implement this |
+} |
+ |
void ElementShadow::didDistributeNode(const Node* node, InsertionPoint* insertionPoint) |
{ |
#if ENABLE(OILPAN) |