| 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&); |
| 62 void detach(); | 62 void detach(const Node::AttachContext&); |
| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 if (Node* parent = node->parentNode()) | 127 if (Node* parent = node->parentNode()) |
| 128 if (parent->isElementNode()) | 128 if (parent->isElementNode()) |
| 129 return toElement(parent)->shadow(); | 129 return toElement(parent)->shadow(); |
| 130 return 0; | 130 return 0; |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 } // namespace | 134 } // namespace |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |