| 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 #ifndef StyleInvalidator_h | 5 #ifndef StyleInvalidator_h |
| 6 #define StyleInvalidator_h | 6 #define StyleInvalidator_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class DescendantInvalidationSet; | 12 class DescendantInvalidationSet; |
| 13 class Document; | 13 class Document; |
| 14 class Element; | 14 class Element; |
| 15 class Node; |
| 15 | 16 |
| 16 class StyleInvalidator { | 17 class StyleInvalidator { |
| 17 DISALLOW_ALLOCATION(); | 18 DISALLOW_ALLOCATION(); |
| 18 public: | 19 public: |
| 19 StyleInvalidator(); | 20 StyleInvalidator(); |
| 20 ~StyleInvalidator(); | 21 ~StyleInvalidator(); |
| 21 void invalidate(Document&); | 22 void invalidate(Document&); |
| 22 void scheduleInvalidation(PassRefPtr<DescendantInvalidationSet>, Element&); | 23 void scheduleInvalidation(PassRefPtr<DescendantInvalidationSet>, Element&); |
| 23 | 24 |
| 24 // Clears all style invalidation state for the passed node. | 25 // Clears all style invalidation state for the passed node. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 typedef HashMap<RawPtr<Element>, OwnPtr<InvalidationList> > PendingInvalidat
ionMap; | 86 typedef HashMap<RawPtr<Element>, OwnPtr<InvalidationList> > PendingInvalidat
ionMap; |
| 86 | 87 |
| 87 InvalidationList& ensurePendingInvalidationList(Element&); | 88 InvalidationList& ensurePendingInvalidationList(Element&); |
| 88 | 89 |
| 89 PendingInvalidationMap m_pendingInvalidationMap; | 90 PendingInvalidationMap m_pendingInvalidationMap; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace blink | 93 } // namespace blink |
| 93 | 94 |
| 94 #endif // StyleInvalidator_h | 95 #endif // StyleInvalidator_h |
| OLD | NEW |