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