mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 635014: Don't draw a checkerboard behind undefined <browser remote> content in sync mode. r=tn a=a
This commit is contained in:
parent
c97adad679
commit
07f1b97335
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user