[Qt] Enable CSS3 background-position offsets by default.
https://bugs.webkit.org/show_bug.cgi?id=103877

Reviewed by Tor Arne Vestbø.

Tools:

Enable by default CSS3 background-position offsets.

* qmake/mkspecs/features/features.pri:

LayoutTests:

Enable by default the new CSS3 background position offsets therefore we
can unskip the tests.

* platform/qt/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Custom URI schemes stop working on Epiphany using WebKit2 after killing the web process
https://bugs.webkit.org/show_bug.cgi?id=103729

Patch by Joaquim Rocha <jrocha@igalia.com> on 2012-12-03
Reviewed by Carlos Garcia Campos.

When a URI scheme is registered and the WebProcess is killed,
those schemes would not work anymore after the process is relaunched.

This was observed in Epiphany and possibly affects any port that
uses libsoup.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode): Encode the registered URI schemes.
(WebKit::WebProcessCreationParameters::decode): Decode the registered URI schemes.
* Shared/WebProcessCreationParameters.h: Add the urlSchemesRegistered Vector to hold the registered URI schemes.
(WebProcessCreationParameters):
* UIProcess/efl/WebContextEfl.cpp:
(WebKit::WebContext::platformInitializeWebProcess): Assign the parameters.urlSchemesRegistered from the URI schemes
registered in the WebSoupRequestManagerProxy and removed the notImplemented() call.
* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::platformInitializeWebProcess): Assign the parameters.urlSchemesRegistered from the URI schemes
registered in the WebSoupRequestManagerProxy.
* UIProcess/soup/WebSoupRequestManagerProxy.cpp:
(WebKit::WebSoupRequestManagerProxy::registerURIScheme): Add the given scheme to the m_registeredURISchemes Vector.
* UIProcess/soup/WebSoupRequestManagerProxy.h:
(WebKit::WebSoupRequestManagerProxy::registeredURISchemes): Return the m_registeredURISchemes.
(WebSoupRequestManagerProxy): Define the m_registeredURISchemes to hold the schemes that are registered.
* WebProcess/soup/WebProcessSoup.cpp:
(WebKit::WebProcess::platformInitializeWebProcess): Call m_soupRequestManager.registerURIScheme for each URI scheme
found in the parameters.
* WebProcess/soup/WebSoupRequestManager.h: Make registerURIScheme public.
(WebSoupRequestManager):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening, mark tests flaky
https://bugs.webkit.org/show_bug.cgi?id=103884

Unreviewed gardening to mark tests flaky based on flakiness dashboard.

Patch by Jussi Kukkonen <jussi.kukkonen@intel.com> on 2012-12-03

* platform/efl-wk2/TestExpectations:
* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] New resize tests fail
https://bugs.webkit.org/show_bug.cgi?id=103875

Reviewed by Jocelyn Turcotte.

Removes reference to unused viewportSpy, adds clearing the sizeSpy to the init method instead.

* UIProcess/API/qt/tests/qmltests/WebView/tst_resize.qml:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Speech Recognition API: Update SpeechRecognitionEvent to match the specification
https://bugs.webkit.org/show_bug.cgi?id=103407

Reviewed by Kentaro Hara.

Source/WebCore:

Specification for the Speech Recognition API:
http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html

This patch does the following:
o Adds results, and removing result, on SpeechRecognitionEvent
o Renaming SpeechRecognitionResult::final to isFinal
o Removing emma from SpeechRecognitionResult

The emma attribute is supposed to move from SpeechRecognitionResult to the SpeechRecognitionEvent,
but that caused GC issues for unrelated code so it will be added later when properly fixed.

Existing tests updated to test the new API.

* Modules/speech/SpeechRecognition.cpp:
(WebCore::SpeechRecognition::start):
(WebCore::SpeechRecognition::didReceiveResults):
(WebCore):
* Modules/speech/SpeechRecognition.h:
(SpeechRecognition):
* Modules/speech/SpeechRecognitionEvent.cpp:
(WebCore::SpeechRecognitionEvent::createResult):
(WebCore):
(WebCore::SpeechRecognitionEvent::SpeechRecognitionEvent):
(WebCore::SpeechRecognitionEvent::~SpeechRecognitionEvent):
* Modules/speech/SpeechRecognitionEvent.h:
(SpeechRecognitionEventInit):
(SpeechRecognitionEvent):
(WebCore::SpeechRecognitionEvent::resultIndex):
(WebCore::SpeechRecognitionEvent::results):
* Modules/speech/SpeechRecognitionEvent.idl:
* Modules/speech/SpeechRecognitionResult.cpp:
* Modules/speech/SpeechRecognitionResult.h:
(WebCore::SpeechRecognitionResult::isFinal):
(SpeechRecognitionResult):
* Modules/speech/SpeechRecognitionResult.idl:
* WebCore.gypi:
* bindings/js/JSDictionary.cpp:
(WebCore::JSDictionary::convertValue):
(WebCore):
* bindings/js/JSDictionary.h:
* bindings/v8/Dictionary.cpp:
(WebCore::Dictionary::get):
(WebCore):
* bindings/v8/Dictionary.h:
(Dictionary):
* bindings/v8/custom/V8SpeechRecognitionResultCustom.cpp: Removed.

