IndexedDB: Replace use of ScriptExecutionContext::Task (Part 2)
https://bugs.webkit.org/show_bug.cgi?id=103931

Reviewed by Tony Chang.

Source/WebCore:

Actually drop use of ScriptExecutionContext::Task and remove incorrect usage of
ThreadSafeRefCounted<>. Define a new IDBTransactionBackendImpl::Operation base class
for operations; storage of per-operation data becomes explicit.

No new tests - just a refactor.

* Modules/indexeddb/IDBCallbacks.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBCursorBackendImpl.cpp:
(WebCore::IDBCursorBackendImpl::CursorIterationOperation::create):
(IDBCursorBackendImpl::CursorIterationOperation):
(WebCore::IDBCursorBackendImpl::CursorIterationOperation::CursorIterationOperation):
(WebCore::IDBCursorBackendImpl::CursorAdvanceOperation::create):
(IDBCursorBackendImpl::CursorAdvanceOperation):
(WebCore::IDBCursorBackendImpl::CursorAdvanceOperation::CursorAdvanceOperation):
(WebCore::IDBCursorBackendImpl::CursorPrefetchIterationOperation::create):
(IDBCursorBackendImpl::CursorPrefetchIterationOperation):
(WebCore::IDBCursorBackendImpl::CursorPrefetchIterationOperation::CursorPrefetchIterationOperation):
(WebCore::IDBCursorBackendImpl::CursorAdvanceOperation::perform):
(WebCore::IDBCursorBackendImpl::CursorIterationOperation::perform):
(WebCore::IDBCursorBackendImpl::CursorPrefetchIterationOperation::perform):
* Modules/indexeddb/IDBCursorBackendInterface.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBDatabase.cpp:
* Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreOperation::create):
(IDBDatabaseBackendImpl::CreateObjectStoreOperation):
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreOperation::CreateObjectStoreOperation):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreOperation::create):
(IDBDatabaseBackendImpl::DeleteObjectStoreOperation):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreOperation::DeleteObjectStoreOperation):
(WebCore::IDBDatabaseBackendImpl::VersionChangeOperation::create):
(IDBDatabaseBackendImpl::VersionChangeOperation):
(WebCore::IDBDatabaseBackendImpl::VersionChangeOperation::VersionChangeOperation):
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreAbortOperation::create):
(IDBDatabaseBackendImpl::CreateObjectStoreAbortOperation):
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreAbortOperation::CreateObjectStoreAbortOperation):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreAbortOperation::create):
(IDBDatabaseBackendImpl::DeleteObjectStoreAbortOperation):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreAbortOperation::DeleteObjectStoreAbortOperation):
(WebCore::IDBDatabaseBackendImpl::VersionChangeAbortOperation::create):
(IDBDatabaseBackendImpl::VersionChangeAbortOperation):
(WebCore::IDBDatabaseBackendImpl::VersionChangeAbortOperation::VersionChangeAbortOperation):
(WebCore::IDBDatabaseBackendImpl::createObjectStore):
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreOperation::perform):
(WebCore::IDBDatabaseBackendImpl::deleteObjectStore):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreOperation::perform):
(WebCore::IDBDatabaseBackendImpl::VersionChangeOperation::perform):
(WebCore::IDBDatabaseBackendImpl::runIntVersionChangeTransaction):
(WebCore::IDBDatabaseBackendImpl::CreateObjectStoreAbortOperation::perform):
(WebCore::IDBDatabaseBackendImpl::DeleteObjectStoreAbortOperation::perform):
(WebCore::IDBDatabaseBackendImpl::VersionChangeAbortOperation::perform):
* Modules/indexeddb/IDBDatabaseBackendInterface.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBDatabaseCallbacks.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBFactoryBackendImpl.cpp:
* Modules/indexeddb/IDBFactoryBackendInterface.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBIndexBackendImpl.cpp:
(WebCore::IDBIndexBackendImpl::OpenIndexCursorOperation::create):
(IDBIndexBackendImpl::OpenIndexCursorOperation):
(WebCore::IDBIndexBackendImpl::OpenIndexCursorOperation::OpenIndexCursorOperation):
(WebCore::IDBIndexBackendImpl::IndexCountOperation::create):
(IDBIndexBackendImpl::IndexCountOperation):
(WebCore::IDBIndexBackendImpl::IndexCountOperation::IndexCountOperation):
(WebCore::IDBIndexBackendImpl::IndexReferencedValueRetrievalOperation::create):
(IDBIndexBackendImpl::IndexReferencedValueRetrievalOperation):
(WebCore::IDBIndexBackendImpl::IndexReferencedValueRetrievalOperation::IndexReferencedValueRetrievalOperation):
(WebCore::IDBIndexBackendImpl::IndexValueRetrievalOperation::create):
(IDBIndexBackendImpl::IndexValueRetrievalOperation):
(WebCore::IDBIndexBackendImpl::IndexValueRetrievalOperation::IndexValueRetrievalOperation):
(WebCore::IDBIndexBackendImpl::OpenIndexCursorOperation::perform):
(WebCore::IDBIndexBackendImpl::openCursor):
(WebCore::IDBIndexBackendImpl::openKeyCursor):
(WebCore::IDBIndexBackendImpl::IndexCountOperation::perform):
(WebCore::IDBIndexBackendImpl::count):
(WebCore::IDBIndexBackendImpl::IndexReferencedValueRetrievalOperation::perform):
(WebCore::IDBIndexBackendImpl::IndexValueRetrievalOperation::perform):
(WebCore::IDBIndexBackendImpl::get):
(WebCore::IDBIndexBackendImpl::getKey):
* Modules/indexeddb/IDBIndexBackendInterface.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBKey.h: Remove bogus "ThreadSafe"
(IDBKey):
* Modules/indexeddb/IDBKeyRange.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBObjectStoreBackendImpl.cpp:
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreRetrievalOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreRetrievalOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreRetrievalOperation::ObjectStoreRetrievalOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreStorageOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreStorageOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreStorageOperation::ObjectStoreStorageOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreIndexesReadyOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreIndexesReadyOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreIndexesReadyOperation::ObjectStoreIndexesReadyOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreDeletionOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreDeletionOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreDeletionOperation::ObjectStoreDeletionOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreClearOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreClearOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreClearOperation::ObjectStoreClearOperation):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexOperation::create):
(IDBObjectStoreBackendImpl::CreateIndexOperation):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexOperation::CreateIndexOperation):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexOperation::create):
(IDBObjectStoreBackendImpl::DeleteIndexOperation):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexOperation::DeleteIndexOperation):
(WebCore::IDBObjectStoreBackendImpl::OpenObjectStoreCursorOperation::create):
(IDBObjectStoreBackendImpl::OpenObjectStoreCursorOperation):
(WebCore::IDBObjectStoreBackendImpl::OpenObjectStoreCursorOperation::OpenObjectStoreCursorOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreCountOperation::create):
(IDBObjectStoreBackendImpl::ObjectStoreCountOperation):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreCountOperation::ObjectStoreCountOperation):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexAbortOperation::create):
(IDBObjectStoreBackendImpl::CreateIndexAbortOperation):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexAbortOperation::CreateIndexAbortOperation):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexAbortOperation::create):
(IDBObjectStoreBackendImpl::DeleteIndexAbortOperation):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexAbortOperation::DeleteIndexAbortOperation):
(WebCore::IDBObjectStoreBackendImpl::get):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreRetrievalOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::put):
(WebCore):
(WebCore::IDBObjectStoreBackendImpl::setIndexesReady):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreIndexesReadyOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreStorageOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::deleteFunction):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreDeletionOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::clear):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreClearOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::createIndex):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::deleteIndex):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::openCursor):
(WebCore::IDBObjectStoreBackendImpl::OpenObjectStoreCursorOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::count):
(WebCore::IDBObjectStoreBackendImpl::ObjectStoreCountOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::CreateIndexAbortOperation::perform):
(WebCore::IDBObjectStoreBackendImpl::DeleteIndexAbortOperation::perform):
* Modules/indexeddb/IDBObjectStoreBackendInterface.h: Remove bogus "ThreadSafe"
* Modules/indexeddb/IDBRequest.h: Remove bogus "ThreadSafe"
(IDBRequest):
* Modules/indexeddb/IDBTransactionBackendImpl.cpp:
(WebCore::IDBTransactionBackendImpl::IDBTransactionBackendImpl): Appease RefPtr<> adoption strictness.
(WebCore::IDBTransactionBackendImpl::scheduleTask):
(WebCore::IDBTransactionBackendImpl::abort):
(WebCore::IDBTransactionBackendImpl::taskTimerFired):
* Modules/indexeddb/IDBTransactionBackendImpl.h:
(Operation):
(WebCore::IDBTransactionBackendImpl::Operation::~Operation):
(IDBTransactionBackendImpl):
(WebCore::IDBTransactionBackendImpl::scheduleTask):
* Modules/indexeddb/IDBTransactionBackendInterface.h: Remove bogus "ThreadSafe"

Source/WebKit/chromium:

Now that IDBCallbacks uses real RefPtr<> a mock class needs to be heap allocated.

* tests/IDBAbortOnCorruptTest.cpp:
(WebCore::MockIDBCallbacks::create):
(WebCore::MockIDBCallbacks::MockIDBCallbacks):
(MockIDBCallbacks):
(WebCore::TEST):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Gtk] navigator.plugins contains too many plugin entries. First one are garbages
https://bugs.webkit.org/show_bug.cgi?id=102438

Patch by Arnaud Renevier <a.renevier@sisa.samsung.com> on 2012-12-05
Reviewed by Xan Lopez.

Source/WebKit/gtk:

In getPluginInfo, outPlugins is resized to plugins.size and then,
plugins are appended to it. So at the end, outPlugins will be twice
too large, and first half will contain null objects. As outPlugins
size is 0 when calling getPluginInfo, we don't need to resize it.

* WebCoreSupport/PlatformStrategiesGtk.cpp:
(PlatformStrategiesGtk::getPluginInfo):

LayoutTests:

Add a test to check that navigator.plugins only contain valid plugin
objects.

* plugins/navigator-plugins-expected.txt: Added.
* plugins/navigator-plugins.html: Added.
* plugins/script-tests/navigator-plugins.js: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unreviewed gardening.

