| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 { | 502 { |
| 503 if (!m_response.httpHeaderField("chrome-proxy").contains("q=low")) | 503 if (!m_response.httpHeaderField("chrome-proxy").contains("q=low")) |
| 504 return; | 504 return; |
| 505 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); | 505 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); |
| 506 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); | 506 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); |
| 507 if (isLoading()) | 507 if (isLoading()) |
| 508 m_loader->cancel(); | 508 m_loader->cancel(); |
| 509 else | 509 else |
| 510 updateImageAndClearBuffer(); | 510 updateImageAndClearBuffer(); |
| 511 setStatus(NotStarted); | 511 setStatus(NotStarted); |
| 512 load(fetcher); | 512 fetcher->startLoad(this); |
| 513 } | 513 } |
| 514 | 514 |
| 515 void ImageResource::changedInRect(const blink::Image* image, const IntRect& rect
) | 515 void ImageResource::changedInRect(const blink::Image* image, const IntRect& rect
) |
| 516 { | 516 { |
| 517 if (!image || image != m_image) | 517 if (!image || image != m_image) |
| 518 return; | 518 return; |
| 519 notifyObservers(&rect); | 519 notifyObservers(&rect); |
| 520 } | 520 } |
| 521 | 521 |
| 522 void ImageResource::onePartInMultipartReceived(const ResourceResponse& response) | 522 void ImageResource::onePartInMultipartReceived(const ResourceResponse& response) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 553 if (response().wasFetchedViaServiceWorker()) | 553 if (response().wasFetchedViaServiceWorker()) |
| 554 return response().serviceWorkerResponseType() != WebServiceWorkerRespons
eTypeOpaque; | 554 return response().serviceWorkerResponseType() != WebServiceWorkerRespons
eTypeOpaque; |
| 555 if (!getImage()->currentFrameHasSingleSecurityOrigin()) | 555 if (!getImage()->currentFrameHasSingleSecurityOrigin()) |
| 556 return false; | 556 return false; |
| 557 if (passesAccessControlCheck(securityOrigin)) | 557 if (passesAccessControlCheck(securityOrigin)) |
| 558 return true; | 558 return true; |
| 559 return !securityOrigin->taintsCanvas(response().url()); | 559 return !securityOrigin->taintsCanvas(response().url()); |
| 560 } | 560 } |
| 561 | 561 |
| 562 } // namespace blink | 562 } // namespace blink |
| OLD | NEW |