OLD | NEW |
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 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 ScriptFunctionCall function(window, "didEvaluateForTestInFrontend"); | 1600 ScriptFunctionCall function(window, "didEvaluateForTestInFrontend"); |
1601 function.appendArgument(callId); | 1601 function.appendArgument(callId); |
1602 function.appendArgument(jsonResult); | 1602 function.appendArgument(jsonResult); |
1603 function.call(); | 1603 function.call(); |
1604 } | 1604 } |
1605 | 1605 |
1606 #if ENABLE(JAVASCRIPT_DEBUGGER) | 1606 #if ENABLE(JAVASCRIPT_DEBUGGER) |
1607 String InspectorController::breakpointsSettingKey() | 1607 String InspectorController::breakpointsSettingKey() |
1608 { | 1608 { |
1609 DEFINE_STATIC_LOCAL(String, keyPrefix, ("breakpoints:")); | 1609 DEFINE_STATIC_LOCAL(String, keyPrefix, ("breakpoints:")); |
| 1610 if (!m_mainResource) |
| 1611 return ""; |
1610 return keyPrefix + InspectorDebuggerAgent::md5Base16(m_mainResource->request
URL()); | 1612 return keyPrefix + InspectorDebuggerAgent::md5Base16(m_mainResource->request
URL()); |
1611 } | 1613 } |
1612 | 1614 |
1613 PassRefPtr<InspectorValue> InspectorController::loadBreakpoints() | 1615 PassRefPtr<InspectorValue> InspectorController::loadBreakpoints() |
1614 { | 1616 { |
1615 return InspectorValue::parseJSON(setting(breakpointsSettingKey())); | 1617 return InspectorValue::parseJSON(setting(breakpointsSettingKey())); |
1616 } | 1618 } |
1617 | 1619 |
1618 void InspectorController::saveBreakpoints(PassRefPtr<InspectorObject> breakpoint
s) | 1620 void InspectorController::saveBreakpoints(PassRefPtr<InspectorObject> breakpoint
s) |
1619 { | 1621 { |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 void InspectorController::didModifyDOMAttrImpl(Element* element) | 1917 void InspectorController::didModifyDOMAttrImpl(Element* element) |
1916 { | 1918 { |
1917 if (m_domAgent) | 1919 if (m_domAgent) |
1918 m_domAgent->didModifyDOMAttr(element); | 1920 m_domAgent->didModifyDOMAttr(element); |
1919 } | 1921 } |
1920 | 1922 |
1921 | 1923 |
1922 } // namespace WebCore | 1924 } // namespace WebCore |
1923 | 1925 |
1924 #endif // ENABLE(INSPECTOR) | 1926 #endif // ENABLE(INSPECTOR) |
OLD | NEW |