* platform/efl-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium rebaselines.

* platform/chromium-mac/plugins/npp-set-window-called-during-destruction-expected.txt: Added.
* platform/chromium-win-xp/css3/flexbox: Added.
* platform/chromium-win-xp/css3/flexbox/repaint-column-reverse-expected.png: Added.
* platform/chromium-win/css3/filters/effect-reference-hw-expected.png:
* platform/chromium-win/plugins/npp-set-window-called-during-destruction-expected.txt:
* platform/chromium/plugins/npp-set-window-called-during-destruction-expected.txt: Removed.
* platform/win-7sp0/plugins: Added.
* platform/win-7sp0/plugins/npp-set-window-called-during-destruction-expected.txt: Added.
* platform/win/plugins/npp-set-window-called-during-destruction-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] meta viewport pages are rendered at a bad initial scale
https://bugs.webkit.org/show_bug.cgi?id=104122

Patch by Jacky Jiang <zhajiang@rim.com>.
Reviewed by Rob Buis.
Internally reviewed by Arvid Nilsson.

PR: 240378
Many websites are rendered at a very bad initial scale because they
both specify meta viewport tag and have large width elements. In such
a case we will think the meta viewport tag is broken if the width of
any element is larger than the calculated layout viewport width.
The fix to this is straightforward that we will zoom the page to fit
the screen to have better user experience instead of respecting the
meta viewport. This can fix the issue on the websites such as
www.travelpod.com, www.forbes.com, interfacelift.com, www.sky.com,
raphaeljs.com and so on.
If non-empty m_userViewportArguments is applied, then we will force to
respect the viewport arguments. In this way we will restrict the fix to
browser only.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
(BlackBerry::WebKit::WebPagePrivate::setLoadState):
(BlackBerry::WebKit::WebPagePrivate::respectViewport):
(WebKit):
(BlackBerry::WebKit::WebPagePrivate::initialScale):
(BlackBerry::WebKit::WebPagePrivate::maximumScale):
(BlackBerry::WebKit::WebPagePrivate::dispatchViewportPropertiesDidChange):
* Api/WebPage_p.h:
(BlackBerry::WebKit::WebPagePrivate::isUserScalable):
(WebPagePrivate):
(BlackBerry::WebKit::WebPagePrivate::minimumScale):

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

