Changeset 121015 in webkit


Ignore:
Timestamp:
Jun 22, 2012 2:54:28 AM (12 years ago)
Author:
sergio@webkit.org
Message:

[WK2] FindController::hideFindUI should unmark highlighted text matches
https://bugs.webkit.org/show_bug.cgi?id=77747

Reviewed by Carlos Garcia Campos.

Unmark all text matches whenever FindController::hideFindUI is
called to allow callers using the ShowHighlight find option to
remove highlighting.

This patch enables a unit test for the WebKitFindController
previously guarded by a #if(0) after r109222.

  • UIProcess/API/gtk/tests/TestWebKitFindController.cpp:

(testFindControllerHide):

  • WebProcess/WebPage/FindController.cpp:

(WebKit::FindController::hideFindUI):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r120963 r121015  
     12012-06-22  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [WK2] FindController::hideFindUI should unmark highlighted text matches
     4        https://bugs.webkit.org/show_bug.cgi?id=77747
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Unmark all text matches whenever FindController::hideFindUI is
     9        called to allow callers using the ShowHighlight find option to
     10        remove highlighting.
     11
     12        This patch enables a unit test for the WebKitFindController
     13        previously guarded by a #if(0) after r109222.
     14
     15        * UIProcess/API/gtk/tests/TestWebKitFindController.cpp:
     16        (testFindControllerHide):
     17        * WebProcess/WebPage/FindController.cpp:
     18        (WebKit::FindController::hideFindUI):
     19
    1202012-06-21  Christophe Dumez  <christophe.dumez@intel.com>
    221
  • trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitFindController.cpp

    r109228 r121015  
    325325    g_assert(!gdkPixbufEqual(originalPixbuf.get(), highlightPixbuf.get()));
    326326
    327 #if (0)
    328     // Requires http://webkit.org/b/77747 to be fixed
    329327    WebKitFindController* findController = webkit_web_view_get_find_controller(test->m_webView);
    330328    webkit_find_controller_search_finish(findController);
     
    335333    g_assert(unhighlightPixbuf);
    336334    g_assert(gdkPixbufEqual(originalPixbuf.get(), unhighlightPixbuf.get()));
    337 #endif
    338335}
    339336
  • trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp

    r117777 r121015  
    165165        m_webPage->uninstallPageOverlay(m_findPageOverlay, false);
    166166
     167    m_webPage->corePage()->unmarkAllTextMatches();
    167168    hideFindIndicator();
    168169}
Note: See TracChangeset for help on using the changeset viewer.