OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |