Chromium Code Reviews| Index: Source/core/html/HTMLVideoElement.cpp |
| diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp |
| index 6cc6ced7e14dd090793419470cf1a2d6bda3dba3..b1543f3c5e21e039a4a5fcffd8364de873d91674 100644 |
| --- a/Source/core/html/HTMLVideoElement.cpp |
| +++ b/Source/core/html/HTMLVideoElement.cpp |
| @@ -316,7 +316,7 @@ PassRefPtr<Image> HTMLVideoElement::getSourceImageForCanvas(SourceImageMode mode |
| bool HTMLVideoElement::wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigin) const |
| { |
| - return !hasSingleSecurityOrigin() || (!(webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) && destinationSecurityOrigin->taintsCanvas(currentSrc())); |
| + return !canAccessSrcFromOrigin(destinationSecurityOrigin); |
|
ddorwin
2015/02/04 23:56:51
I'm not sure the two uses are equivalent. See earl
|
| } |
| FloatSize HTMLVideoElement::sourceSize() const |