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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 } | 474 } |
475 | 475 |
476 void ImageResource::decodedSizeChangedTo(const blink::Image* image, | 476 void ImageResource::decodedSizeChangedTo(const blink::Image* image, |
477 size_t newSize) { | 477 size_t newSize) { |
478 if (!image || image != m_image) | 478 if (!image || image != m_image) |
479 return; | 479 return; |
480 | 480 |
481 setDecodedSize(newSize); | 481 setDecodedSize(newSize); |
482 } | 482 } |
483 | 483 |
484 void ImageResource::didDraw(const blink::Image* image) {} | |
485 | |
486 bool ImageResource::shouldPauseAnimation(const blink::Image* image) { | 484 bool ImageResource::shouldPauseAnimation(const blink::Image* image) { |
487 if (!image || image != m_image) | 485 if (!image || image != m_image) |
488 return false; | 486 return false; |
489 | 487 |
490 for (auto* observer : m_finishedObservers.asVector()) { | 488 for (auto* observer : m_finishedObservers.asVector()) { |
491 if (m_finishedObservers.contains(observer) && observer->willRenderImage()) | 489 if (m_finishedObservers.contains(observer) && observer->willRenderImage()) |
492 return false; | 490 return false; |
493 } | 491 } |
494 | 492 |
495 for (auto* observer : m_observers.asVector()) { | 493 for (auto* observer : m_observers.asVector()) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 WebServiceWorkerResponseTypeOpaque; | 604 WebServiceWorkerResponseTypeOpaque; |
607 } | 605 } |
608 if (!getImage()->currentFrameHasSingleSecurityOrigin()) | 606 if (!getImage()->currentFrameHasSingleSecurityOrigin()) |
609 return false; | 607 return false; |
610 if (passesAccessControlCheck(securityOrigin)) | 608 if (passesAccessControlCheck(securityOrigin)) |
611 return true; | 609 return true; |
612 return !securityOrigin->taintsCanvas(response().url()); | 610 return !securityOrigin->taintsCanvas(response().url()); |
613 } | 611 } |
614 | 612 |
615 } // namespace blink | 613 } // namespace blink |
OLD | NEW |