| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
| 100 | 100 |
| 101 virtual void visitWith(Visitor*) const; | 101 virtual void visitWith(Visitor*) const; |
| 102 virtual void accept(Visitor*) const OVERRIDE; | 102 virtual void accept(Visitor*) const OVERRIDE; |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 ShadowRoot(Handle<Document>, ShadowRootType); | 105 ShadowRoot(Handle<Document>, ShadowRootType); |
| 106 virtual ~ShadowRoot(); | 106 virtual ~ShadowRoot(); |
| 107 | 107 |
| 108 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | 108 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
| 109 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 109 virtual void childrenChanged(bool changedByParser, const Handle<Node>& befor
eChange, const Handle<Node>& afterChange, int childCountDelta) OVERRIDE; |
| 110 | 110 |
| 111 // ShadowRoots should never be cloned. | 111 // ShadowRoots should never be cloned. |
| 112 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } | 112 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } |
| 113 | 113 |
| 114 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 | 114 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 |
| 115 bool isOrphan() const { return !host(); } | 115 bool isOrphan() const { return !host(); } |
| 116 | 116 |
| 117 // FIXME(oilpan): Change these to Members. We will need to modify DoublyLink
ListNode. | 117 // FIXME(oilpan): Change these to Members. We will need to modify DoublyLink
ListNode. |
| 118 ShadowRoot* m_prev; | 118 ShadowRoot* m_prev; |
| 119 ShadowRoot* m_next; | 119 ShadowRoot* m_next; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 139 } | 139 } |
| 140 | 140 |
| 141 inline Result<ShadowRoot> toShadowRoot(Node* node) | 141 inline Result<ShadowRoot> toShadowRoot(Node* node) |
| 142 { | 142 { |
| 143 return Handle<ShadowRoot>::constCast(toShadowRoot(static_cast<const Node*>(n
ode))); | 143 return Handle<ShadowRoot>::constCast(toShadowRoot(static_cast<const Node*>(n
ode))); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace | 146 } // namespace |
| 147 | 147 |
| 148 #endif | 148 #endif |
| OLD | NEW |