OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 | 961 |
962 void WebLocalFrameImpl::reloadImage(const WebNode& webNode) | 962 void WebLocalFrameImpl::reloadImage(const WebNode& webNode) |
963 { | 963 { |
964 const Node* node = webNode.constUnwrap<Node>(); | 964 const Node* node = webNode.constUnwrap<Node>(); |
965 if (isHTMLImageElement(*node)) { | 965 if (isHTMLImageElement(*node)) { |
966 const HTMLImageElement& imageElement = toHTMLImageElement(*node); | 966 const HTMLImageElement& imageElement = toHTMLImageElement(*node); |
967 imageElement.forceReload(); | 967 imageElement.forceReload(); |
968 } | 968 } |
969 } | 969 } |
970 | 970 |
| 971 void WebLocalFrameImpl::reloadLoFiImages() |
| 972 { |
| 973 frame()->document()->fetcher()->reloadLoFiImages(); |
| 974 } |
| 975 |
971 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request) | 976 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request) |
972 { | 977 { |
973 // TODO(clamy): Remove this function once RenderFrame calls load for all | 978 // TODO(clamy): Remove this function once RenderFrame calls load for all |
974 // requests. | 979 // requests. |
975 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer
entDocumentLoad); | 980 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer
entDocumentLoad); |
976 } | 981 } |
977 | 982 |
978 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo
adType loadType, | 983 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo
adType loadType, |
979 WebURLRequest::CachePolicy cachePolicy) | 984 WebURLRequest::CachePolicy cachePolicy) |
980 { | 985 { |
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 return WebSandboxFlags::None; | 2260 return WebSandboxFlags::None; |
2256 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2261 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2257 } | 2262 } |
2258 | 2263 |
2259 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2264 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2260 { | 2265 { |
2261 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2266 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2262 } | 2267 } |
2263 | 2268 |
2264 } // namespace blink | 2269 } // namespace blink |
OLD | NEW |