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

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

Issue 1267783003: Reload All Images Using Load Image on Lo-Fi Image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 load(request, loadType, WebHistoryItem(), WebHistoryDifferentDocumentLoad); 963 load(request, loadType, WebHistoryItem(), WebHistoryDifferentDocumentLoad);
964 } 964 }
965 965
966 void WebLocalFrameImpl::reloadImage(const WebNode& webNode) 966 void WebLocalFrameImpl::reloadImage(const WebNode& webNode)
967 { 967 {
968 const Node* node = webNode.constUnwrap<Node>(); 968 const Node* node = webNode.constUnwrap<Node>();
969 if (isHTMLImageElement(*node)) { 969 if (isHTMLImageElement(*node)) {
970 const HTMLImageElement& imageElement = toHTMLImageElement(*node); 970 const HTMLImageElement& imageElement = toHTMLImageElement(*node);
971 imageElement.forceReload(); 971 imageElement.forceReload();
972 } 972 }
973 node->document().fetcher()->reloadLoFiImages();
973 } 974 }
974 975
975 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request) 976 void WebLocalFrameImpl::loadRequest(const WebURLRequest& request)
976 { 977 {
977 // TODO(clamy): Remove this function once RenderFrame calls load for all 978 // TODO(clamy): Remove this function once RenderFrame calls load for all
978 // requests. 979 // requests.
979 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer entDocumentLoad); 980 load(request, WebFrameLoadType::Standard, WebHistoryItem(), WebHistoryDiffer entDocumentLoad);
980 } 981 }
981 982
982 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo adType loadType, 983 void WebLocalFrameImpl::loadHistoryItem(const WebHistoryItem& item, WebHistoryLo adType loadType,
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 } 2192 }
2192 2193
2193 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const 2194 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
2194 { 2195 {
2195 if (!frame()) 2196 if (!frame())
2196 return WebSandboxFlags::None; 2197 return WebSandboxFlags::None;
2197 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2198 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2198 } 2199 }
2199 2200
2200 } // namespace blink 2201 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698