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()); }
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()); }