RESOLVED FIXED Bug 116657
[EFL][WK2] Use WK2 C API in ewk_view_pagination_mode_set|get
https://bugs.webkit.org/show_bug.cgi?id=116657
Summary [EFL][WK2] Use WK2 C API in ewk_view_pagination_mode_set|get
Gyuyoung Kim
Reported 2013-05-23 03:49:24 PDT
WKPageGet|SetPaginationMode APIs appear on WK2 C APIs. So, we need to use them for ewk_view_pagination_mode_set|get.
Attachments
Patch (2.22 KB, patch)
2013-05-23 03:57 PDT, Gyuyoung Kim
no flags
Patch (3.35 KB, patch)
2013-05-23 04:35 PDT, Gyuyoung Kim
no flags
Patch (3.61 KB, patch)
2013-05-23 04:43 PDT, Gyuyoung Kim
no flags
Patch (3.57 KB, patch)
2013-05-23 04:45 PDT, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 2013-05-23 03:57:23 PDT
Chris Dumez
Comment 2 2013-05-23 04:04:49 PDT
Comment on attachment 202659 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202659&action=review > Source/WebKit2/ChangeLog:8 > + WKPageGet|SetPaginationMode APIs appear on WK2 C APIs. So, we need to use them for "appear on" -> "is present in" > Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:511 > + WKPageSetPaginationMode(impl->wkPage(), static_cast<WebCore::Pagination::Mode>(mode)); This should really be casted to a WKPaginationMode, not a WebCore::Pagination::Mode. The COMPILE_ASSERT_MATCHING_ENUM() above need to be updated or we need a static inline function to convert one enum into another. Can you check if we can get rid of the "using namespace WebCore;" and maybe a few WebCore includes?
Gyuyoung Kim
Comment 3 2013-05-23 04:35:53 PDT
Gyuyoung Kim
Comment 4 2013-05-23 04:37:40 PDT
(In reply to comment #2) > This should really be casted to a WKPaginationMode, not a WebCore::Pagination::Mode. The COMPILE_ASSERT_MATCHING_ENUM() above need to be updated or we need a static inline function to convert one enum into another. Can you check if we can get rid of the "using namespace WebCore;" and maybe a few WebCore includes? Nice catch !! I missed it. I prefer to update COMPILE_ASSERT_MATCHING_ENUM() using WKPaginationMode.
Gyuyoung Kim
Comment 5 2013-05-23 04:43:13 PDT
Gyuyoung Kim
Comment 6 2013-05-23 04:44:20 PDT
Remove "using namespace WebCore;" as well. Thanks.
Gyuyoung Kim
Comment 7 2013-05-23 04:45:55 PDT
Chris Dumez
Comment 8 2013-05-23 04:50:06 PDT
Comment on attachment 202663 [details] Patch Nice, r=me.
WebKit Commit Bot
Comment 9 2013-05-23 05:29:43 PDT
Comment on attachment 202663 [details] Patch Clearing flags on attachment: 202663 Committed r150581: <http://trac.webkit.org/changeset/150581>
WebKit Commit Bot
Comment 10 2013-05-23 05:29:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.