Bug 1283176 - Dump XMost and YMost values instead of width and height for sticky layers. r=nical

MozReview-Commit-ID: C9fJA03RamJ

--HG--
extra : rebase_source : a6d1c9cef47589642e6ca75b97c0619e76e6c0ab
This commit is contained in:
Kartikaya Gupta 2016-06-29 12:15:23 -04:00
parent fbd578cfcf
commit 26e7e639be

View File

@ -1982,12 +1982,12 @@ Layer::PrintInfo(std::stringstream& aStream, const char* aPrefix)
ToString(anchor).c_str()).get();
}
if (GetIsStickyPosition()) {
aStream << nsPrintfCString(" [isStickyPosition scrollId=%d outer=%f,%f %fx%f "
"inner=%f,%f %fx%f]", mStickyPositionData->mScrollId,
aStream << nsPrintfCString(" [isStickyPosition scrollId=%d outer=(%.3f,%.3f)-(%.3f,%.3f) "
"inner=(%.3f,%.3f)-(%.3f,%.3f)]", mStickyPositionData->mScrollId,
mStickyPositionData->mOuter.x, mStickyPositionData->mOuter.y,
mStickyPositionData->mOuter.width, mStickyPositionData->mOuter.height,
mStickyPositionData->mOuter.XMost(), mStickyPositionData->mOuter.YMost(),
mStickyPositionData->mInner.x, mStickyPositionData->mInner.y,
mStickyPositionData->mInner.width, mStickyPositionData->mInner.height).get();
mStickyPositionData->mInner.XMost(), mStickyPositionData->mInner.YMost()).get();
}
if (mMaskLayer) {
aStream << nsPrintfCString(" [mMaskLayer=%p]", mMaskLayer.get()).get();