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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 (*nodes)->addItem(buildObjectForNode( 504 (*nodes)->addItem(buildObjectForNode(
505 m_document.get(), sanitizedDepth, pierce.fromMaybe(false), 505 m_document.get(), sanitizedDepth, pierce.fromMaybe(false),
506 m_documentNodeToIdMap.get(), nodes->get())); 506 m_documentNodeToIdMap.get(), nodes->get()));
507 return Response::OK(); 507 return Response::OK();
508 } 508 }
509 509
510 void InspectorDOMAgent::pushChildNodesToFrontend(int nodeId, 510 void InspectorDOMAgent::pushChildNodesToFrontend(int nodeId,
511 int depth, 511 int depth,
512 bool pierce) { 512 bool pierce) {
513 Node* node = nodeForId(nodeId); 513 Node* node = nodeForId(nodeId);
514 if (!node || (!node->isElementNode() && !node->isDocumentNode() && 514 if (!node ||
515 !node->isDocumentFragment())) 515 (!node->isElementNode() && !node->isDocumentNode() &&
516 !node->isDocumentFragment()))
516 return; 517 return;
517 518
518 NodeToIdMap* nodeMap = m_idToNodesMap.get(nodeId); 519 NodeToIdMap* nodeMap = m_idToNodesMap.get(nodeId);
519 520
520 if (m_childrenRequested.contains(nodeId)) { 521 if (m_childrenRequested.contains(nodeId)) {
521 if (depth <= 1) 522 if (depth <= 1)
522 return; 523 return;
523 524
524 depth--; 525 depth--;
525 526
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 visitor->trace(m_idToNodesMap); 2375 visitor->trace(m_idToNodesMap);
2375 visitor->trace(m_document); 2376 visitor->trace(m_document);
2376 visitor->trace(m_revalidateTask); 2377 visitor->trace(m_revalidateTask);
2377 visitor->trace(m_searchResults); 2378 visitor->trace(m_searchResults);
2378 visitor->trace(m_history); 2379 visitor->trace(m_history);
2379 visitor->trace(m_domEditor); 2380 visitor->trace(m_domEditor);
2380 InspectorBaseAgent::trace(visitor); 2381 InspectorBaseAgent::trace(visitor);
2381 } 2382 }
2382 2383
2383 } // namespace blink 2384 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698