mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1410129 - Restore scoping of RAII class instantation. r=mattwoodrow
MozReview-Commit-ID: 1Eojy6STwfl --HG-- extra : rebase_source : dd85375a1aedf6166477148a90dbc397c1c4366a
This commit is contained in:
parent
84c3a8a672
commit
781a484daa
@ -213,14 +213,15 @@ WebRenderCommandBuilder::CreateWebRenderCommandsFromDisplayList(nsDisplayList* a
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure the scope of ScrollingLayersHelper is maintained
|
{ // ensure the scope of ScrollingLayersHelper is maintained
|
||||||
ScrollingLayersHelper clip(item, aBuilder, aSc, mClipIdCache, apzEnabled);
|
ScrollingLayersHelper clip(item, aBuilder, aSc, mClipIdCache, apzEnabled);
|
||||||
|
|
||||||
// Note: this call to CreateWebRenderCommands can recurse back into
|
// Note: this call to CreateWebRenderCommands can recurse back into
|
||||||
// this function if the |item| is a wrapper for a sublist.
|
// this function if the |item| is a wrapper for a sublist.
|
||||||
if (!item->CreateWebRenderCommands(aBuilder, aResources, aSc, mManager,
|
if (!item->CreateWebRenderCommands(aBuilder, aResources, aSc, mManager,
|
||||||
aDisplayListBuilder)) {
|
aDisplayListBuilder)) {
|
||||||
PushItemAsImage(item, aBuilder, aResources, aSc, aDisplayListBuilder);
|
PushItemAsImage(item, aBuilder, aResources, aSc, aDisplayListBuilder);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apzEnabled) {
|
if (apzEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user