Skipping back the Media Stream layout tests, they're not behaving well.
Removing a few failure expectations for tests that are passing.

* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, adding my new email address to watchlist for blackberry.

 * Scripts/webkitpy/common/config/watchlist:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Don't include error message text in the editor buffer.
https://bugs.webkit.org/show_bug.cgi?id=103932

Reviewed by Alexander Pavlov.

Source/WebCore:

Skip entire decoration content when collecting dirty regions.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorMainPanel.prototype._collectLinesFromDOM):

LayoutTests:

* inspector/editor/editor-test.js:
(initialize_EditorTests.InspectorTest.getLineElement):
(initialize_EditorTests):
* inspector/editor/text-editor-type-over-decoration-expected.txt: Added.
* inspector/editor/text-editor-type-over-decoration.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Introduce WebKit-EFL to Assistive Technologies - new baselines
https://bugs.webkit.org/show_bug.cgi?id=104000

Patch by Krzysztof Czech <k.czech@samsung.com> on 2012-12-05
Reviewed by Chris Fleizach.

Added EFL baselines for accessibility/table-cells.html and accessibility/table-cell-spans.html.

* platform/efl-wk2/TestExpectations:
* platform/efl-wk2/accessibility/table-cell-spans-expected.txt: Added.
* platform/efl-wk2/accessibility/table-cells-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][GTK] List value response headers are not handled in RespourceResponse (libsoup specific)
https://bugs.webkit.org/show_bug.cgi?id=95181

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-12-05
Reviewed by Martin Robinson.

Source/WebCore:

When list-value response headers are received, they are handled as single
value headers. This patch fixes incorrect behavior. New test was added to
verify list-value header handling.

Test: http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers.html

* platform/network/soup/ResourceResponseSoup.cpp:
(WebCore::ResourceResponse::updateFromSoupMessage):

LayoutTests:

Added test that checks if list-value response headers handled correctly.

* http/tests/xmlhttprequest/resources/custom-headers.php: Added.
* http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers-expected.txt: Added.
* http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: more robust treeoutline.findTreeElement
https://bugs.webkit.org/show_bug.cgi?id=103911

Patch by John J. Barton <johnjbarton@chromium.org> on 2012-12-05
Reviewed by Vsevolod Vlasov.

Non-recursive algorithm to populate the treeoutline given an DOMNode
as representedObject. Walk up the parents from the desired object
until we find one that is currently represented in the treeoutline
cache. Then walk down, putting children in the cache until we get
to the desired object again.
With Pavel Feldeman <pfeldman@chromium.org>

No new tests, refactoring, no new function

       * inspector/front-end/treeoutline.js:
(TreeOutline.prototype.findTreeElement):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix compilation for Qt5.0.0 stable branch.
https://bugs.webkit.org/show_bug.cgi?id=103870

Source/WebCore:

Patch by Andras Becsi <andras.becsi@digia.com> on 2012-12-05
Reviewed by Simon Hausmann.

