DescriptionPrintContext::pageProperty() shouldn't use 0 as page height.
This function only seems to be used by window.internals,
although WebFrame also provides a method that ends up there. It's only
partially implemented, though. It recognizes "margin-left", but not
"margin-right", for instance. Anyway, use a better page height than 0.
Also no need to explicitly lay out the document here, since
PrintContext::begin() does it for us.
With this change, we no longer need to perform a page height sanity check in
LayoutView::layout() before creating a ViewFragmentationContext.
R=leviw@chromium.org
Committed: https://crrev.com/b2d98f544795e9e7d0e9a8253073747097a1abfa
Cr-Commit-Position: refs/heads/master@{#364333}
Patch Set 1 #
Total comments: 2
Patch Set 2 : code review #
Total comments: 2
Patch Set 3 : No need to call updateLayout() manually. PrintContext::begin() does it for us. #
Messages
Total messages: 15 (6 generated)
|