Bug 1315477 - Add a AsBasicLayerManager() function and use instead of static_casts. r=mattwoodrow

MozReview-Commit-ID: DV6XZBEXw85
This commit is contained in:
Kartikaya Gupta
2016-11-07 11:38:45 -05:00
parent 7a293c406e
commit 37638cacbd
5 changed files with 22 additions and 14 deletions

View File

@@ -1081,7 +1081,7 @@ PuppetWidget::Paint()
if (mTabChild) {
mTabChild->NotifyPainted();
}
} else {
} else if (mozilla::layers::LayersBackend::LAYERS_BASIC == mLayerManager->GetBackendType()) {
RefPtr<gfxContext> ctx = gfxContext::CreateOrNull(mDrawTarget);
if (!ctx) {
gfxDevCrash(LogReason::InvalidContext) << "PuppetWidget context problem " << gfx::hexa(mDrawTarget);