зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
10799fa4e0
Коммит
e9f3adb688
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче