mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Bug 990683 - Stop calling DeprecatedGetCurrentAsSurface in nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,...). (Moz2D migration.) r=mattwoodrow
This commit is contained in:
parent
dc18d125ad
commit
8dc6701a08
@ -5346,11 +5346,10 @@ nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,
|
||||
return result;
|
||||
|
||||
mozilla::gfx::IntSize size;
|
||||
nsRefPtr<gfxASurface> surf = container->DeprecatedGetCurrentAsSurface(&size);
|
||||
if (!surf)
|
||||
result.mSourceSurface = container->GetCurrentAsSourceSurface(&size);
|
||||
if (!result.mSourceSurface)
|
||||
return result;
|
||||
|
||||
result.mSourceSurface = gfxPlatform::GetPlatform()->GetSourceSurfaceForSurface(aTarget, surf);
|
||||
result.mCORSUsed = aElement->GetCORSMode() != CORS_NONE;
|
||||
result.mSize = ThebesIntSize(size);
|
||||
result.mPrincipal = principal.forget();
|
||||
|
Loading…
Reference in New Issue
Block a user