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 FramePainter::paintScrollbars(GraphicsContext& context, const IntRect& rect) { if (frameView().horizontalScrollbar() && !frameView().layerForHorizontalScrollbar()) paintScrollbar(context, *frameView().horizontalScrollbar(), rect); if (frameView().verticalScrollbar() && !frameView().layerForVerticalScrollbar()) paintScrollbar(context, *frameView().verticalScrollbar(), rect); if (frameView().layerForScrollCorner()) return; paintScrollCorner(context, frameView().scrollCornerRect()); }
void FramePainter::paintScrollbars(GraphicsContext* context, const IntRect& rect) { if (m_frameView.horizontalScrollbar() && !m_frameView.layerForHorizontalScrollbar()) paintScrollbar(context, m_frameView.horizontalScrollbar(), rect); if (m_frameView.verticalScrollbar() && !m_frameView.layerForVerticalScrollbar()) paintScrollbar(context, m_frameView.verticalScrollbar(), rect); if (m_frameView.layerForScrollCorner()) return; // FIXME: This is wrong. scroll corners are currently painted in the local space of the scroll corner, // not the space of the frame. Either change scroll corners to paint in the frame's coordinate space, // or adjust for the location of the scroll corner. paintScrollCorner(context, m_frameView.scrollCornerRect()); }