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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 } | 573 } |
574 | 574 |
575 void ImageResource::decodedSizeChangedTo(const blink::Image* image, | 575 void ImageResource::decodedSizeChangedTo(const blink::Image* image, |
576 size_t newSize) { | 576 size_t newSize) { |
577 if (!image || image != m_image) | 577 if (!image || image != m_image) |
578 return; | 578 return; |
579 | 579 |
580 setDecodedSize(newSize); | 580 setDecodedSize(newSize); |
581 } | 581 } |
582 | 582 |
583 void ImageResource::didDraw(const blink::Image* image) {} | |
584 | |
585 bool ImageResource::shouldPauseAnimation(const blink::Image* image) { | 583 bool ImageResource::shouldPauseAnimation(const blink::Image* image) { |
586 if (!image || image != m_image) | 584 if (!image || image != m_image) |
587 return false; | 585 return false; |
588 | 586 |
589 for (auto* observer : m_finishedObservers.asVector()) { | 587 for (auto* observer : m_finishedObservers.asVector()) { |
590 if (m_finishedObservers.contains(observer) && observer->willRenderImage()) | 588 if (m_finishedObservers.contains(observer) && observer->willRenderImage()) |
591 return false; | 589 return false; |
592 } | 590 } |
593 | 591 |
594 for (auto* observer : m_observers.asVector()) { | 592 for (auto* observer : m_observers.asVector()) { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 WebServiceWorkerResponseTypeOpaque; | 718 WebServiceWorkerResponseTypeOpaque; |
721 } | 719 } |
722 if (!getImage()->currentFrameHasSingleSecurityOrigin()) | 720 if (!getImage()->currentFrameHasSingleSecurityOrigin()) |
723 return false; | 721 return false; |
724 if (passesAccessControlCheck(securityOrigin)) | 722 if (passesAccessControlCheck(securityOrigin)) |
725 return true; | 723 return true; |
726 return !securityOrigin->taintsCanvas(response().url()); | 724 return !securityOrigin->taintsCanvas(response().url()); |
727 } | 725 } |
728 | 726 |
729 } // namespace blink | 727 } // namespace blink |
OLD | NEW |