| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 bool resetStyleInheritance() const { return m_resetStyleInheritance; } | 109 bool resetStyleInheritance() const { return m_resetStyleInheritance; } |
| 110 void setResetStyleInheritance(bool); | 110 void setResetStyleInheritance(bool); |
| 111 | 111 |
| 112 ShadowRoot* olderShadowRoot() const { return next(); } | 112 ShadowRoot* olderShadowRoot() const { return next(); } |
| 113 | 113 |
| 114 String innerHTML() const; | 114 String innerHTML() const; |
| 115 void setInnerHTML(const String&, ExceptionState&); | 115 void setInnerHTML(const String&, ExceptionState&); |
| 116 | 116 |
| 117 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 117 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
| 118 PassRefPtr<Node> cloneNode(ExceptionState& es) { return cloneNode(true, es);
} | 118 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
| 119 | 119 |
| 120 StyleSheetList* styleSheets(); | 120 StyleSheetList* styleSheets(); |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 ShadowRoot(Document*, ShadowRootType); | 123 ShadowRoot(Document*, ShadowRootType); |
| 124 virtual ~ShadowRoot(); | 124 virtual ~ShadowRoot(); |
| 125 | 125 |
| 126 virtual void dispose() OVERRIDE; | 126 virtual void dispose() OVERRIDE; |
| 127 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | 127 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
| 128 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 128 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 inline ShadowRoot& toShadowRoot(TreeScope& treeScope) | 193 inline ShadowRoot& toShadowRoot(TreeScope& treeScope) |
| 194 { | 194 { |
| 195 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode(
)->isShadowRoot()); | 195 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode(
)->isShadowRoot()); |
| 196 return static_cast<ShadowRoot&>(treeScope); | 196 return static_cast<ShadowRoot&>(treeScope); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace | 199 } // namespace |
| 200 | 200 |
| 201 #endif | 201 #endif |
| OLD | NEW |