Source/WebKit/chromium:

Adding the new didReceiveResults method.

* public/WebSpeechRecognizerClient.h:
* src/SpeechRecognitionClientProxy.cpp:
(WebKit::SpeechRecognitionClientProxy::didReceiveResults):
(WebKit):
* src/SpeechRecognitionClientProxy.h:
(SpeechRecognitionClientProxy):

Tools:

Changing the mock to use the new results delivery API.

* DumpRenderTree/chromium/MockWebSpeechRecognizer.cpp:

LayoutTests:

Updating basic tests and removing emma tests temporarily.

* fast/speech/scripted/emma-expected.txt: Removed.
* fast/speech/scripted/emma.html: Removed.
* fast/speech/scripted/speechrecognition-basics-expected.txt:
* fast/speech/scripted/speechrecognition-basics.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update Acid3 test to the latest version
https://bugs.webkit.org/show_bug.cgi?id=102943

Reviewed by Ojan Vafai.

The Acid3 test has been updated to not break when browsers starts to implement new
standards. This updates our copy of the Acid3 test.

* fast/dom/Range/acid3-surround-contents.html:
* http/tests/misc/acid3.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Use a separate QWEBKITWIDGETS_EXPORT macro for WebKitWidgets
https://bugs.webkit.org/show_bug.cgi?id=103844

Patch by Pierre Rossi <pierre.rossi@digia.com> on 2012-12-03
Reviewed by Simon Hausmann.

Let's follow the common practice and have one export macro per library.
We can't rely on BUILDING_WEBKIT anymore in that case, so we use the
qmake defines instead.

* Api/qwebkitglobal.h: Updated the import/export logic.
* WidgetApi/qgraphicswebview.h: s/QWEBKIT/QWEBKITWIDGETS/
* WidgetApi/qwebframe.h: Ditto.
* WidgetApi/qwebinspector.h: Ditto.
* WidgetApi/qwebpage.h: Ditto.
* WidgetApi/qwebview.h: Ditto.
* WidgetSupport/InitWebKitQt.cpp:
(WebKit::initializeWebKitWidgets): use QWEBKITWIDGETS_EXPORT.
* WidgetSupport/InitWebKitQt.h:
(WebKit): Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
svg/custom/baseval-animval-equality.svg should use dumpAsText
https://bugs.webkit.org/show_bug.cgi?id=103873

Reviewed by Dirk Schulze.

Turn it to a dumpAsText test.

* platform/chromium-mac-lion/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/chromium-mac-snowleopard/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/chromium-mac/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/chromium-win/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/chromium/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/gtk/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/mac-lion/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/mac-wk2/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/mac/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/qt/svg/custom/baseval-animval-equality-expected.txt: Removed.
* svg/custom/baseval-animval-equality-expected.txt: Added.
* svg/custom/baseval-animval-equality.svg:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Expectations fix up

Unreviewed expectations.

Two tests appear to have been out-of-date when they were last rebaselined.

* platform/chromium-linux/platform/chromium/virtual/softwarecompositing/shadows: Added.
* platform/chromium-linux/platform/chromium/virtual/softwarecompositing/shadows/shadow-drawing-expected.png: Added.
* platform/chromium-win-xp/svg/carto.net: Removed.
* platform/chromium-win-xp/svg/carto.net/colourpicker-expected.png: Removed.
* platform/chromium-win/svg/carto.net/colourpicker-expected.png:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Qt gardening.

Remove image expectation for tests that now pass.

* platform/qt-5.0-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Enable building WebKit2-only build for the EFL port
https://bugs.webkit.org/show_bug.cgi?id=103820

Patch by Laszlo Gombos <l.gombos@samsung.com> on 2012-12-03
Reviewed by Gyuyoung Kim.

.:

To create a WebKit2-only build for EFL use the following command:
build-webkit --efl --cmakeargs="-DENABLE_WEBKIT=OFF".

* CMakeLists.txt: Turn on WebKit1 support if it is not explicitly set (enabled or disabled) for
all CMake based ports.

* Source/cmake/OptionsEfl.cmake: Enable WebKit2
for the EFL port if it is not explicitly set (enabled or disabled).

Tools:

Set ENABLE_WEBKIT2 to OFF if build-webkit was run with --no-webkit2.
Never set ENABLE_WEBKIT in build-webkit. This will simplyfy invoking
cmake directly. Initialize $cmakeArgs to avoid potential
warnings when running the script.

* Scripts/build-webkit:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed fix after r136292 to make GIT-SVN repositories happy.

