DescriptionFixing two layout tests on Android broken by enabling virtual-viewport
The svg test turned out to simply need a rebaseline as the scrollbars should
no longer show up in layout tests.
The autoresize test was off by 1 pixel. This was happening because in
virtual viewport mode we size the main FrameView's width to the content
size and the height by the aspect ratio. This meant that the height would
have some tiny error in some aspect ratios which would get blown up to a
full pixel when we returned an expandedIntSize in
PageScaleConstraintsSet::mainFrameSize. This is fixed by explicitly setting
the FrameView size equal to the viewport size if the content width matches
the viewport width.
BUG=428189
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184840
Patch Set 1 #Patch Set 2 : Use viewportHeight if contentWidth == viewportWidth #
Messages
Total messages: 9 (2 generated)
|