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

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

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 #include "config.h" 24 #include "config.h"
25 #include "core/fetch/ImageResource.h" 25 #include "core/fetch/ImageResource.h"
26 26
27 #include "RuntimeEnabledFeatures.h" 27 #include "RuntimeEnabledFeatures.h"
28 #include "core/fetch/ImageResourceClient.h" 28 #include "core/fetch/ImageResourceClient.h"
29 #include "core/fetch/MemoryCache.h" 29 #include "core/fetch/MemoryCache.h"
30 #include "core/fetch/ResourceClient.h" 30 #include "core/fetch/ResourceClient.h"
31 #include "core/fetch/ResourceClientWalker.h" 31 #include "core/fetch/ResourceClientWalker.h"
32 #include "core/fetch/ResourceFetcher.h" 32 #include "core/fetch/ResourceFetcher.h"
33 #include "core/frame/FrameView.h" 33 #include "core/frame/FrameView.h"
34 #include "core/platform/graphics/BitmapImage.h"
35 #include "core/rendering/RenderObject.h" 34 #include "core/rendering/RenderObject.h"
36 #include "core/svg/graphics/SVGImage.h" 35 #include "core/svg/graphics/SVGImage.h"
37 #include "platform/SharedBuffer.h" 36 #include "platform/SharedBuffer.h"
37 #include "platform/graphics/BitmapImage.h"
38 #include "wtf/CurrentTime.h" 38 #include "wtf/CurrentTime.h"
39 #include "wtf/StdLibExtras.h" 39 #include "wtf/StdLibExtras.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 using namespace std; 42 using namespace std;
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 ImageResource::ImageResource(const ResourceRequest& resourceRequest) 46 ImageResource::ImageResource(const ResourceRequest& resourceRequest)
47 : Resource(resourceRequest, Image) 47 : Resource(resourceRequest, Image)
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 bool ImageResource::isAccessAllowed(SecurityOrigin* securityOrigin) 463 bool ImageResource::isAccessAllowed(SecurityOrigin* securityOrigin)
464 { 464 {
465 if (!image()->currentFrameHasSingleSecurityOrigin()) 465 if (!image()->currentFrameHasSingleSecurityOrigin())
466 return false; 466 return false;
467 if (passesAccessControlCheck(securityOrigin)) 467 if (passesAccessControlCheck(securityOrigin))
468 return true; 468 return true;
469 return !securityOrigin->taintsCanvas(response().url()); 469 return !securityOrigin->taintsCanvas(response().url());
470 } 470 }
471 471
472 } // namespace WebCore 472 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698