| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 InspectorDOMAgent::~InspectorDOMAgent() | 243 InspectorDOMAgent::~InspectorDOMAgent() |
| 244 { | 244 { |
| 245 reset(); | 245 reset(); |
| 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 = adoptPtr(new InspectorHistory()); | 252 m_history = adoptPtrWillBeNoop(new InspectorHistory()); |
| 253 m_domEditor = adoptPtr(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(); |
| 256 m_instrumentingAgents->setInspectorDOMAgent(this); | 256 m_instrumentingAgents->setInspectorDOMAgent(this); |
| 257 m_document = m_pageAgent->mainFrame()->document(); | 257 m_document = m_pageAgent->mainFrame()->document(); |
| 258 } | 258 } |
| 259 | 259 |
| 260 void InspectorDOMAgent::clearFrontend() | 260 void InspectorDOMAgent::clearFrontend() |
| 261 { | 261 { |
| 262 ASSERT(m_frontend); | 262 ASSERT(m_frontend); |
| 263 | 263 |
| (...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } // namespace WebCore | 2104 } // namespace WebCore |
| 2105 | 2105 |
| OLD | NEW |