This is a squashed patch consisting of patches by multiple authors.

Fixed use of to-be-removed compatibility functions in QWindow
Patch by Samuel Rødal <samuel.rodal@digia.com>

Build fix. No new tests needed.

* platform/graphics/gstreamer/PlatformVideoWindowQt.cpp:
(FullScreenVideoWindow::FullScreenVideoWindow):
(PlatformVideoWindow::PlatformVideoWindow):

Source/WebKit2:

Patch by Michael Brüning <michael.bruning@digia.com> on 2012-12-05
Reviewed by Simon Hausmann.

QWindow::pos() and QQuickItem::pos() have been renamed to position().
Patch by Lars Knoll <lars.knoll@digia.com>

* UIProcess/qt/PageViewportControllerClientQt.cpp:
(WebKit::PageViewportControllerClientQt::setContentRectVisiblePositionAtScale):
(WebKit::PageViewportControllerClientQt::setViewportPosition):

Tools:

Patch by Andras Becsi <andras.becsi@digia.com> on 2012-12-05
Reviewed by Simon Hausmann.

Fix the use of renamed QWindow functions.
Patch by Andras Becsi <andras.becsi@digia.com>

* MiniBrowser/qt/BrowserWindow.cpp:
(BrowserWindow::BrowserWindow):
(BrowserWindow::onTitleChanged):
* MiniBrowser/qt/raw/View.cpp:
(View::View):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Turn pixel tests in fast/media into reftests
https://bugs.webkit.org/show_bug.cgi?id=103632

Reviewed by Darin Adler.

Turn the pixel tests under fast/media into reftests.
The reference files are tailored so they present the same output
that the pixel baselines. The latter will be removed in two subsequent commits.

