Index: Source/web/TextFinder.cpp |
diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp |
index bd62e6746e01e4fb244afc824654df4dc5309755..c6bd4fdb01678f30a32875cc65fd569d97944774 100644 |
--- a/Source/web/TextFinder.cpp |
+++ b/Source/web/TextFinder.cpp |
@@ -626,7 +626,7 @@ int TextFinder::selectFindMatch(unsigned index, WebRect* selectionRect) |
if (!activeMatchBoundingBox.isEmpty()) { |
if (m_activeMatch->firstNode() && m_activeMatch->firstNode()->renderer()) { |
m_activeMatch->firstNode()->renderer()->scrollRectToVisible( |
- activeMatchBoundingBox, ScrollAlignment::alignCenterIfNeeded, ScrollAlignment::alignCenterIfNeeded); |
+ LayoutRect(activeMatchBoundingBox), ScrollAlignment::alignCenterIfNeeded, ScrollAlignment::alignCenterIfNeeded); |
} |
// Zoom to the active match. |