[Qt] platform/qt/editing/execCommand tests update after the font change.
https://bugs.webkit.org/show_bug.cgi?id=91246.

Unreviewed rebaseline.

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

* platform/qt-5.0-wk1/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt/editing/execCommand/4580583-1-expected.png:
* platform/qt/editing/execCommand/4580583-1-expected.txt:
* platform/qt/editing/execCommand/4580583-2-expected.png:
* platform/qt/editing/execCommand/4580583-2-expected.txt:
* platform/qt/editing/execCommand/4641880-1-expected.png:
* platform/qt/editing/execCommand/4641880-1-expected.txt:
* platform/qt/editing/execCommand/4641880-2-expected.png:
* platform/qt/editing/execCommand/4641880-2-expected.txt:
* platform/qt/editing/execCommand/4747450-expected.png:
* platform/qt/editing/execCommand/4747450-expected.txt:
* platform/qt/editing/execCommand/4916402-expected.png:
* platform/qt/editing/execCommand/4916402-expected.txt:
* platform/qt/editing/execCommand/4916541-expected.png:
* platform/qt/editing/execCommand/4916541-expected.txt:
* platform/qt/editing/execCommand/4924441-expected.png:
* platform/qt/editing/execCommand/4924441-expected.txt:
* platform/qt/editing/execCommand/5080333-1-expected.png:
* platform/qt/editing/execCommand/5080333-1-expected.txt:
* platform/qt/editing/execCommand/5080333-2-expected.png:
* platform/qt/editing/execCommand/5080333-2-expected.txt:
* platform/qt/editing/execCommand/5136770-expected.png:
* platform/qt/editing/execCommand/5136770-expected.txt:
* platform/qt/editing/execCommand/5138441-expected.png:
* platform/qt/editing/execCommand/5138441-expected.txt:
* platform/qt/editing/execCommand/5142012-1-expected.png:
* platform/qt/editing/execCommand/5142012-1-expected.txt:
* platform/qt/editing/execCommand/5142012-2-expected.png:
* platform/qt/editing/execCommand/5142012-2-expected.txt:
* platform/qt/editing/execCommand/5190926-expected.png:
* platform/qt/editing/execCommand/5190926-expected.txt:
* platform/qt/editing/execCommand/5481523-expected.png:
* platform/qt/editing/execCommand/5481523-expected.txt:
* platform/qt/editing/execCommand/5482023-expected.png:
* platform/qt/editing/execCommand/5482023-expected.txt:
* platform/qt/editing/execCommand/5569741-expected.png:
* platform/qt/editing/execCommand/5569741-expected.txt:
* platform/qt/editing/execCommand/create-list-with-hr-expected.png:
* platform/qt/editing/execCommand/create-list-with-hr-expected.txt:
* platform/qt/editing/execCommand/find-after-replace-expected.png:
* platform/qt/editing/execCommand/find-after-replace-expected.txt:
* platform/qt/editing/execCommand/findString-2-expected.png:
* platform/qt/editing/execCommand/findString-2-expected.txt:
* platform/qt/editing/execCommand/findString-expected.png:
* platform/qt/editing/execCommand/findString-expected.txt:
* platform/qt/editing/execCommand/format-block-with-trailing-br-expected.png:
* platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt:
* platform/qt/editing/execCommand/indent-empty-root-expected.png:
* platform/qt/editing/execCommand/indent-empty-root-expected.txt:
* platform/qt/editing/execCommand/indent-list-item-expected.png:
* platform/qt/editing/execCommand/indent-list-item-expected.txt:
* platform/qt/editing/execCommand/indent-selection-expected.png:
* platform/qt/editing/execCommand/indent-selection-expected.txt:
* platform/qt/editing/execCommand/insert-list-and-stitch-expected.png:
* platform/qt/editing/execCommand/insert-list-and-stitch-expected.txt:
* platform/qt/editing/execCommand/insertHorizontalRule-expected.png:
* platform/qt/editing/execCommand/insertHorizontalRule-expected.txt:
* platform/qt/editing/execCommand/insertImage-expected.png:
* platform/qt/editing/execCommand/insertImage-expected.txt:
* platform/qt/editing/execCommand/nsresponder-indent-expected.png:
* platform/qt/editing/execCommand/nsresponder-indent-expected.txt:
* platform/qt/editing/execCommand/nsresponder-outdent-expected.png:
* platform/qt/editing/execCommand/nsresponder-outdent-expected.txt:
* platform/qt/editing/execCommand/paste-1-expected.png:
* platform/qt/editing/execCommand/paste-1-expected.txt:
* platform/qt/editing/execCommand/paste-2-expected.png:
* platform/qt/editing/execCommand/paste-2-expected.txt:
* platform/qt/editing/execCommand/print-expected.png:
* platform/qt/editing/execCommand/print-expected.txt:
* platform/qt/editing/execCommand/remove-list-from-range-selection-expected.png:
* platform/qt/editing/execCommand/remove-list-from-range-selection-expected.txt:
* platform/qt/editing/execCommand/remove-list-item-1-expected.png:
* platform/qt/editing/execCommand/remove-list-item-1-expected.txt:
* platform/qt/editing/execCommand/selectAll-expected.png:
* platform/qt/editing/execCommand/selectAll-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Incorrect assertion: Replicas will cause a RenderPass to be removed twice
https://bugs.webkit.org/show_bug.cgi?id=91328