* fast/media/implicit-media-all-expected.html: Added.
* fast/media/media-descriptor-syntax-01-expected.html: Added.
* fast/media/media-descriptor-syntax-02-expected.html: Added.
* fast/media/media-descriptor-syntax-03-expected.html: Added.
* fast/media/media-descriptor-syntax-04-expected.html: Added.
* fast/media/media-descriptor-syntax-05-expected.html: Added.
* fast/media/media-descriptor-syntax-06-expected.html: Added.
* fast/media/media-query-invalid-value-expected.html: Added.
* fast/media/media-query-invalid-value-expected.txt: Removed.
* fast/media/media-type-syntax-01-expected.html: Added.
* fast/media/media-type-syntax-02-expected.html: Added.
* fast/media/monochrome-expected.html: Added.
* fast/media/mq-animation-expected.html: Added.
* fast/media/mq-aspect-ratio-expected.html: Added.
* fast/media/mq-compound-query-01-expected.html: Added.
* fast/media/mq-compound-query-02-expected.html: Added.
* fast/media/mq-compound-query-03-expected.html: Added.
* fast/media/mq-compound-query-04-expected.html: Added.
* fast/media/mq-compound-query-05-expected.html: Added.
* fast/media/mq-grid-01-expected.html: Added.
* fast/media/mq-grid-02-expected.html: Added.
* fast/media/mq-invalid-media-feature-01-expected.html: Added.
* fast/media/mq-invalid-media-feature-02-expected.html: Added.
* fast/media/mq-invalid-media-feature-03-expected.html: Added.
* fast/media/mq-invalid-media-feature-04-expected.html: Added.
* fast/media/mq-invalid-syntax-01-expected.html: Added.
* fast/media/mq-invalid-syntax-02-expected.html: Added.
* fast/media/mq-invalid-syntax-03-expected.html: Added.
* fast/media/mq-invalid-syntax-04-expected.html: Added.
* fast/media/mq-invalid-syntax-05-expected.html: Added.
* fast/media/mq-js-media-except-01-expected.html: Added.
* fast/media/mq-js-media-except-01-expected.txt: Removed.
* fast/media/mq-js-media-except-02-expected.html: Added.
* fast/media/mq-js-media-except-02-expected.txt: Removed.
* fast/media/mq-js-media-except-03-expected.html: Added.
* fast/media/mq-js-media-except-03-expected.txt: Removed.
* fast/media/mq-js-media-forward-syntax-expected.html: Added.
* fast/media/mq-js-stylesheet-media-01-expected.html: Added.
* fast/media/mq-js-stylesheet-media-02-expected.html: Added.
* fast/media/mq-js-stylesheet-media-03-expected.html: Added.
* fast/media/mq-js-stylesheet-media-04-expected.html: Added.
* fast/media/mq-max-pixel-ratio-expected.html: Added.
* fast/media/mq-min-constraint-expected.html: Added.
* fast/media/mq-min-pixel-ratio-expected.html: Added.
* fast/media/mq-min-pixel-ratio-expected.txt: Removed.
* fast/media/mq-orientation-expected.html: Added.
* fast/media/mq-pixel-ratio-expected.html: Added.
* fast/media/mq-relative-constraints-02-expected.html: Added.
* fast/media/mq-relative-constraints-03-expected.html: Added.
* fast/media/mq-relative-constraints-04-expected.html: Added.
* fast/media/mq-relative-constraints-05-expected.html: Added.
* fast/media/mq-relative-constraints-06-expected.html: Added.
* fast/media/mq-relative-constraints-07-expected.html: Added.
* fast/media/mq-relative-constraints-08-expected.html: Added.
* fast/media/mq-relative-constraints-08-expected.txt: Removed.
* fast/media/mq-relative-constraints-09-expected.html: Added.
* fast/media/mq-simple-neg-query-01-expected.html: Added.
* fast/media/mq-simple-neg-query-02-expected.html: Added.
* fast/media/mq-simple-neg-query-03-expected.html: Added.
* fast/media/mq-simple-neg-query-04-expected.html: Added.
* fast/media/mq-simple-neg-query-05-expected.html: Added.
* fast/media/mq-simple-query-01-expected.html: Added.
* fast/media/mq-simple-query-02-expected.html: Added.
* fast/media/mq-simple-query-03-expected.html: Added.
* fast/media/mq-simple-query-04-expected.html: Added.
* fast/media/mq-simple-query-05-expected.html: Added.
* fast/media/mq-transform-01-expected.html: Added.
* fast/media/mq-transform-02-expected.html: Added.
* fast/media/mq-transform-03-expected.html: Added.
* fast/media/mq-transform-04-expected.html: Added.
* fast/media/mq-transition-expected.html: Added.
* fast/media/mq-valueless-expected.html: Added.
* fast/media/mq-width-absolute-01-expected.html: Added.
* fast/media/mq-width-absolute-02-expected.html: Added.
* fast/media/mq-width-absolute-03-expected.html: Added.
* fast/media/mq-width-absolute-04-expected.html: Added.
* fast/media/view-mode-media-feature-expected.html: Added.
* fast/media/view-mode-media-feature-expected.txt: Removed.
* fast/media/viewport-media-query-expected.html: Added.
* platform/gtk/fast/media/mq-transform-02-expected.html: Added as 3D transforms support
isn't yet enabled on the GTK port.
* platform/gtk/fast/media/mq-transform-03-expected.html: Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unneeded WTF prefix from WTF types in RenderFlexibleBox
https://bugs.webkit.org/show_bug.cgi?id=104109

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2012-12-05
Reviewed by Eric Seidel.

WTF prefix is not needed because WTF headers have a using
statement at the end of the file.

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock):
(WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems):
(WebCore::RenderFlexibleBox::layoutFlexItems):
(WebCore::RenderFlexibleBox::freezeViolations):
(WebCore::RenderFlexibleBox::resolveFlexibleLengths):
(WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
(WebCore::RenderFlexibleBox::alignFlexLines):
(WebCore::RenderFlexibleBox::alignChildren):
(WebCore::RenderFlexibleBox::flipForWrapReverse):
* rendering/RenderFlexibleBox.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Introduce WebKit-EFL to Assistive Technologies
https://bugs.webkit.org/show_bug.cgi?id=104000

Patch by Krzysztof Czech <k.czech@samsung.com> on 2012-12-05
Reviewed by Chris Fleizach.

Introduce Webkit-EFL so that Assistive Technologies can distinguish it.

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetAttributes):

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

