Changeset 162182 in webkit


Ignore:
Timestamp:
Jan 16, 2014 9:27:13 PM (10 years ago)
Author:
eunmi15.lee@samsung.com
Message:

[EFL][WK2] EwkView can not be shown without re-sizing once it is hidden.
https://bugs.webkit.org/show_bug.cgi?id=127084

Reviewed by Gyuyoung Kim.

Visibility of EwkView can not be controlled by evas_object_show/hide
because EwkView can be shown only if re-sizing is requested, so modify
codes to show EwkView directly if we do not wait for re-sizing.
Additionally, we have to set default value of m_pendingSurfaceResize
to true for accelerated mode to prevent to show black empty view for
the first request to show.

  • UIProcess/API/efl/EwkView.cpp:

(EwkView::EwkView):
(EwkView::handleEvasObjectShow):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162177 r162182  
     12014-01-16  Eunmi Lee  <eunmi15.lee@samsung.com>
     2
     3        [EFL][WK2] EwkView can not be shown without re-sizing once it is hidden.
     4        https://bugs.webkit.org/show_bug.cgi?id=127084
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Visibility of EwkView can not be controlled by evas_object_show/hide
     9        because EwkView can be shown only if re-sizing is requested, so modify
     10        codes to show EwkView directly if we do not wait for re-sizing.
     11        Additionally, we have to set default value of m_pendingSurfaceResize
     12        to true for accelerated mode to prevent to show black empty view for
     13        the first request to show.
     14
     15        * UIProcess/API/efl/EwkView.cpp:
     16        (EwkView::EwkView):
     17        (EwkView::handleEvasObjectShow):
     18
    1192014-01-16  Andy Estes  <aestes@apple.com>
    220
  • trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp

    r162111 r162182  
    257257    , m_context(EwkContext::findOrCreateWrapper(WKPageGetContext(wkPage())))
    258258    , m_pageGroup(EwkPageGroup::findOrCreateWrapper(WKPageGetPageGroup(wkPage())))
    259 #if USE(ACCELERATED_COMPOSITING)
    260     , m_pendingSurfaceResize(false)
    261 #endif
    262259    , m_pageLoadClient(std::make_unique<PageLoadClientEfl>(this))
    263260    , m_pagePolicyClient(std::make_unique<PagePolicyClientEfl>(this))
     
    301298        m_isAccelerated = false;
    302299    }
     300
     301    m_pendingSurfaceResize = m_isAccelerated;
    303302#endif
    304303    WKViewInitialize(wkView());
     
    12191218    ASSERT(smartData);
    12201219
    1221     if (!toEwkView(smartData)->m_isAccelerated)
     1220#if USE(ACCELERATED_COMPOSITING)
     1221    if (!toEwkView(smartData)->m_pendingSurfaceResize)
     1222#endif
    12221223        showEvasObjectsIfNeeded(smartData);
    12231224}
Note: See TracChangeset for help on using the changeset viewer.