[EFL][WK2] Stop using COMPILE_ASSERT_MATCHING_ENUM macros in EFL WebKit2
https://bugs.webkit.org/show_bug.cgi?id=128156

Reviewed by Anders Carlsson.

* UIProcess/API/efl/EwkView.cpp:
(EwkView::requestPopupMenu):
* UIProcess/API/efl/ewk_context.cpp:
(toWKCacheModel):
(EwkContext::setCacheModel):
* UIProcess/API/efl/ewk_cookie_manager.cpp:
(ewk_cookie_manager_persistent_storage_set):
(ewk_cookie_manager_accept_policy_set):
* UIProcess/API/efl/ewk_navigation_policy_decision.cpp:
(toEwkNavigationType):
(toEventMouseButton):
(toEventModifierKeys):
(EwkNavigationPolicyDecision::EwkNavigationPolicyDecision):
(EwkNavigationPolicyDecision::navigationType):
(EwkNavigationPolicyDecision::mouseButton):
(EwkNavigationPolicyDecision::modifiers):
(ewk_navigation_policy_decision_download):
* UIProcess/API/efl/ewk_navigation_policy_decision_private.h:
(EwkNavigationPolicyDecision::create):
* UIProcess/API/efl/ewk_popup_menu_item.cpp:
(EwkPopupMenuItem::type):
(EwkPopupMenuItem::textDirection):
* UIProcess/API/efl/ewk_private.h:
* UIProcess/API/efl/ewk_view.cpp:
(toWKFindOptions):
(ewk_view_text_find):
(toWKPaginationMode):
(toEwkPaginationMode):
(ewk_view_pagination_mode_set):
(ewk_view_pagination_mode_get):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ASSERTION FAILED: !object || (object->isRenderBlock())
https://bugs.webkit.org/show_bug.cgi?id=127687

Reviewed by Ryosuke Niwa.

Source/WebCore:

Currently, when computing the visible position for a point inside a region,
we transform the point into flow thread coordinates and delegate the processing
to the first child of the flow thread which we incorrectly assume is a block.
However, we can specify flow-into also on inline elements which leads to the
assertion.

Instead of delegating the processing to the first child when the flow thread
has children, delegate the computation of the visible position to the
flow thread and avoid any assumption about the nature of the flow thread
first child. If the flow thread does not have any children that should be
rendered by the region, let the region behave like an ordinary element
with no children.

Tests: fast/regions/selection/position-for-point-inline-content-node.html
       fast/regions/selection/selection-ended-in-empty-region.html

* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::positionForPoint):

LayoutTests:

Added test showing that the content of an inline content node, having
flow-into specified, can be properly selected without hitting the assertion.
Also added another test to make sure that when the selection starts
outside an empty region and ends inside the empty region, the region behaves
like an ordinary element with no children.

* fast/regions/selection/position-for-point-inline-content-node-expected.txt: Added.
* fast/regions/selection/position-for-point-inline-content-node.html: Added.
* fast/regions/selection/selection-ended-in-empty-region-expected.txt: Added.
* fast/regions/selection/selection-ended-in-empty-region.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163368 268f45cc-cd09-0410-ab3c-d52691b4dbfc