The Web Inspector code for highlighting DOM elements uses InspectorController::drawHighlight(GraphicsContext&) to draw its highlights. The Chromium port with https://bugs.webkit.org/show_bug.cgi?id=62149 updated how they draw the highlight so that it will properly appear on Accelerated Compositing surfaces. This approach is something that could be used by the BlackBerry port as well as others and we should consider moving some of the code in the landed patch into WebCore.