OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& f
rameId) | 893 Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& f
rameId) |
894 { | 894 { |
895 Frame* frame = frameForId(frameId); | 895 Frame* frame = frameForId(frameId); |
896 if (!frame) | 896 if (!frame) |
897 *errorString = "No frame for given id found"; | 897 *errorString = "No frame for given id found"; |
898 return frame; | 898 return frame; |
899 } | 899 } |
900 | 900 |
901 String InspectorPageAgent::resourceSourceMapURL(const String& url) | 901 String InspectorPageAgent::resourceSourceMapURL(const String& url) |
902 { | 902 { |
903 DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, (ASCIILiteral("SourceMap"))
); | 903 DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, ("SourceMap")); |
904 DEFINE_STATIC_LOCAL(String, deprecatedSourceMapHttpHeader, (ASCIILiteral("X-
SourceMap"))); | 904 DEFINE_STATIC_LOCAL(String, deprecatedSourceMapHttpHeader, ("X-SourceMap")); |
905 if (url.isEmpty()) | 905 if (url.isEmpty()) |
906 return String(); | 906 return String(); |
907 Frame* frame = mainFrame(); | 907 Frame* frame = mainFrame(); |
908 if (!frame) | 908 if (!frame) |
909 return String(); | 909 return String(); |
910 Resource* resource = cachedResource(frame, KURL(ParsedURLString, url)); | 910 Resource* resource = cachedResource(frame, KURL(ParsedURLString, url)); |
911 if (!resource) | 911 if (!resource) |
912 return String(); | 912 return String(); |
913 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d
eprecatedSourceMapHttpHeader); | 913 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d
eprecatedSourceMapHttpHeader); |
914 if (!deprecatedHeaderSourceMapURL.isEmpty()) { | 914 if (!deprecatedHeaderSourceMapURL.isEmpty()) { |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 } | 1275 } |
1276 | 1276 |
1277 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co
nst bool* showGrid) | 1277 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co
nst bool* showGrid) |
1278 { | 1278 { |
1279 m_state->setBoolean(PageAgentState::showSizeOnResize, show); | 1279 m_state->setBoolean(PageAgentState::showSizeOnResize, show); |
1280 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid)
; | 1280 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid)
; |
1281 } | 1281 } |
1282 | 1282 |
1283 } // namespace WebCore | 1283 } // namespace WebCore |
1284 | 1284 |
OLD | NEW |