OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "core/dom/shadow/SelectRuleFeatureSet.h" | 31 #include "core/dom/shadow/SelectRuleFeatureSet.h" |
32 #include "core/dom/shadow/ShadowRoot.h" | 32 #include "core/dom/shadow/ShadowRoot.h" |
33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
34 #include "wtf/DoublyLinkedList.h" | 34 #include "wtf/DoublyLinkedList.h" |
35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class ElementShadow FINAL : public NoBaseWillBeGarbageCollectedFinalized<Element
Shadow> { | 41 class ElementShadow final : public NoBaseWillBeGarbageCollectedFinalized<Element
Shadow> { |
42 WTF_MAKE_NONCOPYABLE(ElementShadow); | 42 WTF_MAKE_NONCOPYABLE(ElementShadow); |
43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
44 public: | 44 public: |
45 static PassOwnPtrWillBeRawPtr<ElementShadow> create(); | 45 static PassOwnPtrWillBeRawPtr<ElementShadow> create(); |
46 ~ElementShadow(); | 46 ~ElementShadow(); |
47 | 47 |
48 Element* host() const; | 48 Element* host() const; |
49 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } | 49 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } |
50 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } | 50 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } |
51 ElementShadow* containingShadow() const; | 51 ElementShadow* containingShadow() const; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 inline void ElementShadow::distributeIfNeeded() | 127 inline void ElementShadow::distributeIfNeeded() |
128 { | 128 { |
129 if (m_needsDistributionRecalc) | 129 if (m_needsDistributionRecalc) |
130 distribute(); | 130 distribute(); |
131 m_needsDistributionRecalc = false; | 131 m_needsDistributionRecalc = false; |
132 } | 132 } |
133 | 133 |
134 } // namespace | 134 } // namespace |
135 | 135 |
136 #endif | 136 #endif |
OLD | NEW |