Bug 1319318: When resolving a video/audio frame's shrinkwrapped BSize from controls, check whether controls are orthogonal when reading its size. r=mats

MozReview-Commit-ID: 9kH7rLF66zd

--HG--
extra : rebase_source : fb0fde2152a6615630217d2504b97f05f69572a8
This commit is contained in:
Daniel Holbert 2016-12-08 09:20:25 -10:00
Родитель 10799fa4e0
Коммит e9f3adb688
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -377,7 +377,9 @@ nsVideoFrame::Reflow(nsPresContext* aPresContext,
borderPadding.left, borderPadding.top, 0, aStatus);
if (child->GetContent() == mVideoControls && isBSizeShrinkWrapping) {
contentBoxBSize = kidDesiredSize.BSize(myWM);
// Resolve our own BSize based on the controls' size in the same axis.
contentBoxBSize = myWM.IsOrthogonalTo(wm) ?
kidDesiredSize.ISize(wm) : kidDesiredSize.BSize(wm);
}
FinishReflowChild(child, aPresContext,