Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: Source/core/dom/ShadowRoot.cpp

Issue 14990005: Remove ENTITY_REFERENCE_NODE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some empty lines Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698