X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Frendering%2FRootInlineBox.cpp;h=1ca91ce2a47836d0dd6e5f2b1bc49d8f2fe5b1d1;hp=f77c9adfc8b00c3328e408a28881bcb6840c1e67;hb=ef361234ac1496656a59151b3eacee12ebc8ce9e;hpb=9f0064a0d72e3f04e19446da766e743b292eed66 diff --git a/Source/WebCore/rendering/RootInlineBox.cpp b/Source/WebCore/rendering/RootInlineBox.cpp index f77c9adfc8b0..1ca91ce2a478 100644 --- a/Source/WebCore/rendering/RootInlineBox.cpp +++ b/Source/WebCore/rendering/RootInlineBox.cpp @@ -185,7 +185,7 @@ void RootInlineBox::addHighlightOverflow() // Highlight acts as a selection inflation. FloatRect rootRect(0, selectionTop(), logicalWidth(), selectionHeight()); - IntRect inflatedRect = enclosingIntRect(page->chrome().client().customHighlightRect(renderer().node(), renderer().style()->highlight(), rootRect)); + IntRect inflatedRect = enclosingIntRect(page->chrome().client().customHighlightRect(renderer().element(), renderer().style()->highlight(), rootRect)); setOverflowFromLogicalRects(inflatedRect, inflatedRect, lineTop(), lineBottom()); } @@ -200,9 +200,9 @@ void RootInlineBox::paintCustomHighlight(PaintInfo& paintInfo, const LayoutPoint // Get the inflated rect so that we can properly hit test. FloatRect rootRect(paintOffset.x() + x(), paintOffset.y() + selectionTop(), logicalWidth(), selectionHeight()); - FloatRect inflatedRect = page->chrome().client().customHighlightRect(renderer().node(), highlightType, rootRect); + FloatRect inflatedRect = page->chrome().client().customHighlightRect(renderer().element(), highlightType, rootRect); if (inflatedRect.intersects(paintInfo.rect)) - page->chrome().client().paintCustomHighlight(renderer().node(), highlightType, rootRect, rootRect, false, true); + page->chrome().client().paintCustomHighlight(renderer().element(), highlightType, rootRect, rootRect, false, true); } #endif