Exemple #1
0
double MediaValues::calculateViewportHeight(LocalFrame* frame) {
  ASSERT(frame && frame->view() && frame->document());
  int viewportHeight = frame->view()->layoutSize(IncludeScrollbars).height();
  return adjustDoubleForAbsoluteZoom(
      viewportHeight, frame->document()->layoutViewItem().styleRef());
}
Exemple #2
0
double MediaValues::calculateViewportWidth(LocalFrame* frame) const
{
    ASSERT(frame && frame->view() && frame->document());
    int viewportWidth = frame->view()->layoutSize(IncludeScrollbars).width();
    return adjustDoubleForAbsoluteZoom(viewportWidth, *frame->document()->layoutView());
}