Index: Source/web/TextFinder.cpp |
diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp |
index c6bd4fdb01678f30a32875cc65fd569d97944774..d0675c933898c183ca0de5568d75ff9c0802fcc5 100644 |
--- a/Source/web/TextFinder.cpp |
+++ b/Source/web/TextFinder.cpp |
@@ -624,8 +624,8 @@ int TextFinder::selectFindMatch(unsigned index, WebRect* selectionRect) |
IntRect activeMatchBoundingBox = enclosingIntRect(LayoutObject::absoluteBoundingBoxRectForRange(m_activeMatch.get())); |
if (!activeMatchBoundingBox.isEmpty()) { |
- if (m_activeMatch->firstNode() && m_activeMatch->firstNode()->renderer()) { |
- m_activeMatch->firstNode()->renderer()->scrollRectToVisible( |
+ if (m_activeMatch->firstNode() && m_activeMatch->firstNode()->layoutObject()) { |
+ m_activeMatch->firstNode()->layoutObject()->scrollRectToVisible( |
LayoutRect(activeMatchBoundingBox), ScrollAlignment::alignCenterIfNeeded, ScrollAlignment::alignCenterIfNeeded); |
} |