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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ImageResource.cpp

Issue 2447623002: Remove ImageObserver::didDraw() (Closed)
Patch Set: Rebawse Created 4 years 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698