| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 WTF_MAKE_NONCOPYABLE(ElementShadow); WTF_MAKE_FAST_ALLOCATED; | 44 WTF_MAKE_NONCOPYABLE(ElementShadow); WTF_MAKE_FAST_ALLOCATED; |
| 45 public: | 45 public: |
| 46 static PassOwnPtr<ElementShadow> create(); | 46 static PassOwnPtr<ElementShadow> create(); |
| 47 ~ElementShadow(); | 47 ~ElementShadow(); |
| 48 | 48 |
| 49 Element* host() const; | 49 Element* host() const; |
| 50 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } | 50 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } |
| 51 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } | 51 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } |
| 52 ElementShadow* containingShadow() const; | 52 ElementShadow* containingShadow() const; |
| 53 | 53 |
| 54 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType); | 54 ShadowRoot* addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType); |
| 55 | 55 |
| 56 bool applyAuthorStyles() const { return m_applyAuthorStyles; } | 56 bool applyAuthorStyles() const { return m_applyAuthorStyles; } |
| 57 bool didAffectApplyAuthorStyles(); | 57 bool didAffectApplyAuthorStyles(); |
| 58 bool containsActiveStyles() const; | 58 bool containsActiveStyles() const; |
| 59 | 59 |
| 60 void attach(const Node::AttachContext&); | 60 void attach(const Node::AttachContext&); |
| 61 void detach(const Node::AttachContext&); | 61 void detach(const Node::AttachContext&); |
| 62 | 62 |
| 63 void removeAllEventListeners(); | 63 void removeAllEventListeners(); |
| 64 | 64 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 return 0; | 130 return 0; |
| 131 if (Node* parent = node->parentNode()) | 131 if (Node* parent = node->parentNode()) |
| 132 if (parent->isElementNode()) | 132 if (parent->isElementNode()) |
| 133 return toElement(parent)->shadow(); | 133 return toElement(parent)->shadow(); |
| 134 return 0; | 134 return 0; |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace | 137 } // namespace |
| 138 | 138 |
| 139 #endif | 139 #endif |
| OLD | NEW |