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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp

Issue 1925043002: Clean up ShadowRootRareData, ShadowRoot and SlotAssignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/shadow/SlotAssignment.h" 5 #include "core/dom/shadow/SlotAssignment.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/dom/ElementTraversal.h" 8 #include "core/dom/ElementTraversal.h"
9 #include "core/dom/NodeTraversal.h" 9 #include "core/dom/NodeTraversal.h"
10 #include "core/dom/shadow/ElementShadow.h" 10 #include "core/dom/shadow/ElementShadow.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 slot.appendDistributedNodesFrom(toHTMLSlotElement(hostChild)); 100 slot.appendDistributedNodesFrom(toHTMLSlotElement(hostChild));
101 else 101 else
102 slot.appendDistributedNode(hostChild); 102 slot.appendDistributedNode(hostChild);
103 103
104 if (slot.isChildOfV1ShadowHost()) 104 if (slot.isChildOfV1ShadowHost())
105 slot.parentElementShadow()->setNeedsDistributionRecalc(); 105 slot.parentElementShadow()->setNeedsDistributionRecalc();
106 } 106 }
107 107
108 DEFINE_TRACE(SlotAssignment) 108 DEFINE_TRACE(SlotAssignment)
109 { 109 {
110 visitor->trace(m_descendantSlots);
110 visitor->trace(m_assignment); 111 visitor->trace(m_assignment);
111 } 112 }
112 113
113 } // namespace blink 114 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698