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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 removeAllShadowRoots(); | 51 removeAllShadowRoots(); |
52 } | 52 } |
53 | 53 |
54 Element* host() const; | 54 Element* host() const; |
55 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } | 55 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } |
56 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } | 56 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } |
57 ElementShadow* containingShadow() const; | 57 ElementShadow* containingShadow() const; |
58 | 58 |
59 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType); | 59 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType); |
60 | 60 |
61 void attach(); | 61 void attach(const Node::AttachContext& = Node::AttachContext()); |
62 void detach(); | 62 void detach(const Node::AttachContext& = Node::AttachContext()); |
esprehn
2013/06/14 22:25:27
I don't think you need the default values. We shou
| |
63 | 63 |
64 bool childNeedsStyleRecalc() const; | 64 bool childNeedsStyleRecalc() const; |
65 bool needsStyleRecalc() const; | 65 bool needsStyleRecalc() const; |
66 void recalcStyle(Node::StyleChange); | 66 void recalcStyle(Node::StyleChange); |
67 void removeAllEventListeners(); | 67 void removeAllEventListeners(); |
68 | 68 |
69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; } | 69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; } |
70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); } | 70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); } |
71 void willAffectSelector() { m_distributor.willAffectSelector(host()); } | 71 void willAffectSelector() { m_distributor.willAffectSelector(host()); } |
72 | 72 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 if (Node* parent = node->parentNode()) | 122 if (Node* parent = node->parentNode()) |
123 if (parent->isElementNode()) | 123 if (parent->isElementNode()) |
124 return toElement(parent)->shadow(); | 124 return toElement(parent)->shadow(); |
125 return 0; | 125 return 0; |
126 } | 126 } |
127 | 127 |
128 | 128 |
129 } // namespace | 129 } // namespace |
130 | 130 |
131 #endif | 131 #endif |
OLD | NEW |