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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2240 else 2240 else
2241 result->addItem(0); 2241 result->addItem(0);
2242 } 2242 }
2243 } 2243 }
2244 2244
2245 void InspectorDOMAgent::getRelayoutBoundary(ErrorString* errorString, int nodeId , int* relayoutBoundaryNodeId) 2245 void InspectorDOMAgent::getRelayoutBoundary(ErrorString* errorString, int nodeId , int* relayoutBoundaryNodeId)
2246 { 2246 {
2247 Node* node = assertNode(errorString, nodeId); 2247 Node* node = assertNode(errorString, nodeId);
2248 if (!node) 2248 if (!node)
2249 return; 2249 return;
2250 RenderObject* renderer = node->renderer(); 2250 LayoutObject* renderer = node->renderer();
2251 if (!renderer) { 2251 if (!renderer) {
2252 *errorString = "No renderer for node, perhaps orphan or hidden node"; 2252 *errorString = "No renderer for node, perhaps orphan or hidden node";
2253 return; 2253 return;
2254 } 2254 }
2255 while (renderer && !renderer->isDocumentElement() && !renderer->isRelayoutBo undaryForInspector()) 2255 while (renderer && !renderer->isDocumentElement() && !renderer->isRelayoutBo undaryForInspector())
2256 renderer = renderer->container(); 2256 renderer = renderer->container();
2257 Node* resultNode = renderer ? renderer->generatingNode() : node->ownerDocume nt(); 2257 Node* resultNode = renderer ? renderer->generatingNode() : node->ownerDocume nt();
2258 *relayoutBoundaryNodeId = pushNodePathToFrontend(resultNode); 2258 *relayoutBoundaryNodeId = pushNodePathToFrontend(resultNode);
2259 } 2259 }
2260 2260
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 visitor->trace(m_revalidateTask); 2304 visitor->trace(m_revalidateTask);
2305 visitor->trace(m_searchResults); 2305 visitor->trace(m_searchResults);
2306 #endif 2306 #endif
2307 visitor->trace(m_history); 2307 visitor->trace(m_history);
2308 visitor->trace(m_domEditor); 2308 visitor->trace(m_domEditor);
2309 visitor->trace(m_listener); 2309 visitor->trace(m_listener);
2310 InspectorBaseAgent::trace(visitor); 2310 InspectorBaseAgent::trace(visitor);
2311 } 2311 }
2312 2312
2313 } // namespace blink 2313 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698