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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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
191 // disallow reprojecting UA elements into author shadows. 191 // disallow reprojecting UA elements into author shadows.
192 DistributionPool olderShadowRootPool(*root->olderShadowRoot()); 192 DistributionPool olderShadowRootPool(*root->olderShadowRoot());
193 olderShadowRootPool.distributeTo(shadowInsertionPoint, this); 193 olderShadowRootPool.distributeTo(shadowInsertionPoint, this);
194 root->olderShadowRoot()->setShadowInsertionPointOfYoungerShadowRoot( 194 root->olderShadowRoot()->setShadowInsertionPointOfYoungerShadowRoot(
195 shadowInsertionPoint); 195 shadowInsertionPoint);
196 } 196 }
197 if (ElementShadow* shadow = 197 if (ElementShadow* shadow =
198 shadowWhereNodeCanBeDistributedForV0(*shadowInsertionPoint)) 198 shadowWhereNodeCanBeDistributedForV0(*shadowInsertionPoint))
199 shadow->setNeedsDistributionRecalc(); 199 shadow->setNeedsDistributionRecalc();
200 } 200 }
201 InspectorInstrumentation::didPerformElementShadowDistribution( 201 probe::didPerformElementShadowDistribution(&m_elementShadow->host());
202 &m_elementShadow->host());
203 } 202 }
204 203
205 void ElementShadowV0::didDistributeNode(const Node* node, 204 void ElementShadowV0::didDistributeNode(const Node* node,
206 InsertionPoint* insertionPoint) { 205 InsertionPoint* insertionPoint) {
207 NodeToDestinationInsertionPoints::AddResult result = 206 NodeToDestinationInsertionPoints::AddResult result =
208 m_nodeToInsertionPoints.insert(node, nullptr); 207 m_nodeToInsertionPoints.insert(node, nullptr);
209 if (result.isNewEntry) 208 if (result.isNewEntry)
210 result.storedValue->value = new DestinationInsertionPoints; 209 result.storedValue->value = new DestinationInsertionPoints;
211 result.storedValue->value->push_back(insertionPoint); 210 result.storedValue->value->push_back(insertionPoint);
212 } 211 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 258
260 DEFINE_TRACE(ElementShadowV0) { 259 DEFINE_TRACE(ElementShadowV0) {
261 visitor->trace(m_elementShadow); 260 visitor->trace(m_elementShadow);
262 visitor->trace(m_nodeToInsertionPoints); 261 visitor->trace(m_nodeToInsertionPoints);
263 visitor->trace(m_selectFeatures); 262 visitor->trace(m_selectFeatures);
264 } 263 }
265 264
266 DEFINE_TRACE_WRAPPERS(ElementShadowV0) {} 265 DEFINE_TRACE_WRAPPERS(ElementShadowV0) {}
267 266
268 } // namespace blink 267 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698