Changeset 167741 in webkit
- Timestamp:
- Apr 23, 2014 8:43:47 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167735 r167741 1 2014-04-23 Andreas Kling <akling@apple.com> 2 3 Canvas cache of clean URLs can grow without bounds. 4 <https://webkit.org/b/132091> 5 <rdar://problem/16695665> 6 7 Remove a silly "optimization" that kept a cache of clean URLs 8 that can be drawn into a canvas without tainting it, all to avoid 9 the "expensive" checks to determine whether it would taint. 10 11 Reviewed by Benjamin Poulain. 12 13 * html/canvas/CanvasRenderingContext.cpp: 14 (WebCore::CanvasRenderingContext::wouldTaintOrigin): 15 * html/canvas/CanvasRenderingContext.h: 16 1 17 2014-04-23 Benjamin Poulain <bpoulain@apple.com> 2 18 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext.cpp
r165676 r167741 93 93 bool CanvasRenderingContext::wouldTaintOrigin(const URL& url) 94 94 { 95 if (!canvas()->originClean() || m_cleanURLs.contains(url.string()))95 if (!canvas()->originClean()) 96 96 return false; 97 97 … … 102 102 return false; 103 103 104 m_cleanURLs.add(url.string());105 104 return false; 106 105 } -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext.h
r165676 r167741 76 76 private: 77 77 HTMLCanvasElement* m_canvas; 78 HashSet<String> m_cleanURLs;79 78 }; 80 79
Note: See TracChangeset
for help on using the changeset viewer.