| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 { | 498 { |
| 499 if (!m_response.httpHeaderField("chrome-proxy").contains("q=low")) | 499 if (!m_response.httpHeaderField("chrome-proxy").contains("q=low")) |
| 500 return; | 500 return; |
| 501 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); | 501 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); |
| 502 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); | 502 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); |
| 503 if (isLoading()) | 503 if (isLoading()) |
| 504 m_loader->cancel(); | 504 m_loader->cancel(); |
| 505 else | 505 else |
| 506 updateImageAndClearBuffer(); | 506 updateImageAndClearBuffer(); |
| 507 setStatus(NotStarted); | 507 setStatus(NotStarted); |
| 508 load(fetcher); | 508 fetcher->startLoad(this); |
| 509 } | 509 } |
| 510 | 510 |
| 511 void ImageResource::changedInRect(const blink::Image* image, const IntRect& rect
) | 511 void ImageResource::changedInRect(const blink::Image* image, const IntRect& rect
) |
| 512 { | 512 { |
| 513 if (!image || image != m_image) | 513 if (!image || image != m_image) |
| 514 return; | 514 return; |
| 515 notifyObservers(&rect); | 515 notifyObservers(&rect); |
| 516 } | 516 } |
| 517 | 517 |
| 518 void ImageResource::onePartInMultipartReceived(const ResourceResponse& response) | 518 void ImageResource::onePartInMultipartReceived(const ResourceResponse& response) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 549 if (response().wasFetchedViaServiceWorker()) | 549 if (response().wasFetchedViaServiceWorker()) |
| 550 return response().serviceWorkerResponseType() != WebServiceWorkerRespons
eTypeOpaque; | 550 return response().serviceWorkerResponseType() != WebServiceWorkerRespons
eTypeOpaque; |
| 551 if (!getImage()->currentFrameHasSingleSecurityOrigin()) | 551 if (!getImage()->currentFrameHasSingleSecurityOrigin()) |
| 552 return false; | 552 return false; |
| 553 if (passesAccessControlCheck(securityOrigin)) | 553 if (passesAccessControlCheck(securityOrigin)) |
| 554 return true; | 554 return true; |
| 555 return !securityOrigin->taintsCanvas(response().url()); | 555 return !securityOrigin->taintsCanvas(response().url()); |
| 556 } | 556 } |
| 557 | 557 |
| 558 } // namespace blink | 558 } // namespace blink |
| OLD | NEW |