void ewk_paint_context_paint_contents(Ewk_Paint_Context* context, WebCore::FrameView* view, const Eina_Rectangle* area) { EINA_SAFETY_ON_NULL_RETURN(context); EINA_SAFETY_ON_NULL_RETURN(view); EINA_SAFETY_ON_NULL_RETURN(area); WebCore::IntRect paintArea(*area); if (view->isTransparent()) context->graphicContext->clearRect(paintArea); view->paintContents(context->graphicContext.get(), paintArea); #if ENABLE(INSPECTOR) WebCore::Page* page = view->frame()->page(); if (page) { WebCore::InspectorController* controller = page->inspectorController(); if (controller->highlightedNode()) controller->drawHighlight(*context->graphicContext); } #endif }