Bug 1090220 - Initialize some variables with sane values in case they don't get populated later. r=sewardj

This commit is contained in:
Kartikaya Gupta 2014-10-28 08:06:00 -04:00
parent 07ada35a47
commit 62c76c0bd1

View File

@ -304,8 +304,8 @@ TabChildBase::HandlePossibleViewportChange(const ScreenIntSize& aOldScreenSize)
nsCOMPtr<nsIDOMWindowUtils> utils(GetDOMWindowUtils());
nsViewportInfo viewportInfo = nsContentUtils::GetViewportInfo(document, mInnerSize);
uint32_t presShellId;
mozilla::layers::FrameMetrics::ViewID viewId;
uint32_t presShellId = 0;
mozilla::layers::FrameMetrics::ViewID viewId = FrameMetrics::NULL_SCROLL_ID;
bool scrollIdentifiersValid = APZCCallbackHelper::GetOrCreateScrollIdentifiers(
document->GetDocumentElement(), &presShellId, &viewId);
if (scrollIdentifiersValid) {