зеркало из https://github.com/mozilla/pjs.git
Bug 635014: Don't draw a checkerboard behind undefined <browser remote> content in sync mode. r=tn a=a
This commit is contained in:
Родитель
211222be70
Коммит
c43a8d318e
|
@ -332,6 +332,7 @@ nsFrameLoader::nsFrameLoader(nsIContent *aOwner, PRBool aNetworkCreated)
|
|||
, mCurrentRemoteFrame(nsnull)
|
||||
, mRemoteBrowser(nsnull)
|
||||
#endif
|
||||
, mRenderMode(RENDER_MODE_DEFAULT)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -642,12 +642,14 @@ RenderFrameParent::BuildLayer(nsDisplayListBuilder* aBuilder,
|
|||
TransformShadowTree(aBuilder, mFrameLoader, aFrame, shadowRoot);
|
||||
mContainer->SetClipRect(nsnull);
|
||||
|
||||
const nsContentView* view = GetContentView(FrameMetrics::ROOT_SCROLL_ID);
|
||||
BuildBackgroundPatternFor(mContainer,
|
||||
shadowRoot,
|
||||
shadowRoot->GetFrameMetrics(),
|
||||
view->GetViewConfig(),
|
||||
aManager, aFrame, aBuilder);
|
||||
if (mFrameLoader->AsyncScrollEnabled()) {
|
||||
const nsContentView* view = GetContentView(FrameMetrics::ROOT_SCROLL_ID);
|
||||
BuildBackgroundPatternFor(mContainer,
|
||||
shadowRoot,
|
||||
shadowRoot->GetFrameMetrics(),
|
||||
view->GetViewConfig(),
|
||||
aManager, aFrame, aBuilder);
|
||||
}
|
||||
mContainer->SetVisibleRegion(aVisibleRect);
|
||||
|
||||
return nsRefPtr<Layer>(mContainer).forget();
|
||||
|
|
Загрузка…
Ссылка в новой задаче