mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
10799fa4e0
commit
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,
|
||||
|
Loading…
Reference in New Issue
Block a user