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

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

Issue 22043003: [oilpan] Handlify childrenChanged. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 4 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
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 root = insertionPoint->containingShadowRoot(); 205 root = insertionPoint->containingShadowRoot();
206 206
207 if (root && root->scopeDistribution()) 207 if (root && root->scopeDistribution())
208 root->scopeDistribution()->unregisterElementShadow(); 208 root->scopeDistribution()->unregisterElementShadow();
209 m_registeredWithParentShadowRoot = false; 209 m_registeredWithParentShadowRoot = false;
210 } 210 }
211 211
212 DocumentFragment::removedFrom(insertionPoint); 212 DocumentFragment::removedFrom(insertionPoint);
213 } 213 }
214 214
215 void ShadowRoot::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 215 void ShadowRoot::childrenChanged(bool changedByParser, const Handle<Node>& befor eChange, const Handle<Node>& afterChange, int childCountDelta)
216 { 216 {
217 if (isOrphan()) 217 if (isOrphan())
218 return; 218 return;
219 219
220 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta); 220 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta);
221 owner()->invalidateDistribution(); 221 owner()->invalidateDistribution();
222 } 222 }
223 223
224 void ShadowRoot::registerScopedHTMLStyleChild() 224 void ShadowRoot::registerScopedHTMLStyleChild()
225 { 225 {
(...skipping 27 matching lines...) Expand all
253 info.addMember(m_scopeDistribution, "scopeDistribution"); 253 info.addMember(m_scopeDistribution, "scopeDistribution");
254 } 254 }
255 255
256 void ShadowRoot::accept(Visitor* visitor) const 256 void ShadowRoot::accept(Visitor* visitor) const
257 { 257 {
258 DocumentFragment::accept(visitor); 258 DocumentFragment::accept(visitor);
259 TreeScope::accept(visitor); 259 TreeScope::accept(visitor);
260 } 260 }
261 261
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698