Changeset 128409 in webkit


Ignore:
Timestamp:
Sep 12, 2012 11:59:14 PM (12 years ago)
Author:
leandrogracia@chromium.org
Message:

[Chromium] Fix cases where find-in-page doesn't send a final update
https://bugs.webkit.org/show_bug.cgi?id=96402

Fix some issues in the WebKit implementation that prevented to send a final
reportFindInPageMatchCount message.

Reviewed by Adam Barth.

  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::scopeStringMatches):
(WebKit::WebFrameImpl::shouldScopeMatches):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r128403 r128409  
     12012-09-12  Leandro Gracia Gil  <leandrogracia@chromium.org>
     2
     3        [Chromium] Fix cases where find-in-page doesn't send a final update
     4        https://bugs.webkit.org/show_bug.cgi?id=96402
     5
     6        Fix some issues in the WebKit implementation that prevented to send a final
     7        reportFindInPageMatchCount message.
     8
     9        Reviewed by Adam Barth.
     10
     11        * src/WebFrameImpl.cpp:
     12        (WebKit::WebFrameImpl::scopeStringMatches):
     13        (WebKit::WebFrameImpl::shouldScopeMatches):
     14
    1152012-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r128403 r128409  
    17801780                                      bool reset)
    17811781{
    1782     if (!shouldScopeMatches(searchText))
     1782    if (!shouldScopeMatches(searchText)) {
     1783        increaseMatchCount(0, identifier);
    17831784        return;
     1785    }
    17841786
    17851787    WebFrameImpl* mainFrameImpl = viewImpl()->mainFrameImpl();
     
    26132615bool WebFrameImpl::shouldScopeMatches(const String& searchText)
    26142616{
    2615     // Don't scope if we can't find a frame or a view or if the frame is not visible.
     2617    // Don't scope if we can't find a frame or a view.
    26162618    // The user may have closed the tab/application, so abort.
    2617     if (!frame() || !frame()->view() || !hasVisibleContent())
     2619    if (!frame() || !frame()->view())
    26182620        return false;
    26192621
Note: See TracChangeset for help on using the changeset viewer.