Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[layout] Perform replaced aspect-ratio calculation in LayoutUnits.
See bug for more detailed information. Basically the site in the bug had images all with an aspect ratio of 1/1. With browser zoom, we hit a situation where the width != height due to a loss of precision in the conversion from: LayoutUnit -> float -> LayoutUnit. Resulting in a LayoutUnit(1) difference in the width and height. This patch changes the aspect-ratio calculation to all be in LayoutUnits this means we don't have the loss of precision when converting to/from floats. Bug: 1052370 Change-Id: Ic242c224fec17eeec8f1469c0a6c1fe2ed85c4d2
- Loading branch information