Removing redundant pixel and render tree baselines for fast/media tests.
This first patch of a two-part cleanup covers Chromium ports.

Too many files to list.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r126683): Table cell are getting borders when the style doesn't mention any
https://bugs.webkit.org/show_bug.cgi?id=101677

Reviewed by Julien Chaffraix.

Source/WebCore:

The bordercolor attribute on a cell or row has no effect on FF and Opera, even when the parent
table has a border attribute. IE displays the bordercolor of the cell and row in all cases except when
the parent has no border attribute. WebKit's old behaviour (before r126683) was to display the
bordercolor of the row but not the cells (I don't think this behaviour was particularly deliberate). No
browser displays the bordercolor for a col or tbody element.

Bring WebKit into line with Opera and FF by ignoring the bordercolor attribute on cells, rows, cols, rowgroups, and
colgroups in all cases, regardless of whether the table has a border or not.

Test: fast/table/td-bordercolor-attribute.html

* html/HTMLTablePartElement.cpp:
(WebCore::HTMLTablePartElement::isPresentationAttribute):
(WebCore::HTMLTablePartElement::collectStyleForPresentationAttribute):

LayoutTests:

* fast/table/td-bordercolor-attribute-expected.txt: Added.
* fast/table/td-bordercolor-attribute.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] REGRESSION: 2 tests started to fail with newer Qt5
https://bugs.webkit.org/show_bug.cgi?id=104140

Unreviewed gardening, skip new failing tests to paint the bots green.

* platform/qt-5.0/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Stub out transaction-backend methods
https://bugs.webkit.org/show_bug.cgi?id=103921

Reviewed by Dimitri Glazkov.

Source/WebCore:

In preparation for a refactoring. Legacy methods
will be removed in https://bugs.webkit.org/show_bug.cgi?id=103923.

No new tests, just adding unused methods for refactoring.

* Modules/indexeddb/IDBCallbacks.h:
(WebCore::IDBCallbacks::onUpgradeNeeded):
* Modules/indexeddb/IDBDatabase.cpp:
(WebCore::IDBDatabase::onAbort):
(WebCore):
(WebCore::IDBDatabase::onComplete):
* Modules/indexeddb/IDBDatabase.h:
(IDBDatabase):
* Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::createTransaction):
(WebCore):
* Modules/indexeddb/IDBDatabaseBackendImpl.h:
(IDBDatabaseBackendImpl):
(WebCore::IDBDatabaseBackendImpl::commit):
(WebCore::IDBDatabaseBackendImpl::abort):
* Modules/indexeddb/IDBDatabaseBackendInterface.h:
(IDBDatabaseBackendInterface):
* Modules/indexeddb/IDBDatabaseCallbacks.h:
(IDBDatabaseCallbacks):
* Modules/indexeddb/IDBDatabaseCallbacksImpl.cpp:
(WebCore::IDBDatabaseCallbacksImpl::onAbort):
(WebCore):
(WebCore::IDBDatabaseCallbacksImpl::onComplete):
* Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
(IDBDatabaseCallbacksImpl):
* Modules/indexeddb/IDBFactoryBackendImpl.cpp:
(WebCore::IDBFactoryBackendImpl::open):
* Modules/indexeddb/IDBFactoryBackendImpl.h:
(WebCore::IDBFactoryBackendImpl::open):
(IDBFactoryBackendImpl):
* Modules/indexeddb/IDBFactoryBackendInterface.h:
(IDBFactoryBackendInterface):
* Modules/indexeddb/IDBOpenDBRequest.cpp:
(WebCore::IDBOpenDBRequest::onUpgradeNeeded):
(WebCore):
* Modules/indexeddb/IDBOpenDBRequest.h:
(IDBOpenDBRequest):
* Modules/indexeddb/IDBTransactionBackendInterface.h:
(WebCore):
* Modules/indexeddb/IDBTransactionCoordinator.h:

