DescriptionDon't use pageLogicalHeight() to resolve percentage values in subframes
In printing, pageLogicalHeight() is set to zero for all subframes
which makes is a bad candidate for resolving percentages against. For
subframes a better candidate would be the view height, as for
non-printing documents.
The RenderView knows when to layout in printing mode (top-level
document) and when not (subframes), so move
viewLogicalHeightForPercentages() to the RenderView and use its
knowledge to return the view height for subframes in printing to
resolve percentages against.
BUG=370948
R=ojan
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174051
Patch Set 1 #Patch Set 2 : Set a fixed body height to work around rounding issue on mac; also add a title to the test to descr… #
Messages
Total messages: 8 (0 generated)
|