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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 , m_documentNodeToIdMap(adoptPtrWillBeNoop(new NodeToIdMap())) 235 , m_documentNodeToIdMap(adoptPtrWillBeNoop(new NodeToIdMap()))
236 , m_lastNodeId(1) 236 , m_lastNodeId(1)
237 , m_searchingForNode(NotSearching) 237 , m_searchingForNode(NotSearching)
238 , m_suppressAttributeModifiedEvent(false) 238 , m_suppressAttributeModifiedEvent(false)
239 , m_listener(0) 239 , m_listener(0)
240 { 240 {
241 } 241 }
242 242
243 InspectorDOMAgent::~InspectorDOMAgent() 243 InspectorDOMAgent::~InspectorDOMAgent()
244 { 244 {
245 reset(); 245 reset();
haraken 2014/06/12 05:53:01 Do you need to call reset()? As far as I see, all
keishi 2014/06/13 03:37:33 Done.
246 ASSERT(m_searchingForNode == NotSearching); 246 ASSERT(m_searchingForNode == NotSearching);
247 } 247 }
248 248
249 void InspectorDOMAgent::setFrontend(InspectorFrontend* frontend) 249 void InspectorDOMAgent::setFrontend(InspectorFrontend* frontend)
250 { 250 {
251 ASSERT(!m_frontend); 251 ASSERT(!m_frontend);
252 m_history = adoptPtrWillBeNoop(new InspectorHistory()); 252 m_history = adoptPtrWillBeNoop(new InspectorHistory());
253 m_domEditor = adoptPtrWillBeNoop(new DOMEditor(m_history.get())); 253 m_domEditor = adoptPtrWillBeNoop(new DOMEditor(m_history.get()));
254 254
255 m_frontend = frontend->dom(); 255 m_frontend = frontend->dom();
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 { 2094 {
2095 // FIXME: Oilpan: .get will be unnecessary if m_document is a Member<>. 2095 // FIXME: Oilpan: .get will be unnecessary if m_document is a Member<>.
2096 if (!m_documentNodeToIdMap->contains(m_document.get())) { 2096 if (!m_documentNodeToIdMap->contains(m_document.get())) {
2097 RefPtr<TypeBuilder::DOM::Node> root; 2097 RefPtr<TypeBuilder::DOM::Node> root;
2098 getDocument(errorString, root); 2098 getDocument(errorString, root);
2099 return errorString->isEmpty(); 2099 return errorString->isEmpty();
2100 } 2100 }
2101 return true; 2101 return true;
2102 } 2102 }
2103 2103
2104 void InspectorDOMAgent::trace(Visitor* visitor)
2105 {
2106 visitor->trace(m_pageAgent);
2107 #if ENABLE(OILPAN)
2108 visitor->trace(m_documentNodeToIdMap);
2109 visitor->trace(m_danglingNodeToIdMaps);
2110 visitor->trace(m_idToNode);
2111 #endif
2112 visitor->trace(m_idToNodesMap);
2113 visitor->trace(m_document);
2114 visitor->trace(m_searchResults);
2115 visitor->trace(m_history);
2116 visitor->trace(m_domEditor);
2117 InspectorBaseAgent::trace(visitor);
2118 }
2119
2104 } // namespace WebCore 2120 } // namespace WebCore
2105 2121
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698