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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 bool ShadowRoot::childTypeAllowed(NodeType type) const | 123 bool ShadowRoot::childTypeAllowed(NodeType type) const |
124 { | 124 { |
125 switch (type) { | 125 switch (type) { |
126 case ELEMENT_NODE: | 126 case ELEMENT_NODE: |
127 case PROCESSING_INSTRUCTION_NODE: | 127 case PROCESSING_INSTRUCTION_NODE: |
128 case COMMENT_NODE: | 128 case COMMENT_NODE: |
129 case TEXT_NODE: | 129 case TEXT_NODE: |
130 case CDATA_SECTION_NODE: | 130 case CDATA_SECTION_NODE: |
131 case ENTITY_REFERENCE_NODE: | |
132 return true; | 131 return true; |
133 default: | 132 default: |
134 return false; | 133 return false; |
135 } | 134 } |
136 } | 135 } |
137 | 136 |
138 void ShadowRoot::recalcStyle(StyleChange change) | 137 void ShadowRoot::recalcStyle(StyleChange change) |
139 { | 138 { |
140 // ShadowRoot doesn't support custom callbacks. | 139 // ShadowRoot doesn't support custom callbacks. |
141 ASSERT(!hasCustomStyleCallbacks()); | 140 ASSERT(!hasCustomStyleCallbacks()); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 { | 256 { |
258 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 257 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
259 DocumentFragment::reportMemoryUsage(memoryObjectInfo); | 258 DocumentFragment::reportMemoryUsage(memoryObjectInfo); |
260 TreeScope::reportMemoryUsage(memoryObjectInfo); | 259 TreeScope::reportMemoryUsage(memoryObjectInfo); |
261 info.addMember(m_prev, "prev"); | 260 info.addMember(m_prev, "prev"); |
262 info.addMember(m_next, "next"); | 261 info.addMember(m_next, "next"); |
263 info.addMember(m_scopeDistribution, "scopeDistribution"); | 262 info.addMember(m_scopeDistribution, "scopeDistribution"); |
264 } | 263 } |
265 | 264 |
266 } | 265 } |
OLD | NEW |