Add a fade transition to services highlights
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / PageOverlayController.cpp
index 4f7b18aaade462a1509c5049d4157176c435281d..eb666b902a43754e100fb905edd777def4a38e93 100644 (file)
@@ -171,6 +171,12 @@ void PageOverlayController::clearPageOverlay(PageOverlay& overlay)
     m_overlayGraphicsLayers.get(&overlay)->setDrawsContent(false);
 }
 
+GraphicsLayer* PageOverlayController::layerForOverlay(PageOverlay& overlay) const
+{
+    ASSERT(m_pageOverlays.contains(&overlay));
+    return m_overlayGraphicsLayers.get(&overlay);
+}
+
 void PageOverlayController::didChangeViewSize()
 {
     for (auto& overlayAndLayer : m_overlayGraphicsLayers) {