[CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
https://bugs.webkit.org/show_bug.cgi?id=123329

Patch by Mihai Maerean <mmaerean@adobe.com> on 2014-02-04
Reviewed by Mihnea Ovidenie.

Source/WebCore:

The flowthread doesn't have an enclosing element, so when hitting the layer of the
flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
inside the flow thread) we're letting the hit testing continue so it will hit the region.

Tests: fast/regions/assert-hit-test-image.html
       fast/regions/auto-size/region-same-height-as-div-with-inline-child.html

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTestContents):

LayoutTests:

* fast/regions/assert-hit-test-image.html: Added.
* fast/regions/assert-hit-test-image-expected.txt: Added.
* fast/regions/auto-size/region-same-height-as-div-with-inline-child.html: Added.
* fast/regions/auto-size/region-same-height-as-div-with-inline-child-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] ewk_context needs to route InjectedBundle messages correctly.
https://bugs.webkit.org/show_bug.cgi?id=90772

Reviewed by Gyuyoung Kim.

Add APIs to post message to injected bundle and register callback to
get message from injected bundle. When callback is registered,
WKContextInjectedBundleClient is set to get messages from injected bundle.

* UIProcess/API/efl/ewk_context.cpp:
(EwkContext::EwkContext):
(toEwkContext):
(EwkContext::didReceiveMessageFromInjectedBundle):
(EwkContext::didReceiveSynchronousMessageFromInjectedBundle):
(EwkContext::setMessageFromInjectedBundleCallback): register callback to get message from injected bundle.
(EwkContext::processReceivedMessageFromInjectedBundle): process message from injected bundle.
(ewk_context_message_post_to_injected_bundle):
(ewk_context_message_from_injected_bundle_callback_set):
* UIProcess/API/efl/ewk_context.h:
* UIProcess/API/efl/ewk_context_private.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add expectations for two flaky media layout tests
https://bugs.webkit.org/show_bug.cgi?id=127994

Unreviewed EFL gardening.

Patch by Andrzej Badowski <a.badowski@samsung.com> on 2014-02-04

* platform/efl/TestExpectations:

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