Don'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

Review URL: https://codereview.chromium.org/273043002

git-svn-id: svn://svn.chromium.org/blink/trunk@174051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed
tree: 722fbb139ba5757f67b59511a9fa2857d81e6ae1
  1. third_party/