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

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

Issue 298873004: Oilpan: Move DOMEditor to the heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 InspectorDOMAgent::~InspectorDOMAgent() 241 InspectorDOMAgent::~InspectorDOMAgent()
242 { 242 {
243 reset(); 243 reset();
244 ASSERT(m_searchingForNode == NotSearching); 244 ASSERT(m_searchingForNode == NotSearching);
245 } 245 }
246 246
247 void InspectorDOMAgent::setFrontend(InspectorFrontend* frontend) 247 void InspectorDOMAgent::setFrontend(InspectorFrontend* frontend)
248 { 248 {
249 ASSERT(!m_frontend); 249 ASSERT(!m_frontend);
250 m_history = adoptPtr(new InspectorHistory()); 250 m_history = adoptPtrWillBeNoop(new InspectorHistory());
251 m_domEditor = adoptPtr(new DOMEditor(m_history.get())); 251 m_domEditor = adoptPtrWillBeNoop(new DOMEditor(m_history.get()));
252 252
253 m_frontend = frontend->dom(); 253 m_frontend = frontend->dom();
254 m_instrumentingAgents->setInspectorDOMAgent(this); 254 m_instrumentingAgents->setInspectorDOMAgent(this);
255 m_document = m_pageAgent->mainFrame()->document(); 255 m_document = m_pageAgent->mainFrame()->document();
256 } 256 }
257 257
258 void InspectorDOMAgent::clearFrontend() 258 void InspectorDOMAgent::clearFrontend()
259 { 259 {
260 ASSERT(m_frontend); 260 ASSERT(m_frontend);
261 261
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 if (!m_documentNodeToIdMap.contains(m_document)) { 2063 if (!m_documentNodeToIdMap.contains(m_document)) {
2064 RefPtr<TypeBuilder::DOM::Node> root; 2064 RefPtr<TypeBuilder::DOM::Node> root;
2065 getDocument(errorString, root); 2065 getDocument(errorString, root);
2066 return errorString->isEmpty(); 2066 return errorString->isEmpty();
2067 } 2067 }
2068 return true; 2068 return true;
2069 } 2069 }
2070 2070
2071 } // namespace WebCore 2071 } // namespace WebCore
2072 2072
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698