| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 if (value == m_resetStyleInheritance) | 191 if (value == m_resetStyleInheritance) |
| 192 return; | 192 return; |
| 193 | 193 |
| 194 m_resetStyleInheritance = value; | 194 m_resetStyleInheritance = value; |
| 195 if (!isActive()) | 195 if (!isActive()) |
| 196 return; | 196 return; |
| 197 | 197 |
| 198 setNeedsStyleRecalc(); | 198 setNeedsStyleRecalc(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void ShadowRoot::attach() | 201 void ShadowRoot::attach(const AttachContext& context) |
| 202 { | 202 { |
| 203 StyleResolver* styleResolver = document()->styleResolver(); | 203 StyleResolver* styleResolver = document()->styleResolver(); |
| 204 styleResolver->pushParentShadowRoot(this); | 204 styleResolver->pushParentShadowRoot(this); |
| 205 DocumentFragment::attach(); | 205 DocumentFragment::attach(context); |
| 206 styleResolver->popParentShadowRoot(this); | 206 styleResolver->popParentShadowRoot(this); |
| 207 } | 207 } |
| 208 | 208 |
| 209 Node::InsertionNotificationRequest ShadowRoot::insertedInto(ContainerNode* inser
tionPoint) | 209 Node::InsertionNotificationRequest ShadowRoot::insertedInto(ContainerNode* inser
tionPoint) |
| 210 { | 210 { |
| 211 DocumentFragment::insertedInto(insertionPoint); | 211 DocumentFragment::insertedInto(insertionPoint); |
| 212 | 212 |
| 213 if (!insertionPoint->inDocument() || !isOldest()) | 213 if (!insertionPoint->inDocument() || !isOldest()) |
| 214 return InsertionDone; | 214 return InsertionDone; |
| 215 | 215 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 { | 277 { |
| 278 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 278 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
| 279 DocumentFragment::reportMemoryUsage(memoryObjectInfo); | 279 DocumentFragment::reportMemoryUsage(memoryObjectInfo); |
| 280 TreeScope::reportMemoryUsage(memoryObjectInfo); | 280 TreeScope::reportMemoryUsage(memoryObjectInfo); |
| 281 info.addMember(m_prev, "prev"); | 281 info.addMember(m_prev, "prev"); |
| 282 info.addMember(m_next, "next"); | 282 info.addMember(m_next, "next"); |
| 283 info.addMember(m_scopeDistribution, "scopeDistribution"); | 283 info.addMember(m_scopeDistribution, "scopeDistribution"); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } | 286 } |
| OLD | NEW |