void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect) { if (!m_widget) return; if (!rect.isEmpty()) m_widget->paint(&GraphicsContextBuilder(canvas).context(), rect); }
// WebPageOverlay void WebDevToolsAgentImpl::paintPageOverlay(WebCanvas* canvas) { InspectorController* ic = inspectorController(); if (ic) ic->drawHighlight(GraphicsContextBuilder(canvas).context()); }