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

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

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 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
« no previous file with comments | « WebCore/html/HTMLElement.cpp ('k') | WebCore/loader/DocumentThreadableLoader.cpp » ('j') | 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 Google Inc. All rights reserved. 2 * Copyright (C) 2007 Google Inc. All rights reserved.
3 * Authors: Collin Jackson, Adam Barth 3 * Authors: Collin Jackson, Adam Barth
4 * 4 *
5 * This is the V8 version of the KJS InspectorController, which is located in 5 * This is the V8 version of the KJS InspectorController, which is located in
6 * webkit/pending. 6 * webkit/pending.
7 * Copyright (C) 2007 Apple Inc. All rights reserved. 7 * Copyright (C) 2007 Apple Inc. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 841
842 // m_inspectedPage should have been cleared by inspectedPageDestroyed 842 // m_inspectedPage should have been cleared by inspectedPageDestroyed
843 ASSERT(!m_inspectedPage); 843 ASSERT(!m_inspectedPage);
844 844
845 deleteAllValues(m_frameResources); 845 deleteAllValues(m_frameResources);
846 deleteAllValues(m_consoleMessages); 846 deleteAllValues(m_consoleMessages);
847 } 847 }
848 848
849 void InspectorController::inspectedPageDestroyed() 849 void InspectorController::inspectedPageDestroyed()
850 { 850 {
851 close();
852
853 ASSERT(m_inspectedPage); 851 ASSERT(m_inspectedPage);
854 m_inspectedPage = 0; 852 m_inspectedPage = 0;
853
854 close();
855 } 855 }
856 856
857 bool InspectorController::enabled() const 857 bool InspectorController::enabled() const
858 { 858 {
859 if (!m_inspectedPage) 859 if (!m_inspectedPage)
860 return false; 860 return false;
861 861
862 bool b = m_inspectedPage->settings()->developerExtrasEnabled(); 862 bool b = m_inspectedPage->settings()->developerExtrasEnabled();
863 863
864 return b; 864 return b;
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 } 2035 }
2036 2036
2037 bool InspectorController::stopTiming(const String& title, double& elapsed) 2037 bool InspectorController::stopTiming(const String& title, double& elapsed)
2038 { 2038 {
2039 elapsed = 0; 2039 elapsed = 0;
2040 notImplemented(); 2040 notImplemented();
2041 return false; 2041 return false;
2042 } 2042 }
2043 2043
2044 } // namespace WebCore 2044 } // namespace WebCore
OLDNEW
« no previous file with comments | « WebCore/html/HTMLElement.cpp ('k') | WebCore/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698