Source/WebKit/chromium:

Add new signatures for refactoring, to allow
transaction_ids to make is through the open/onUpgradeNeeded
loop.

* public/WebIDBCallbacks.h:
(WebKit::WebIDBCallbacks::onUpgradeNeeded):
* public/WebIDBDatabase.h:
(WebKit::WebIDBDatabase::createTransaction):
(WebKit::WebIDBDatabase::abort):
(WebKit::WebIDBDatabase::commit):
(WebIDBDatabase):
* public/WebIDBDatabaseCallbacks.h:
(WebIDBDatabaseCallbacks):
(WebKit::WebIDBDatabaseCallbacks::onAbort):
(WebKit::WebIDBDatabaseCallbacks::onComplete):
* public/WebIDBFactory.h:
(WebKit::WebIDBFactory::open):
* src/IDBCallbacksProxy.cpp:
(WebKit::IDBCallbacksProxy::onUpgradeNeeded):
(WebKit):
* src/IDBCallbacksProxy.h:
(IDBCallbacksProxy):
* src/IDBDatabaseBackendProxy.cpp:
(WebKit::IDBDatabaseBackendProxy::createTransaction):
(WebKit):
(WebKit::IDBDatabaseBackendProxy::commit):
(WebKit::IDBDatabaseBackendProxy::abort):
* src/IDBDatabaseBackendProxy.h:
(IDBDatabaseBackendProxy):
* src/IDBDatabaseCallbacksProxy.cpp:
(WebKit::IDBDatabaseCallbacksProxy::onAbort):
(WebKit):
(WebKit::IDBDatabaseCallbacksProxy::onComplete):
* src/IDBDatabaseCallbacksProxy.h:
(IDBDatabaseCallbacksProxy):
* src/IDBFactoryBackendProxy.cpp:
(WebKit::IDBFactoryBackendProxy::open):
(WebKit):
* src/IDBFactoryBackendProxy.h:
(IDBFactoryBackendProxy):
* src/WebIDBCallbacksImpl.cpp:
(WebKit::WebIDBCallbacksImpl::onUpgradeNeeded):
(WebKit):
* src/WebIDBCallbacksImpl.h:
(WebIDBCallbacksImpl):
* src/WebIDBDatabaseCallbacksImpl.cpp:
(WebKit::WebIDBDatabaseCallbacksImpl::onAbort):
(WebKit):
(WebKit::WebIDBDatabaseCallbacksImpl::onComplete):
* src/WebIDBDatabaseCallbacksImpl.h:
(WebIDBDatabaseCallbacksImpl):
* src/WebIDBDatabaseImpl.cpp:
(WebKit::WebIDBDatabaseImpl::createTransaction):
(WebKit):
(WebKit::WebIDBDatabaseImpl::abort):
(WebKit::WebIDBDatabaseImpl::commit):
* src/WebIDBDatabaseImpl.h:
(WebIDBDatabaseImpl):
* src/WebIDBFactoryImpl.cpp:
(WebKit::WebIDBFactoryImpl::open):
(WebKit):
* src/WebIDBFactoryImpl.h:
(WebIDBFactoryImpl):
* tests/IDBAbortOnCorruptTest.cpp:
* tests/IDBDatabaseBackendTest.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Enable to build WebKit sources without Tools
https://bugs.webkit.org/show_bug.cgi?id=103918

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

Turn on building Tools by default only if ENABLE_TOOLS is not explicitly set
(enabled or disabled) and the Tools directory exists for all CMake based ports.

This change enables the possibility to build WebKit even if the Tools directory
does not exists.

* CMakeLists.txt:

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