Commit 7ead0fb9 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[EFL] Change returned view mode in case of NULL of ewkView.

https://bugs.webkit.org/show_bug.cgi?id=81636

Patch by Krzysztof Czech <k.czech@samsung.com> on 2012-03-22
Reviewed by Eric Seidel.

Function ewk_view_mode_get returns wrong view mode in case of NULL of ewkView.

* ewk/ewk_view.cpp:
(_Ewk_View_Private_Data):
(ewk_view_mode_get):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 82bad543
2012-03-22 Krzysztof Czech <k.czech@samsung.com>
[EFL] Change returned view mode in case of NULL of ewkView.
https://bugs.webkit.org/show_bug.cgi?id=81636
Reviewed by Eric Seidel.
Function ewk_view_mode_get returns wrong view mode in case of NULL of ewkView.
* ewk/ewk_view.cpp:
(_Ewk_View_Private_Data):
(ewk_view_mode_get):
2012-03-22 Hyowon Kim <hw1008.kim@samsung.com>
[EFL] Add PageClientEfl to WebCoreSupport.
......
......@@ -3793,8 +3793,8 @@ Eina_Bool ewk_view_mode_set(Evas_Object* ewkView, Ewk_View_Mode viewMode)
Ewk_View_Mode ewk_view_mode_get(const Evas_Object* ewkView)
{
EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, EWK_VIEW_MODE_WINDOWED);
EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, EWK_VIEW_MODE_WINDOWED);
EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, EWK_VIEW_MODE_INVALID);
EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, EWK_VIEW_MODE_INVALID);
return static_cast<Ewk_View_Mode>(priv->page->viewMode());
}
......
......@@ -2239,7 +2239,8 @@ EAPI Eina_Bool ewk_view_mode_set(Evas_Object *o, Ewk_View_Mode view_mode);
*
* @param o view object to get the view mode
*
* @return enum value of @a Ewk_View_Mode that indicates current view mode
* @return enum value of @a Ewk_View_Mode that indicates current view mode on success or
* EWK_VIEW_MODE_INVALID otherwise
*
* @see ewk_view_mode_set()
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment