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

Side by Side Diff: Source/WebCore/dom/ContainerNodeAlgorithms.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 if (Node::InsertionShouldCallDidNotifySubtreeInsertions == node->insertedInt o(m_insertionPoint)) 209 if (Node::InsertionShouldCallDidNotifySubtreeInsertions == node->insertedInt o(m_insertionPoint))
210 m_postInsertionNotificationTargets.append(node); 210 m_postInsertionNotificationTargets.append(node);
211 notifyDescendantInsertedIntoTree(node); 211 notifyDescendantInsertedIntoTree(node);
212 } 212 }
213 213
214 inline void ChildNodeInsertionNotifier::notify(Node* node) 214 inline void ChildNodeInsertionNotifier::notify(Node* node)
215 { 215 {
216 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); 216 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden());
217 217
218 #if ENABLE(INSPECTOR)
219 InspectorInstrumentation::didInsertDOMNode(node->document(), node); 218 InspectorInstrumentation::didInsertDOMNode(node->document(), node);
220 #endif
221 219
222 RefPtr<Document> protectDocument(node->document()); 220 RefPtr<Document> protectDocument(node->document());
223 RefPtr<Node> protectNode(node); 221 RefPtr<Node> protectNode(node);
224 222
225 if (m_insertionPoint->inDocument()) 223 if (m_insertionPoint->inDocument())
226 notifyNodeInsertedIntoDocument(node); 224 notifyNodeInsertedIntoDocument(node);
227 else if (node->isContainerNode()) 225 else if (node->isContainerNode())
228 notifyNodeInsertedIntoTree(toContainerNode(node)); 226 notifyNodeInsertedIntoTree(toContainerNode(node));
229 227
230 for (size_t i = 0; i < m_postInsertionNotificationTargets.size(); ++i) 228 for (size_t i = 0; i < m_postInsertionNotificationTargets.size(); ++i)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 for (Node* child = m_root->firstChild(); child; child = child->nextSibli ng()) 330 for (Node* child = m_root->firstChild(); child; child = child->nextSibli ng())
333 collectFrameOwners(child); 331 collectFrameOwners(child);
334 } 332 }
335 333
336 disconnectCollectedFrameOwners(); 334 disconnectCollectedFrameOwners();
337 } 335 }
338 336
339 } // namespace WebCore 337 } // namespace WebCore
340 338
341 #endif // ContainerNodeAlgorithms_h 339 #endif // ContainerNodeAlgorithms_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698