Lines Matching +refs:screen +refs:width
314 // 3) Constrains the window rect to within the top and left boundaries of the available screen rect.
315 // 4) Constrains the window rect to within the bottom and right boundaries of the available screen rect.
316 // 5) Translate the window rect coordinates to be within the coordinate space of the screen.
321 FloatRect screen = screenAvailableRect(page->mainFrame().view());
325 ASSERT(std::isfinite(screen.x()));
326 ASSERT(std::isfinite(screen.y()));
327 ASSERT(std::isfinite(screen.width()));
328 ASSERT(std::isfinite(screen.height()));
331 ASSERT(std::isfinite(window.width()));
339 if (!std::isnan(pendingChanges.width()))
340 window.setWidth(pendingChanges.width());
345 window.setWidth(std::min(std::max(minimumSize.width(), window.width()), screen.width()));
346 window.setHeight(std::min(std::max(minimumSize.height(), window.height()), screen.height()));
348 // Constrain the window position within the valid screen area.
349 window.setX(std::max(screen.x(), std::min(window.x(), screen.maxX() - window.width())));
350 window.setY(std::max(screen.y(), std::min(window.y(), screen.maxY() - window.height())));
622 Screen* DOMWindow::screen() const
1221 return static_cast<int>(page->chrome().windowRect().width());
1246 return view->mapFromLayoutToCSSUnits(static_cast<int>(view->unobscuredContentRectIncludingScrollbars().width()));
1593 void DOMWindow::resizeTo(float width, float height) const
1600 FloatSize dest = FloatSize(width, height);