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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.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) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 } 302 }
303 303
304 void HTMLSlotElement::lazyReattachDistributedNodesIfNeeded() { 304 void HTMLSlotElement::lazyReattachDistributedNodesIfNeeded() {
305 // TODO(hayato): Figure out an exact condition where reattach is required 305 // TODO(hayato): Figure out an exact condition where reattach is required
306 if (m_oldDistributedNodes != m_distributedNodes) { 306 if (m_oldDistributedNodes != m_distributedNodes) {
307 for (auto& node : m_oldDistributedNodes) 307 for (auto& node : m_oldDistributedNodes)
308 node->lazyReattachIfAttached(); 308 node->lazyReattachIfAttached();
309 for (auto& node : m_distributedNodes) 309 for (auto& node : m_distributedNodes)
310 node->lazyReattachIfAttached(); 310 node->lazyReattachIfAttached();
311 InspectorInstrumentation::didPerformSlotDistribution(this); 311 probe::didPerformSlotDistribution(this);
312 } 312 }
313 m_oldDistributedNodes.clear(); 313 m_oldDistributedNodes.clear();
314 } 314 }
315 315
316 void HTMLSlotElement::didSlotChange(SlotChangeType slotChangeType) { 316 void HTMLSlotElement::didSlotChange(SlotChangeType slotChangeType) {
317 if (slotChangeType == SlotChangeType::Initial) 317 if (slotChangeType == SlotChangeType::Initial)
318 enqueueSlotChangeEvent(); 318 enqueueSlotChangeEvent();
319 ShadowRoot* root = containingShadowRoot(); 319 ShadowRoot* root = containingShadowRoot();
320 // TODO(hayato): Relax this check if slots in non-shadow trees are well 320 // TODO(hayato): Relax this check if slots in non-shadow trees are well
321 // supported. 321 // supported.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 DEFINE_TRACE(HTMLSlotElement) { 359 DEFINE_TRACE(HTMLSlotElement) {
360 visitor->trace(m_assignedNodes); 360 visitor->trace(m_assignedNodes);
361 visitor->trace(m_distributedNodes); 361 visitor->trace(m_distributedNodes);
362 visitor->trace(m_oldDistributedNodes); 362 visitor->trace(m_oldDistributedNodes);
363 visitor->trace(m_distributedIndices); 363 visitor->trace(m_distributedIndices);
364 HTMLElement::trace(visitor); 364 HTMLElement::trace(visitor);
365 } 365 }
366 366
367 } // namespace blink 367 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698