Reviewed by Adrienne Walker.

Source/WebCore:

We asserted that we would never attempt to remove a render pass that had
already been removed. This was incorrect as a surface with a replica has
two quads and both may cause us to attempt its removal. We must handle
this case gracefully.

Test: CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit

* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::CullRenderPassesWithNoQuads::shouldRemoveRenderPass):

Source/WebKit/chromium:

Add replicas to the surfaces in the test.

* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
(WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
(WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
(CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed gardening. Layout Test storage/indexeddb/cursor-update-value-argument-required.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=91403

This test crashes occasionally, not sure how long it has been flaky.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: CodeGeneratorInspector.py: fix output write logic to support incremental build
https://bugs.webkit.org/show_bug.cgi?id=90642

Patch by Peter Rybin <peter.rybin@gmail.com> on 2012-07-16
Reviewed by Yury Semikhatsky.

A small intermediate writer is added. It handles comparing old and new source before actual writing.

* inspector/CodeGeneratorInspector.py:
(flatten_list):
(SmartOutput):
(SmartOutput.__init__):
(SmartOutput.write):
(SmartOutput.close):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Android] remove RenderThemeChromiumAndroid::paintMediaFullscreenButton()
https://bugs.webkit.org/show_bug.cgi?id=91291

Patch by Min Qin <qinmin@chromium.org> on 2012-07-16
Reviewed by Adam Barth.

The recent media control refactoring added paintMediaFullscreenButton() in RenderThemeChromiumSkia.
Since RenderThemeChromiumAndroid inherits from that class, we don't need to redefine this function.
No test needed as this change just removes an unnecessary override.

* rendering/RenderThemeChromiumAndroid.cpp:
* rendering/RenderThemeChromiumAndroid.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Invalid `script-nonce` directives should block script execution.
https://bugs.webkit.org/show_bug.cgi?id=91353

Patch by Mike West <mkwst@chromium.org> on 2012-07-16
Reviewed by Adam Barth.

Source/WebCore:

If the `script-nonce` Content Security Policy directive contains an
invalid value, we should fail loudly, throwing a warning to the console
and denying execution of script on the page. The is in line with the
current state of the experimental CSP 1.1 Editors Draft[1].

[1]: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#script-nonce--experimental

Test: http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPDirectiveList::checkNonceAndReportViolation):
    Check against null rather than empty for early exit, otherwise
    only compare nonces if the stored nonce isn't empty.
(WebCore::CSPDirectiveList::parseScriptNonce):
    Assign the empty string if nonce is invalid.

LayoutTests:

* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-badnonce-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-badnonce.html: Removed.
* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-emptynonce-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-emptynonce.html: Removed.
    Replaced these two tests with the following.
* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/1.1/scriptnonce-invalidnonce.html: Added.
    This tests variously invalid nonces to ensure they block execution.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Make Ewk_Navigation_Policy_Decision ref counted
https://bugs.webkit.org/show_bug.cgi?id=91343

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-16
Reviewed by Antonio Gomes.

Make Ewk_Navigation_Policy_Decision ref counted so that the
client can make navigation policy decisions asynchronously
by ref'ing the Ewk_Navigation_Policy_Decision object passed
with the "policy,*" signals.

* UIProcess/API/efl/ewk_navigation_policy_decision.cpp:
(_Ewk_Navigation_Policy_Decision):
(_Ewk_Navigation_Policy_Decision::_Ewk_Navigation_Policy_Decision):
(_Ewk_Navigation_Policy_Decision::~_Ewk_Navigation_Policy_Decision):
(ewk_navigation_policy_decision_ref):
(ewk_navigation_policy_decision_unref):
* UIProcess/API/efl/ewk_navigation_policy_decision.h:
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/ewk_view_policy_client.cpp:
(decidePolicyForNavigationAction):
(decidePolicyForNewWindowAction):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove setController from BatteryClient
https://bugs.webkit.org/show_bug.cgi?id=90944

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-07-16
Reviewed by Adam Barth.

Source/WebCore:

BatteryClient doesn't need to keep m_controller,
because BatteryController can be accessed using BatteryController::from().
Remove BatteryClient::setController function.

No new tests. Covered by existing tests.

* Modules/battery/BatteryClient.h:
* Modules/battery/BatteryController.cpp:
(WebCore::BatteryController::BatteryController):

Source/WebKit/blackberry:

BatteryClient doesn't need to keep m_controller,
because BatteryController can be accessed using BatteryController::from().
Remove m_controller and Add webPagePrivate to BatteryClientBlackBerry.
And change all m_controller to BatteryController::from.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::init):
* WebCoreSupport/BatteryClientBlackBerry.cpp:
(WebCore::BatteryClientBlackBerry::BatteryClientBlackBerry):
(WebCore::BatteryClientBlackBerry::onLevelChange):
(WebCore::BatteryClientBlackBerry::onChargingChange):
(WebCore::BatteryClientBlackBerry::onChargingTimeChange):
(WebCore::BatteryClientBlackBerry::onDischargingTimeChange):
* WebCoreSupport/BatteryClientBlackBerry.h:
(BatteryClientBlackBerry):

Source/WebKit/chromium:

Remove virtual identifier from setController because setController is removed from WebCore::BatteryClient.
In addition, BatteryController is set to instance of BatteryClientImpl in the constructor of WebViewImpl.

* src/BatteryClientImpl.h:
(BatteryClientImpl):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::WebViewImpl):

Source/WebKit/efl:

BatteryClient doesn't need to keep m_controller,
because BatteryController can be accessed using BatteryController::from().
Remove m_controller and Add ewk view evas object to BatteryClientEfl.
And change all m_controller to BatteryController::from.

* WebCoreSupport/BatteryClientEfl.cpp:
(BatteryClientEfl::BatteryClientEfl):
(BatteryClientEfl::didChangeBatteryStatus):
* WebCoreSupport/BatteryClientEfl.h:
(BatteryClientEfl):
* ewk/ewk_view.cpp:
(_ewk_view_priv_new):

Source/WebKit2:

Remove WebBatteryClient::setController function.

* WebProcess/WebCoreSupport/WebBatteryClient.cpp:
* WebProcess/WebCoreSupport/WebBatteryClient.h:
(WebBatteryClient):

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