diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index f8748dcfcc16..e39cc2cd0b1b 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -635,8 +635,8 @@ class nsDisplayVideo : public nsPaintedDisplayItem { static_cast(destGFXRect.Height())); // scaleHint is set regardless of rotation, so swap w/h if needed. SwapScaleWidthHeightForRotation(scaleToSize, rotationDeg); - transform.PreScale(scaleToSize.width / size.Width(), - scaleToSize.height / size.Height()); + transform.PreScale(scaleToSize.width / double(size.Width()), + scaleToSize.height / double(size.Height())); gfxContextMatrixAutoSaveRestore saveMatrix(aCtx); aCtx->SetMatrix( diff --git a/layout/reftests/bugs/1727172-1-ref.html b/layout/reftests/bugs/1727172-1-ref.html new file mode 100644 index 000000000000..d806d8a6e53a --- /dev/null +++ b/layout/reftests/bugs/1727172-1-ref.html @@ -0,0 +1,6 @@ + + + +
+ + diff --git a/layout/reftests/bugs/1727172-1.xhtml b/layout/reftests/bugs/1727172-1.xhtml new file mode 100644 index 000000000000..c67da3c570a3 --- /dev/null +++ b/layout/reftests/bugs/1727172-1.xhtml @@ -0,0 +1,14 @@ + + + + + + + + + + + + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 56507aaa9b00..cb140fe8ac29 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -2102,3 +2102,4 @@ fuzzy(0-2,0-96600) == 1648282-1b.html 1648282-1-ref.html == 1686729-1.html 1686729-1-ref.html != chrome://reftest/content/bugs/1688004.xhtml about:blank skip-if(!appleSilicon) != 1721223-1.html 1721223-1-notref.html # Big Sur required for updated system font; OSX value is clamped to 10.15 +skip-if(Android) == 1727172-1.xhtml 1727172-1-ref.html