[WK2][EFL] Add policy client to Ewk_View
https://bugs.webkit.org/show_bug.cgi?id=90953

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-12
Reviewed by Kenneth Rohde Christiansen.

Emit new "policy,decision,navigation" and "policy,decision,new,window"
on the Ewk_View when policy decisions should be taken by the client.

A new Ewk_Navigation_Policy_Decision type is introduced to provide
information about the navigation request and make a decision.
By default, the navigation request is accepted.

* PlatformEfl.cmake:
* UIProcess/API/efl/EWebKit2.h:
* UIProcess/API/efl/ewk_navigation_policy_decision.cpp: Added.
(_Ewk_Navigation_Policy_Decision):
(ewk_navigation_policy_decision_free):
(ewk_navigation_policy_navigation_type_get):
(ewk_navigation_policy_mouse_button_get):
(ewk_navigation_policy_modifiers_get):
(ewk_navigation_policy_frame_name_get):
(ewk_navigation_policy_request_get):
(ewk_navigation_policy_decision_accept):
(ewk_navigation_policy_decision_reject):
(ewk_navigation_policy_decision_download):
(ewk_navigation_policy_decision_new):
* UIProcess/API/efl/ewk_navigation_policy_decision.h: Added.
* UIProcess/API/efl/ewk_navigation_policy_decision_private.h: Added.
* UIProcess/API/efl/ewk_private.h: Added.
* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_base_add):
(ewk_view_navigation_policy_decision):
(ewk_view_new_window_policy_decision):
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/ewk_view_policy_client.cpp: Added.
(toEwkView):
(decidePolicyForNavigationAction):
(decidePolicyForNewWindowAction):
(ewk_view_policy_client_attach):
* UIProcess/API/efl/ewk_view_policy_client_private.h: Added.
* UIProcess/API/efl/ewk_view_private.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Typo in path in generate-webkitversion.pl
https://bugs.webkit.org/show_bug.cgi?id=90883

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-07-12
Reviewed by Mark Rowe.

Correct default path to version config file. In practice it wasn't a problem because only the Qt
build system seems to use the script right now and passes the path to the version file as a
command line parameter.

* scripts/generate-webkitversion.pl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Performance issue in FindController::findString
https://bugs.webkit.org/show_bug.cgi?id=78132

Patch by Sergio Villar Senin <svillar@igalia.com> on 2012-07-12
Reviewed by Anders Carlsson.

FindController should not unmark all text matches by default. It
will be done only if the string is not found or if
markAllTextMatches() is called. This will allow clients to look
for the next/previous without having to unmark() + mark() all the
text matches for every single search operation.

* UIProcess/API/gtk/WebKitFindController.cpp:
(webKitFindControllerPerform):
(webkit_find_controller_search_next):
(webkit_find_controller_search_previous):
* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::updateFindUIAfterPageScroll):
(WebKit::FindController::findString):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix GTK+ debug build after r122425.

* WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp:
(webkitSoupCookieJarSqliteNew):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r122184): LocaleMac::currentLocale should use current locale rather than newly create locale object.
https://bugs.webkit.org/show_bug.cgi?id=91057

Reviewed by Kent Tamura.

This patch changes NSLocale object of LocaleMac::m_locale variable to
current NSLocale object rather than newly created NSLocale object from
locale identifier.

No new tests. We don't have way to change system preferences from
test scripts and restoring them. To test this patch, we need to do so.

* platform/text/mac/LocaleMac.h:
(LocaleMac): Added a constructor which takes NSLocale object.
* platform/text/mac/LocaleMac.mm:
(WebCore::LocaleMac::LocaleMac): Added a constructor which takes NSLocale object.
(WebCore::LocaleMac::currentLocale): Changed to construct LocaleMac object from NSLocale object rather than locale identifier.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Skip new failing test introduced in r122399

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Shadow DOM] <video> with <shadow> crashes
https://bugs.webkit.org/show_bug.cgi?id=91055

Reviewed by Kent Tamura.

Source/WebCore:

This is similar to Bug 90480, where an undesired renderer is created by
locating an insertion point on the shadow boundary.

This change adds a guard for such case by cheking whether the
source node of each to-be-created renderer comes from the UA shadow
tree, which is allowed to have a renderer.

Test: fast/dom/shadow/insertion-point-video-crash.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::childShouldCreateRenderer): Added a check.
(WebCore::HTMLMediaElement::mediaControls): Added const.
(WebCore::HTMLMediaElement::hasMediaControls): Added const.
* html/HTMLMediaElement.h:
(HTMLMediaElement):

LayoutTests:

* fast/dom/shadow/insertion-point-video-crash-expected.txt: Added.
* fast/dom/shadow/insertion-point-video-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Added new platform specific expected after r122414.
https://bugs.webkit.org/show_bug.cgi?id=91060.

Patch by Ádám Kallai <kadam@inf.u-szeged.hu> on 2012-07-12

* platform/qt/fast/forms/state-restore-skip-stateless-expected.txt: Added after r122414.

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