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

Side by Side Diff: WebCore/inspector/InspectorController.cpp

Issue 3385005: Merge 67185 - 2010-09-09 Ilya Tikhonovsky <loislo@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 597 }
598 598
599 void InspectorController::populateScriptObjects() 599 void InspectorController::populateScriptObjects()
600 { 600 {
601 ASSERT(m_frontend); 601 ASSERT(m_frontend);
602 if (!m_frontend) 602 if (!m_frontend)
603 return; 603 return;
604 604
605 if (m_showAfterVisible == lastActivePanel) 605 if (m_showAfterVisible == lastActivePanel)
606 m_showAfterVisible = setting(lastActivePanel); 606 m_showAfterVisible = setting(lastActivePanel);
607 if (m_nodeToFocus) 607
608 focusNode();
609 showPanel(m_showAfterVisible); 608 showPanel(m_showAfterVisible);
610 609
611 if (m_resourceTrackingEnabled) 610 if (m_resourceTrackingEnabled)
612 m_frontend->resourceTrackingWasEnabled(); 611 m_frontend->resourceTrackingWasEnabled();
613 612
614 if (m_searchingForNode) 613 if (m_searchingForNode)
615 m_frontend->searchingForNodeWasEnabled(); 614 m_frontend->searchingForNodeWasEnabled();
616 615
617 if (m_monitoringXHR) 616 if (m_monitoringXHR)
618 m_frontend->monitoringXHRWasEnabled(); 617 m_frontend->monitoringXHRWasEnabled();
619 618
620 #if ENABLE(JAVASCRIPT_DEBUGGER) 619 #if ENABLE(JAVASCRIPT_DEBUGGER)
621 if (m_profilerAgent->enabled()) 620 if (m_profilerAgent->enabled())
622 m_frontend->profilerWasEnabled(); 621 m_frontend->profilerWasEnabled();
623 #endif 622 #endif
624 623
625 ResourcesMap::iterator resourcesEnd = m_resources.end(); 624 ResourcesMap::iterator resourcesEnd = m_resources.end();
626 for (ResourcesMap::iterator it = m_resources.begin(); it != resourcesEnd; ++ it) 625 for (ResourcesMap::iterator it = m_resources.begin(); it != resourcesEnd; ++ it)
627 it->second->updateScriptObject(m_frontend.get()); 626 it->second->updateScriptObject(m_frontend.get());
628 627
629 m_domAgent->setDocument(m_inspectedPage->mainFrame()->document()); 628 m_domAgent->setDocument(m_inspectedPage->mainFrame()->document());
630 629
630 if (m_nodeToFocus)
631 focusNode();
632
631 if (m_expiredConsoleMessageCount) 633 if (m_expiredConsoleMessageCount)
632 m_frontend->updateConsoleMessageExpiredCount(m_expiredConsoleMessageCoun t); 634 m_frontend->updateConsoleMessageExpiredCount(m_expiredConsoleMessageCoun t);
633 unsigned messageCount = m_consoleMessages.size(); 635 unsigned messageCount = m_consoleMessages.size();
634 for (unsigned i = 0; i < messageCount; ++i) 636 for (unsigned i = 0; i < messageCount; ++i)
635 m_consoleMessages[i]->addToFrontend(m_frontend.get(), m_injectedScriptHo st.get()); 637 m_consoleMessages[i]->addToFrontend(m_frontend.get(), m_injectedScriptHo st.get());
636 638
637 #if ENABLE(JAVASCRIPT_DEBUGGER) 639 #if ENABLE(JAVASCRIPT_DEBUGGER)
638 if (debuggerEnabled()) 640 if (debuggerEnabled())
639 m_frontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pau seOnExceptionsState()); 641 m_frontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pau seOnExceptionsState());
640 #endif 642 #endif
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 void InspectorController::didModifyDOMAttrImpl(Element* element) 1895 void InspectorController::didModifyDOMAttrImpl(Element* element)
1894 { 1896 {
1895 if (m_domAgent) 1897 if (m_domAgent)
1896 m_domAgent->didModifyDOMAttr(element); 1898 m_domAgent->didModifyDOMAttr(element);
1897 } 1899 }
1898 1900
1899 1901
1900 } // namespace WebCore 1902 } // namespace WebCore
1901 1903
1902 #endif // ENABLE(INSPECTOR) 1904 #endif // ENABLE(INSPECTOR)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698