Index: Source/web/LinkHighlight.cpp |
diff --git a/Source/web/LinkHighlight.cpp b/Source/web/LinkHighlight.cpp |
index 9255fb447477b9d7b62b8e40b43347f5c55dc6b6..fbfb13f39aac3adf9474534c654bf27ddb54be68 100644 |
--- a/Source/web/LinkHighlight.cpp |
+++ b/Source/web/LinkHighlight.cpp |
@@ -142,7 +142,7 @@ RenderLayer* LinkHighlight::computeEnclosingCompositingLayer() |
clearGraphicsLayerLinkHighlightPointer(); |
m_currentGraphicsLayer = newGraphicsLayer; |
- m_currentGraphicsLayer->setLinkHighlight(this); |
+ m_currentGraphicsLayer->addLinkHighlight(this); |
} |
return renderLayer; |
@@ -283,7 +283,7 @@ void LinkHighlight::startHighlightAnimationIfNeeded() |
void LinkHighlight::clearGraphicsLayerLinkHighlightPointer() |
{ |
if (m_currentGraphicsLayer) { |
- m_currentGraphicsLayer->setLinkHighlight(0); |
+ m_currentGraphicsLayer->removeLinkHighlight(this); |
m_currentGraphicsLayer = 0; |
} |
} |