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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/html/canvas/CanvasRenderingContext.h" 27 #include "core/html/canvas/CanvasRenderingContext.h"
28 28
29 #include "core/fetch/ImageResource.h" 29 #include "core/fetch/ImageResource.h"
30 #include "core/html/HTMLCanvasElement.h" 30 #include "core/html/HTMLCanvasElement.h"
31 #include "core/html/HTMLImageElement.h" 31 #include "core/html/HTMLImageElement.h"
32 #include "core/html/HTMLVideoElement.h" 32 #include "core/html/HTMLVideoElement.h"
33 #include "core/html/canvas/CanvasPattern.h" 33 #include "core/html/canvas/CanvasPattern.h"
34 #include "weborigin/SecurityOrigin.h" 34 #include "platform/weborigin/SecurityOrigin.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 CanvasRenderingContext::CanvasRenderingContext(HTMLCanvasElement* canvas) 38 CanvasRenderingContext::CanvasRenderingContext(HTMLCanvasElement* canvas)
39 : m_canvas(canvas) 39 : m_canvas(canvas)
40 { 40 {
41 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
42 } 42 }
43 43
44 bool CanvasRenderingContext::wouldTaintOrigin(const CanvasPattern* pattern) 44 bool CanvasRenderingContext::wouldTaintOrigin(const CanvasPattern* pattern)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return false; 100 return false;
101 } 101 }
102 102
103 void CanvasRenderingContext::checkOrigin(const KURL& url) 103 void CanvasRenderingContext::checkOrigin(const KURL& url)
104 { 104 {
105 if (wouldTaintOrigin(url)) 105 if (wouldTaintOrigin(url))
106 canvas()->setOriginTainted(); 106 canvas()->setOriginTainted();
107 } 107 }
108 108
109 } // namespace WebCore 109 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/PublicURLManager.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698