OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/css/invalidation/StyleInvalidator.h" | 5 #include "core/css/invalidation/StyleInvalidator.h" |
6 | 6 |
7 #include "core/css/invalidation/InvalidationSet.h" | 7 #include "core/css/invalidation/InvalidationSet.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
10 #include "core/dom/ElementTraversal.h" | 10 #include "core/dom/ElementTraversal.h" |
| 11 #include "core/dom/StyleChangeReason.h" |
11 #include "core/dom/shadow/ElementShadow.h" | 12 #include "core/dom/shadow/ElementShadow.h" |
12 #include "core/dom/shadow/ShadowRoot.h" | 13 #include "core/dom/shadow/ShadowRoot.h" |
13 #include "core/html/HTMLSlotElement.h" | 14 #include "core/html/HTMLSlotElement.h" |
14 #include "core/inspector/InspectorTraceEvents.h" | 15 #include "core/inspector/InspectorTraceEvents.h" |
15 #include "core/layout/LayoutObject.h" | 16 #include "core/layout/LayoutObject.h" |
16 | 17 |
17 namespace blink { | 18 namespace blink { |
18 | 19 |
19 // StyleInvalidator methods are super sensitive to performance benchmarks. | 20 // StyleInvalidator methods are super sensitive to performance benchmarks. |
20 // We easily get 1% regression per additional if statement on recursive | 21 // We easily get 1% regression per additional if statement on recursive |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 } | 329 } |
329 | 330 |
330 DEFINE_TRACE(StyleInvalidator) | 331 DEFINE_TRACE(StyleInvalidator) |
331 { | 332 { |
332 #if ENABLE(OILPAN) | 333 #if ENABLE(OILPAN) |
333 visitor->trace(m_pendingInvalidationMap); | 334 visitor->trace(m_pendingInvalidationMap); |
334 #endif | 335 #endif |
335 } | 336 } |
336 | 337 |
337 } // namespace blink | 338 } // namespace blink |
OLD | NEW |