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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 if (type == ShadowRoot::AuthorShadowRoot) { | 68 if (type == ShadowRoot::AuthorShadowRoot) { |
69 ShadowRootUsageOriginType usageType = document->url().protocolIsInHTTPFa
mily() ? ShadowRootUsageOriginWeb : ShadowRootUsageOriginNotWeb; | 69 ShadowRootUsageOriginType usageType = document->url().protocolIsInHTTPFa
mily() ? ShadowRootUsageOriginWeb : ShadowRootUsageOriginNotWeb; |
70 HistogramSupport::histogramEnumeration("WebCore.ShadowRoot.constructor",
usageType, ShadowRootUsageOriginMax); | 70 HistogramSupport::histogramEnumeration("WebCore.ShadowRoot.constructor",
usageType, ShadowRootUsageOriginMax); |
71 } | 71 } |
72 } | 72 } |
73 | 73 |
74 ShadowRoot::~ShadowRoot() | 74 ShadowRoot::~ShadowRoot() |
75 { | 75 { |
76 } | 76 } |
77 | 77 |
78 void ShadowRoot::visitWith(Visitor* visitor) const | 78 void ShadowRoot::adjustAndMark(Visitor* visitor) const |
79 { | 79 { |
80 visitor->visit(this); | 80 visitor->mark(this); |
81 } | 81 } |
82 | 82 |
83 Node* ShadowRoot::cloneNode(bool, ExceptionCode& ec) | 83 Node* ShadowRoot::cloneNode(bool, ExceptionCode& ec) |
84 { | 84 { |
85 ec = DATA_CLONE_ERR; | 85 ec = DATA_CLONE_ERR; |
86 return nullptr; | 86 return nullptr; |
87 } | 87 } |
88 | 88 |
89 String ShadowRoot::innerHTML() const | 89 String ShadowRoot::innerHTML() const |
90 { | 90 { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 238 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
239 DocumentFragment::reportMemoryUsage(memoryObjectInfo); | 239 DocumentFragment::reportMemoryUsage(memoryObjectInfo); |
240 TreeScope::reportMemoryUsage(memoryObjectInfo); | 240 TreeScope::reportMemoryUsage(memoryObjectInfo); |
241 info.addMember(m_prev, "prev"); | 241 info.addMember(m_prev, "prev"); |
242 info.addMember(m_next, "next"); | 242 info.addMember(m_next, "next"); |
243 info.addMember(m_scopeDistribution, "scopeDistribution"); | 243 info.addMember(m_scopeDistribution, "scopeDistribution"); |
244 } | 244 } |
245 | 245 |
246 void ShadowRoot::trace(Visitor* visitor) | 246 void ShadowRoot::trace(Visitor* visitor) |
247 { | 247 { |
248 visitor->visit(m_prev); | 248 visitor->mark(m_prev); |
249 visitor->visit(m_next); | 249 visitor->mark(m_next); |
250 visitor->trace(m_scopeDistribution); | 250 visitor->trace(m_scopeDistribution); |
251 DocumentFragment::trace(visitor); | 251 DocumentFragment::trace(visitor); |
252 TreeScope::trace(visitor); | 252 TreeScope::trace(visitor); |
253 } | 253 } |
254 | 254 |
255 } | 255 } |
OLD | NEW |