OLD | NEW |
1 | 1 |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include "config.h" | 6 #include "config.h" |
7 | 7 |
8 #include "core/css/invalidation/StyleInvalidator.h" | 8 #include "core/css/invalidation/StyleInvalidator.h" |
9 | 9 |
10 #include "core/css/invalidation/DescendantInvalidationSet.h" | 10 #include "core/css/invalidation/DescendantInvalidationSet.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 if (recursionData.insertionPointCrossing() && element.isInsertionPoint()) | 188 if (recursionData.insertionPointCrossing() && element.isInsertionPoint()) |
189 element.setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTrac
ing::create(StyleChangeReason::StyleInvalidator)); | 189 element.setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTrac
ing::create(StyleChangeReason::StyleInvalidator)); |
190 | 190 |
191 element.clearChildNeedsStyleInvalidation(); | 191 element.clearChildNeedsStyleInvalidation(); |
192 element.clearNeedsStyleInvalidation(); | 192 element.clearNeedsStyleInvalidation(); |
193 | 193 |
194 return thisElementNeedsStyleRecalc; | 194 return thisElementNeedsStyleRecalc; |
195 } | 195 } |
196 | 196 |
197 void StyleInvalidator::trace(Visitor* visitor) | 197 DEFINE_TRACE(StyleInvalidator) |
198 { | 198 { |
199 #if ENABLE(OILPAN) | 199 #if ENABLE(OILPAN) |
200 visitor->trace(m_pendingInvalidationMap); | 200 visitor->trace(m_pendingInvalidationMap); |
201 #endif | 201 #endif |
202 } | 202 } |
203 | 203 |
204 } // namespace blink | 204 } // namespace blink |
OLD | NEW |