Chromium Code Reviews| Index: Source/web/TextFinder.cpp |
| diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp |
| index b280418d0399d52adcaf9a8c97f6917700c3fce5..7c05a16c3e90ac061dd80e9c8adf7db2fea30b98 100644 |
| --- a/Source/web/TextFinder.cpp |
| +++ b/Source/web/TextFinder.cpp |
| @@ -155,9 +155,9 @@ bool TextFinder::find(int identifier, const WebString& searchText, const WebFind |
| return false; |
| } |
| -#if OS(ANDROID) |
| - ownerFrame().viewImpl()->zoomToFindInPageRect(ownerFrame().frameView()->contentsToRootFrame(enclosingIntRect(LayoutObject::absoluteBoundingBoxRectForRange(m_activeMatch.get())))); |
| -#endif |
| + if (ownerFrame().frame()->document()->textAutosizer()->pageNeedsAutosizing()) { |
|
skobes
2015/07/14 17:11:27
Can you add a comment explaining why the check is
|
| + ownerFrame().viewImpl()->zoomToFindInPageRect(ownerFrame().frameView()->contentsToRootFrame(enclosingIntRect(LayoutObject::absoluteBoundingBoxRectForRange(m_activeMatch.get())))); |
| + } |
| setMarkerActive(m_activeMatch.get(), true); |
| WebLocalFrameImpl* oldActiveFrame = mainFrameImpl->ensureTextFinder().m_currentActiveMatchFrame; |