bool ScrollableArea::hasLayerForScrollCorner() const { #if USE(ACCELERATED_COMPOSITING) return layerForScrollCorner(); #else return false; #endif }
void ScrollableArea::invalidateScrollCorner(const IntRect& rect) { if (GraphicsLayer* graphicsLayer = layerForScrollCorner()) { graphicsLayer->setNeedsDisplay(); return; } invalidateScrollCornerRect(rect); }
void PaintLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase, const IntRect& interestRect) const { if (graphicsLayer == layerForHorizontalScrollbar()) paintScrollbar(m_layoutView.frameView()->horizontalScrollbar(), context, interestRect); else if (graphicsLayer == layerForVerticalScrollbar()) paintScrollbar(m_layoutView.frameView()->verticalScrollbar(), context, interestRect); else if (graphicsLayer == layerForScrollCorner()) FramePainter(*m_layoutView.frameView()).paintScrollCorner(context, interestRect); }
void ScrollableArea::invalidateScrollCorner(const IntRect& rect) { #if USE(ACCELERATED_COMPOSITING) if (GraphicsLayer* graphicsLayer = layerForScrollCorner()) { graphicsLayer->setNeedsDisplay(); return; } #endif invalidateScrollCornerRect(rect); }
bool ScrollableArea::hasLayerForScrollCorner() const { return layerForScrollCorner(); }