void ScrollableArea::invalidateScrollCorner() { #if USE(ACCELERATED_COMPOSITING) if (GraphicsLayer* graphicsLayer = layerForScrollCorner()) { graphicsLayer->setNeedsDisplay(); return; } #endif invalidateScrollCornerRect(scrollCornerRect()); }
IntRect RenderLayerScrollableArea::rectForVerticalScrollbar(const IntRect& borderBoxRect) const { if (!m_vBar) return IntRect(); const IntRect& scrollCorner = scrollCornerRect(); return IntRect(verticalScrollbarStart(borderBoxRect.x(), borderBoxRect.maxX()), borderBoxRect.y() + box().borderTop(), m_vBar->width(), borderBoxRect.height() - (box().borderTop() + box().borderBottom()) - scrollCorner.height()); }
IntRect RenderLayerScrollableArea::rectForHorizontalScrollbar(const IntRect& borderBoxRect) const { if (!m_hBar) return IntRect(); const IntRect& scrollCorner = scrollCornerRect(); return IntRect(horizontalScrollbarStart(borderBoxRect.x()), borderBoxRect.maxY() - box().borderBottom() - m_hBar->height(), borderBoxRect.width() - (box().borderLeft() + box().borderRight()) - scrollCorner.width(), m_hBar->height()); }