-
abarth@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=68743 Reviewed by Oliver Hunt. Prior to this patch, the canvas security checks took as much as 4% of the time on the HTML5GamingTest benchmark: http://craftymind.com/factory/guimark2/HTML5GamingTest.html This patch uses a couple of AtomicStrings and shuffles around the order of the security check to take this down to around 0.1% (which is near the noise floor of what I can measure with my profiler). * html/canvas/CanvasRenderingContext.cpp: (WebCore::CanvasRenderingContext::wouldTaintOrigin): * loader/CrossOriginAccessControl.cpp: (WebCore::passesAccessControlCheck): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0e500df5