* win/WebKit2ExportGenerator.vcproj: Added property svn:eol-style.
* win/WebKit2ExportGeneratorCommon.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorDebug.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorDebugAll.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorDebugCairoCFLite.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorPostBuild.cmd: Added property svn:eol-style.
* win/WebKit2ExportGeneratorPreBuild.cmd: Added property svn:eol-style.
* win/WebKit2ExportGeneratorProduction.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorRelease.vsprops: Added property svn:eol-style.
* win/WebKit2ExportGeneratorReleaseCairoCFLite.vsprops: Added property svn:eol-style.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Enable HIDDEN_PAGE_DOM_TIMER_THROTTLING
https://bugs.webkit.org/show_bug.cgi?id=103842

Patch by Cosmin Truta <ctruta@rim.com> on 2012-12-03
Reviewed by Yong Li.

.:

Set ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING to ON.

* Source/cmake/OptionsBlackBerry.cmake:

Source/WebKit/blackberry:

Add HIDDEN_PAGE_DOM_TIMER_THROTTLING.

* WebCoreSupport/AboutDataEnableFeatures.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ENABLE(IMAGE_DECODER_DOWN_SAMPLING): Should use TURBO_JPEG_RGB_SWIZZLE fast path for non-scaled images
https://bugs.webkit.org/show_bug.cgi?id=103749

Reviewed by Rob Buis.

Replace !ENABLE(IMAGE_DECODER_DOWN_SAMPLING) with !m_scaled.

No new tests as existing jpegs are good with IMAGE_DECODER_DOWN_SAMPLING set up.

* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageDecoder::outputScanlines):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add contents,size,changed signal to the ewk_view API
https://bugs.webkit.org/show_bug.cgi?id=103094

Reviewed by Kenneth Rohde Christiansen.

This patch emits signal to let applications know contents size.
Applications can use this signal to give some additional behavior such as
minimap, external scroll for quick movement.

* UIProcess/API/efl/EwkViewCallbacks.h: Added contents,size,changed signal.
* UIProcess/API/efl/EwkViewImpl.cpp: Removed dead code.
* UIProcess/API/efl/EwkViewImpl.h: Ditto.
(EwkViewImpl):
* UIProcess/API/efl/ewk_view.h: Added test case.
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(onContentsSizeChanged):
(TEST_F):
* UIProcess/efl/PageClientDefaultImpl.cpp: Emitted contents,size,changed signal.
(WebKit::PageClientDefaultImpl::didChangeContentsSize):
* UIProcess/efl/PageClientLegacyImpl.cpp: Ditto.
(WebKit::PageClientLegacyImpl::didChangeContentsSize):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::contentsSizeChanged):
Sended DidChangeContentsSize message although TILED_BACKINGSTORE is disabled.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][EFL] Gardening for media/video-volume.html
https://bugs.webkit.org/show_bug.cgi?id=103894

Unreviewed gardening: media/video-volume.html fails with
gstreamer.

Patch by Jussi Kukkonen <jussi.kukkonen@intel.com> on 2012-12-03

* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Document::initSecurityContext() fails to call securityOrigin().grantLoadLocalResources()
https://bugs.webkit.org/show_bug.cgi?id=68711

Reviewed by Adam Barth.

Source/WebCore:

It currently fails since Document::loader() will return 0 until
Frame::setDocument is called and we are doing this check before it happens.

Delay the check and let the FrameLoader take care of doing grantLoadLocalResources()
on the Document along with other header checks in FrameLoader::didBeginDocument.

* dom/Document.cpp:
(WebCore::Document::initSecurityContext):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::didBeginDocument):

Source/WebKit/qt:

* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage::testStopScheduledPageRefresh): Unmark the expected failure.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Corrupted DOM tree during appendChild/insertBefore
https://bugs.webkit.org/show_bug.cgi?id=103601

Reviewed by Abhishek Arya.

Source/WebCore:

There are some missing protection in appendChild() and insertBefore().
This change added these.

Dromaeo dom-modify shows no speed regression (5445run/s before vs 5351run/s after)

Tests: fast/events/mutation-during-append-child.html
       fast/events/mutation-during-insert-before.html

* dom/ContainerNode.cpp:
(WebCore::checkAcceptChildGuaranteedNodeTypes):
(WebCore):
(WebCore::ContainerNode::insertBefore):
(WebCore::ContainerNode::appendChild):

LayoutTests:

* fast/events/mutation-during-append-child-expected.txt: Added.
* fast/events/mutation-during-append-child.html: Added.
* fast/events/mutation-during-insert-before-expected.txt: Added.
* fast/events/mutation-during-insert-before.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Adding myself to committers.py.

* Scripts/webkitpy/common/config/committers.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Enable CSS3 background-background position offset by default.
https://bugs.webkit.org/show_bug.cgi?id=103903

Reviewed by Philippe Normand.

.:

Turn on the flag by default.

* configure.ac:

Source/WebCore:

Turn the feature on by default.

No new tests : covered by tests already landed.

* GNUmakefile.features.am:

LayoutTests:

Enable by default the new CSS3 background position offsets therefore we
can unskip the tests.

* platform/gtk/TestExpectations:


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