Changeset 95767 in webkit


Ignore:
Timestamp:
Sep 22, 2011 5:43:07 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Use ewk_view to navigate in history instead of ewk_history.
https://bugs.webkit.org/show_bug.cgi?id=68455

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-09-22
Reviewed by Antonio Gomes.

BackForwardItem::invoke() was using ewk_history functions to navigate
in history; however, this will only call WebCore::BackForwardListImpl
and not move between pages at all. We now call ewk_view_navigate and
its siblings to make sure the navigation actually happens.

This should make tests like fast/dom/navigation-type-back-forward.html
stop timing out.

  • DumpRenderTree/efl/WorkQueueItemEfl.cpp:

(BackForwardItem::invoke):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95766 r95767  
     12011-09-22  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [EFL] Use ewk_view to navigate in history instead of ewk_history.
     4        https://bugs.webkit.org/show_bug.cgi?id=68455
     5
     6        Reviewed by Antonio Gomes.
     7
     8        BackForwardItem::invoke() was using ewk_history functions to navigate
     9        in history; however, this will only call WebCore::BackForwardListImpl
     10        and not move between pages at all. We now call ewk_view_navigate and
     11        its siblings to make sure the navigation actually happens.
     12
     13        This should make tests like fast/dom/navigation-type-back-forward.html
     14        stop timing out.
     15
     16        * DumpRenderTree/efl/WorkQueueItemEfl.cpp:
     17        (BackForwardItem::invoke):
     18
    1192011-09-22  Dean Jackson  <dino@apple.com>
    220
  • trunk/Tools/DumpRenderTree/efl/WorkQueueItemEfl.cpp

    r91898 r95767  
    2424
    2525#include "DumpRenderTree.h"
     26#include "DumpRenderTreeChrome.h"
    2627
    2728#include <EWebKit.h>
     
    6869bool BackForwardItem::invoke() const
    6970{
    70     Ewk_History* history = ewk_view_history_get(browser);
    71 
    7271    if (m_howFar == 1)
    73         ewk_history_forward(history);
     72        ewk_view_forward(browser->mainView());
    7473    else if (m_howFar == -1)
    75         ewk_history_back(history);
    76     else {
    77         const Ewk_History_Item* item = ewk_history_history_item_nth_get(history, m_howFar);
    78         ewk_history_history_item_set(history, item);
    79     }
     74        ewk_view_back(browser->mainView());
     75    else
     76        ewk_view_navigate(browser->mainView(), m_howFar);
    8077
    8178    return true;
Note: See TracChangeset for help on using the changeset viewer.