OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool containsShadowRoots() const; | 87 bool containsShadowRoots() const; |
88 | 88 |
89 unsigned descendantShadowElementCount() const; | 89 unsigned descendantShadowElementCount() const; |
90 | 90 |
91 // For Internals, don't use this. | 91 // For Internals, don't use this. |
92 unsigned childShadowRootCount() const; | 92 unsigned childShadowRootCount() const; |
93 | 93 |
94 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; | 94 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; |
95 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtr<HTMLShadowElement
>); | 95 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtr<HTMLShadowElement
>); |
96 | 96 |
| 97 InsertionPoint* shadowInsertionPoint() const; |
| 98 |
97 void didAddInsertionPoint(InsertionPoint*); | 99 void didAddInsertionPoint(InsertionPoint*); |
98 void didRemoveInsertionPoint(InsertionPoint*); | 100 void didRemoveInsertionPoint(InsertionPoint*); |
99 const Vector<RefPtr<InsertionPoint> >& descendantInsertionPoints(); | 101 const Vector<RefPtr<InsertionPoint> >& descendantInsertionPoints(); |
100 | 102 |
101 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } | 103 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } |
102 | 104 |
103 public: | 105 public: |
104 Element* activeElement() const; | 106 Element* activeElement() const; |
105 | 107 |
106 bool applyAuthorStyles() const { return m_applyAuthorStyles; } | 108 bool applyAuthorStyles() const { return m_applyAuthorStyles; } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 194 |
193 inline ShadowRoot& toShadowRoot(TreeScope& treeScope) | 195 inline ShadowRoot& toShadowRoot(TreeScope& treeScope) |
194 { | 196 { |
195 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode(
)->isShadowRoot()); | 197 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode(
)->isShadowRoot()); |
196 return static_cast<ShadowRoot&>(treeScope); | 198 return static_cast<ShadowRoot&>(treeScope); |
197 } | 199 } |
198 | 200 |
199 } // namespace | 201 } // namespace |
200 | 202 |
201 #endif | 203 #endif |
OLD | NEW |