| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index e9cd610cc75d86b134db6dc57df9d4b93e15d515..c1415d0ea24f8ef809c417f15f1551e1dd9e59fb 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1500,14 +1500,12 @@ void WebLocalFrameImpl::increaseMatchCount(int count, int identifier)
|
| {
|
| // This function should only be called on the mainframe.
|
| ASSERT(!parent());
|
| - ASSERT(m_textFinder);
|
| - m_textFinder->increaseMatchCount(identifier, count);
|
| + ensureTextFinder().increaseMatchCount(identifier, count);
|
| }
|
|
|
| void WebLocalFrameImpl::resetMatchCount()
|
| {
|
| - ASSERT(m_textFinder);
|
| - m_textFinder->resetMatchCount();
|
| + ensureTextFinder().resetMatchCount();
|
| }
|
|
|
| void WebLocalFrameImpl::sendOrientationChangeEvent(int orientation)
|
| @@ -1534,8 +1532,7 @@ int WebLocalFrameImpl::findMatchMarkersVersion() const
|
| int WebLocalFrameImpl::selectNearestFindMatch(const WebFloatPoint& point, WebRect* selectionRect)
|
| {
|
| ASSERT(!parent());
|
| - ASSERT(m_textFinder);
|
| - return m_textFinder->selectNearestFindMatch(point, selectionRect);
|
| + return ensureTextFinder().selectNearestFindMatch(point, selectionRect);
|
| }
|
|
|
| WebFloatRect WebLocalFrameImpl::activeFindMatchRect()
|
| @@ -1550,8 +1547,7 @@ WebFloatRect WebLocalFrameImpl::activeFindMatchRect()
|
| void WebLocalFrameImpl::findMatchRects(WebVector<WebFloatRect>& outputRects)
|
| {
|
| ASSERT(!parent());
|
| - ASSERT(m_textFinder);
|
| - m_textFinder->findMatchRects(outputRects);
|
| + ensureTextFinder().findMatchRects(outputRects);
|
| }
|
|
|
| void WebLocalFrameImpl::setTickmarks(const WebVector<WebRect>& tickmarks)
|
|
|