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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comment Created 4 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
OLDNEW
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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 958
959 void WebLocalFrameImpl::reloadImage(const WebNode& webNode) 959 void WebLocalFrameImpl::reloadImage(const WebNode& webNode)
960 { 960 {
961 const Node* node = webNode.constUnwrap<Node>(); 961 const Node* node = webNode.constUnwrap<Node>();
962 if (isHTMLImageElement(*node)) { 962 if (isHTMLImageElement(*node)) {
963 const HTMLImageElement& imageElement = toHTMLImageElement(*node); 963 const HTMLImageElement& imageElement = toHTMLImageElement(*node);
964 imageElement.forceReload(); 964 imageElement.forceReload();
965 } 965 }
966 } 966 }
967 967
968 void WebLocalFrameImpl::reloadLoFiImages()
969 {
970 frame()->document()->fetcher()->reloadLoFiImages();
971 }
972
968 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request) 973 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request)
969 { 974 {
970 // TODO(clamy): Remove this function once RenderFrame calls load for all 975 // TODO(clamy): Remove this function once RenderFrame calls load for all
971 // requests. 976 // requests.
972 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer entDocumentLoad, false); 977 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer entDocumentLoad, false);
973 } 978 }
974 979
975 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo adType loadType, 980 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo adType loadType,
976 WebURLRequest::CachePolicy cachePolicy) 981 WebURLRequest::CachePolicy cachePolicy)
977 { 982 {
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 return WebSandboxFlags::None; 2257 return WebSandboxFlags::None;
2253 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2258 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2254 } 2259 }
2255 2260
2256 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2261 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2257 { 2262 {
2258 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2263 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2259 } 2264 }
2260 2265
2261 } // namespace blink 2266 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698