OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 #include "wtf/text/AtomicStringHash.h" | 39 #include "wtf/text/AtomicStringHash.h" |
40 #include "wtf/text/StringHash.h" | 40 #include "wtf/text/StringHash.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class Element; | 44 class Element; |
45 | 45 |
46 // Tracks data to determine which elements of a DOM subtree need to have style | 46 // Tracks data to determine which elements of a DOM subtree need to have style |
47 // recalculated. | 47 // recalculated. |
48 class DescendantInvalidationSet FINAL : public RefCountedWillBeGarbageCollected<
DescendantInvalidationSet> { | 48 class DescendantInvalidationSet final : public RefCountedWillBeGarbageCollected<
DescendantInvalidationSet> { |
49 public: | 49 public: |
50 static PassRefPtrWillBeRawPtr<DescendantInvalidationSet> create() | 50 static PassRefPtrWillBeRawPtr<DescendantInvalidationSet> create() |
51 { | 51 { |
52 return adoptRefWillBeNoop(new DescendantInvalidationSet); | 52 return adoptRefWillBeNoop(new DescendantInvalidationSet); |
53 } | 53 } |
54 | 54 |
55 bool invalidatesElement(Element&) const; | 55 bool invalidatesElement(Element&) const; |
56 | 56 |
57 void combine(const DescendantInvalidationSet& other); | 57 void combine(const DescendantInvalidationSet& other); |
58 | 58 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // If true, all descendants which are custom pseudo elements must be invalid
ated. | 98 // If true, all descendants which are custom pseudo elements must be invalid
ated. |
99 unsigned m_customPseudoInvalid : 1; | 99 unsigned m_customPseudoInvalid : 1; |
100 | 100 |
101 // If true, the invalidation must traverse into ShadowRoots with this set. | 101 // If true, the invalidation must traverse into ShadowRoots with this set. |
102 unsigned m_treeBoundaryCrossing : 1; | 102 unsigned m_treeBoundaryCrossing : 1; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif // DescendantInvalidationSet_h | 107 #endif // DescendantInvalidationSet_h |
OLD | NEW |