mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 1025212 - Initialize 'last' to silence a static analyzer warning. r=dholbert
This commit is contained in:
parent
b11804bb36
commit
f640b8d77d
@ -3509,7 +3509,8 @@ PredictScaleForContent(nsIFrame* aFrame, nsIFrame* aAncestorWithScale,
|
||||
gfxSize
|
||||
FrameLayerBuilder::GetThebesLayerScaleForFrame(nsIFrame* aFrame)
|
||||
{
|
||||
nsIFrame* last;
|
||||
MOZ_ASSERT(aFrame, "need a frame");
|
||||
nsIFrame* last = nullptr;
|
||||
for (nsIFrame* f = aFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
|
||||
last = f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user