Unreviewed propective build fix for Qt/Windows after r101477.

* wtf/ThreadSpecific.h: Use OS(WINDOWS) for declaring "destructor", as it's
only referenced from within another OS(WINDOWS) section.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed propective build fix for Qt/Windows part 2 after r101477.

* wtf/ThreadSpecific.h: Fix the OS(WINDOWS) defines for the friend declaration for ThreadSpecific<T>::Data

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix compilation with MingW.

Reviewed by Csaba Osztrogonác.

* wtf/ThreadingWin.cpp:
(WTF::initializeCurrentThreadInternal): MingW doesn't support MSVC exception handling, so for
the time being make the thread name setting unimplemented for MingW.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename WebKit::ViewportUpdateGuard to *Deferrer and add some better comments to explain its purpose.

Reviewed by Simon Hausmann.

* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::ViewportUpdateDeferrer::ViewportUpdateDeferrer):
(WebKit::ViewportUpdateDeferrer::~ViewportUpdateDeferrer):
(WebKit::QtViewportInteractionEngine::setItemRectVisible):
(WebKit::QtViewportInteractionEngine::scaleAnimationStateChanged):
(WebKit::QtViewportInteractionEngine::scrollStateChanged):
(WebKit::QtViewportInteractionEngine::applyConstraints):
(WebKit::QtViewportInteractionEngine::pinchGestureStarted):
* UIProcess/qt/QtViewportInteractionEngine.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Download page URL should be set by WebCore
https://bugs.webkit.org/show_bug.cgi?id=73358

Reviewed by Darin Adler.

Source/WebCore:

No change in behavior, just refactoring.

* loader/FrameLoader.h:
* loader/FrameLoader.cpp:
(WebCore::originatingURLFromBackForwardList):
(WebCore::FrameLoader::setOriginalURLForDownloadRequest):
Moved implementations from WebKit, added a bunch of FIXMEs.

* loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::continueAfterContentPolicy):
Set main document URL (incorrectly renamed to "first party for cookies" in WebCore), so that
CFNetwork would automatically use it.

* loader/PolicyChecker.cpp: (WebCore::PolicyChecker::continueAfterNavigationPolicy): Ditto
for requests that start as downloads (as opposed to being converted after reading first bits
of response).

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h: Removed setOriginalURLForDownload, which is now
in WebCore.

* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::download): There is no need to set original URL post factum any more.
(WebFrameLoaderClient::startDownload): Ditto.

Source/WebKit2:

* WebProcess/Downloads/mac/DownloadMac.mm:
(WebKit::Download::start): There is no need to set original URL post factum any more.
(WebKit::Download::startWithHandle): Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed rolling out incorrect r101481.

* assembler/MIPSAssembler.h:
* assembler/MacroAssemblerMIPS.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r101440 and r101442.
http://trac.webkit.org/changeset/101440
http://trac.webkit.org/changeset/101442
https://bugs.webkit.org/show_bug.cgi?id=73429

multiple crashes on layout tests (Requested by hayato on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-30

Source/WebCore:

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::initialize):
* platform/graphics/chromium/WebGLLayerChromium.cpp:
(WebCore::WebGLLayerChromium::layerRendererContext):
* platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
(WebCore::CCHeadsUpDisplay::enabled):
* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::CCLayerTreeHost):
(WebCore::CCLayerTreeHost::initialize):
(WebCore::CCLayerTreeHost::~CCLayerTreeHost):
(WebCore::CCLayerTreeHost::context):
(WebCore::CCLayerTreeHost::setNeedsAnimate):
(WebCore::CCLayerTreeHost::setNeedsCommit):
(WebCore::CCLayerTreeHost::setNeedsRedraw):
(WebCore::CCLayerTreeHost::composite):
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::CCSettings::CCSettings):
* platform/graphics/chromium/cc/CCProxy.cpp:
(WebCore::CCProxy::isMainThread):
(WebCore::CCProxy::isImplThread):
(WebCore::CCProxy::setImplThread):
* platform/graphics/chromium/cc/CCProxy.h:
* platform/graphics/chromium/cc/CCSingleThreadProxy.h:
(WebCore::DebugScopedSetImplThread::DebugScopedSetImplThread):
(WebCore::DebugScopedSetImplThread::~DebugScopedSetImplThread):

Source/WebKit/chromium:

* WebKit.gyp:
* WebKit.gypi:
* public/WebCompositor.h:
* public/WebCompositorClient.h:
* public/WebCompositorInputHandler.h: Removed.
* public/WebCompositorInputHandlerClient.h: Removed.
* public/WebLayerTreeView.h:
(WebKit::WebLayerTreeView::Settings::Settings):
* public/WebSettings.h:
* src/WebCompositorImpl.cpp:
(WebCore::CCInputHandler::create):
(WebKit::WebCompositor::setThread):
(WebKit::WebCompositor::fromIdentifier):
(WebKit::WebCompositorImpl::fromIdentifier):
(WebKit::WebCompositorImpl::WebCompositorImpl):
(WebKit::WebCompositorImpl::~WebCompositorImpl):
(WebKit::WebCompositorImpl::setClient):
(WebKit::WebCompositorImpl::handleInputEvent):
(WebKit::WebCompositorImpl::identifier):
(WebKit::WebCompositorImpl::willDraw):
* src/WebCompositorImpl.h:
(WebKit::WebCompositorImpl::create):
* src/WebCompositorInputHandlerImpl.cpp: Removed.
* src/WebCompositorInputHandlerImpl.h: Removed.
* src/WebKit.cpp:
(WebKit::initializeWithoutV8):
(WebKit::shutdown):
* src/WebLayerTreeView.cpp:
(WebKit::WebLayerTreeView::Settings::operator CCSettings):
(WebKit::WebLayerTreeView::composite):
* src/WebLayerTreeViewImpl.cpp:
(WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::WebSettingsImpl):
(WebKit::WebSettingsImpl::setUseThreadedCompositor):
* src/WebSettingsImpl.h:
(WebKit::WebSettingsImpl::useThreadedCompositor):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::animate):
(WebKit::WebViewImpl::composite):
(WebKit::WebViewImpl::scheduleAnimation):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit::WebViewImpl::createLayerTreeHostContext3D):
(WebKit::WebViewImpl::scheduleComposite):
(WebKit::WebViewImpl::graphicsContext3D):
* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
(WTF::CCLayerTreeHostTest::onEndTest):
(WTF::CCLayerTreeHostTest::runTest):
(WTF::CCLayerTreeHostTest::doBeginTest):
(WTF::CCLayerTreeHostTestShortlived1::beginTest):
(WTF::CCLayerTreeHostTestShortlived2::beginTest):
(WTF::CCLayerTreeHostTestShortlived3::beginTest):
(WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
(WTF::CCLayerTreeHostTestOpacityChange::afterTest):
* tests/WebCompositorImplTest.cpp: Renamed from Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp.

Tools:

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::resetWebSettings):
* DumpRenderTree/chromium/TestShell.h:
* DumpRenderTree/chromium/WebPreferences.cpp:
(WebPreferences::reset):
(WebPreferences::applyTo):
* DumpRenderTree/chromium/WebPreferences.h:
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::WebViewHost):
(WebViewHost::~WebViewHost):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] X11 plugins need to be reworked for Qt5
https://bugs.webkit.org/show_bug.cgi?id=70023

Rubber-stamped by Csaba Osztrogonác.

Skip the rest of plugin tests (from http directory).
It's not reliable to test plugins without NPAPI support.

* platform/qt-5.0/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[MutationObservers] V8 bindings don't properly wrap all calls into JS
https://bugs.webkit.org/show_bug.cgi?id=72063

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2011-11-30
Reviewed by Adam Barth.

This patch changes cleans up script invocation in V8Proxy. It removes callFunctionWithoutFrame
and changes callers to simply call instrumentedFunctionCall with a null Page. Also, it implements
the non-static callFunction to be implemented in terms of instrumentedFunctionCall.

No new tests.

* bindings/v8/ScriptFunctionCall.cpp:
(WebCore::ScriptCallback::call):
* bindings/v8/V8NodeFilterCondition.cpp:
(WebCore::V8NodeFilterCondition::acceptNode):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::callFunction):
(WebCore::V8Proxy::instrumentedCallFunction):
* bindings/v8/V8Proxy.h:
* bindings/v8/custom/V8CustomXPathNSResolver.cpp:
(WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix crashing layout tests

Reviewed by Kenneth Rohde Christiansen.

Fix ASSERTION FAILED: m_key != PTHREAD_KEYS_MAX in ThreadIdentifierDataPthreads.cpp(65)
static WTF::ThreadIdentifier WTF::ThreadIdentifierData::identifier()

* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::initialize): Add missing WebCore::initializeWebCoreQt().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: [chromium] WebSQLDatabase could use some better error reporting.
Instruments the database classes to report errors to a DatabaseObserver.
https://bugs.webkit.org/show_bug.cgi?id=73258

Reviewed by David Levin.

No new tests, no content observable artifacts.

* storage/AbstractDatabase.cpp:
(WebCore::AbstractDatabase::AbstractDatabase):
(WebCore::AbstractDatabase::performOpenAndVerify):
(WebCore::AbstractDatabase::incrementalVacuumIfNeeded):
(WebCore::AbstractDatabase::reportOpenDatabaseResult):
(WebCore::AbstractDatabase::reportChangeVersionResult):
(WebCore::AbstractDatabase::reportStartTransactionResult):
(WebCore::AbstractDatabase::reportCommitTransactionResult):
(WebCore::AbstractDatabase::reportExecuteStatementResult):
(WebCore::AbstractDatabase::reportVacuumDatabaseResult):
* storage/AbstractDatabase.h:
(WebCore::AbstractDatabase::isSyncDatabase):
* storage/ChangeVersionWrapper.cpp:
(WebCore::ChangeVersionWrapper::performPreflight):
(WebCore::ChangeVersionWrapper::performPostflight):
* storage/Database.cpp:
(WebCore::Database::Database):
* storage/DatabaseSync.cpp:
(WebCore::DatabaseSync::DatabaseSync):
(WebCore::DatabaseSync::changeVersion):
* storage/SQLStatement.cpp:
(WebCore::SQLStatement::execute):
(WebCore::SQLStatement::setDatabaseDeletedError):
(WebCore::SQLStatement::setVersionMismatchedError):
(WebCore::SQLStatement::setFailureDueToQuota):
* storage/SQLStatement.h:
* storage/SQLTransaction.cpp:
(WebCore::SQLTransaction::executeSQL):
(WebCore::SQLTransaction::openTransactionAndPreflight):
(WebCore::SQLTransaction::deliverTransactionCallback):
(WebCore::SQLTransaction::runCurrentStatement):
(WebCore::SQLTransaction::handleCurrentStatementError):
(WebCore::SQLTransaction::deliverStatementCallback):
(WebCore::SQLTransaction::postflightAndCommit):
* storage/SQLTransactionSync.cpp:
(WebCore::SQLTransactionSync::begin):
(WebCore::SQLTransactionSync::commit):
* storage/chromium/DatabaseObserver.h:

Source/WebKit/chromium: [chromium] WebSQLDatabase could use some better error reporting.
Instruments the database classes to report errors a the DatabaseObserver.
https://bugs.webkit.org/show_bug.cgi?id=73258

Reviewed by David Levin.

* public/WebDatabase.h:
* public/WebDatabaseObserver.h:
(WebKit::WebDatabaseObserver::reportOpenDatabaseResult):
(WebKit::WebDatabaseObserver::reportChangeVersionResult):
(WebKit::WebDatabaseObserver::reportStartTransactionResult):
(WebKit::WebDatabaseObserver::reportCommitTransactionResult):
(WebKit::WebDatabaseObserver::reportExecuteStatementResult):
(WebKit::WebDatabaseObserver::reportVacuumDatabaseResult):
* src/DatabaseObserver.cpp:
(WebCore::DatabaseObserver::reportOpenDatabaseResult):
(WebCore::DatabaseObserver::reportChangeVersionResult):
(WebCore::DatabaseObserver::reportStartTransactionResult):
(WebCore::DatabaseObserver::reportCommitTransactionResult):
(WebCore::DatabaseObserver::reportExecuteStatementResult):
(WebCore::DatabaseObserver::reportVacuumDatabaseResult):
* src/WebDatabase.cpp:
(WebKit::WebDatabase::isSyncDatabase):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Remove dependency of Qt DRT on JavaScriptCore.

Reviewed by Csaba Osztrogonác.

* DumpRenderTree/WorkQueue.cpp: Include the correct header file we're using anyway,
instead of one that pulls in JavaScriptCore headers.
* DumpRenderTree/qt/DumpRenderTree.pro: There's no need to pull in the JSC headers
with load(javascriptcore).

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix crash when using Qt DRT with V8.

Reviewed by Csaba Osztrogonác.

Add missing handle scopes for the handles returned by mainWorldContext.

* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::injectInternalsObject):
(DumpRenderTreeSupportQt::resetInternalsObject):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Webkit gardening: chromium rebaseline for svg tests.
Unreviewed.

* platform/chromium-cg-mac-snowleopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png:
* platform/chromium-linux-x86/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.txt: Added.
* platform/chromium-linux/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Gardening - skip 2 crashers.

Unreviewed gardening.

[WK2] http/tests/security/local-image-from-remote-whitelisted.html crashes
https://bugs.webkit.org/show_bug.cgi?id=73435

[Qt][WK2] fast/multicol/pagination-v-vertical-lr.html crashes
https://bugs.webkit.org/show_bug.cgi?id=73436

* platform/wk2/Skipped:
* platform/qt-wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Update test expectations for svg test.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Re-enable layer anti-aliasing on ChromeOS.
https://bugs.webkit.org/show_bug.cgi?id=73361

Patch by David Reveman <reveman@chromium.org> on 2011-11-30
Reviewed by James Robinson.

Anti-aliasing should be enabled by default on ChromeOS.

No new tests.

* platform/graphics/chromium/cc/CCRenderSurface.cpp:
(WebCore::CCRenderSurface::drawLayer):
* platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
(WebCore::CCTiledLayerImpl::draw):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement Zoom Property in CSSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=72840

Reviewed by Andreas Kling.

Covered by fast/css/*zoom*.html

* css/CSSStyleApplyProperty.cpp:
Add new handler for zoom property (based on existing code from CSSStyleSelector.cpp)
(WebCore::ApplyPropertyZoom::resetEffectiveZoom):
(WebCore::ApplyPropertyZoom::applyInheritValue):
(WebCore::ApplyPropertyZoom::applyInitialValue):
(WebCore::ApplyPropertyZoom::applyValue):
(WebCore::ApplyPropertyZoom::createHandler):
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
Remove existing implementation.
(WebCore::CSSStyleSelector::applyProperty):
* css/CSSStyleSelector.h:
(WebCore::CSSStyleSelector::document):
Add getter for Document.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Webkit gardening: chromium rebaseline for svg tests.
Unreviewed.

* platform/chromium-cg-mac-snowleopard/svg/custom/visited-link-color-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/custom/visited-link-color-expected.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
remove buildinformation from BlackBerry porting build system
https://bugs.webkit.org/show_bug.cgi?id=73276

Patch by Mary Wu <mary.wu@torchmobile.com.cn> on 2011-11-30
Reviewed by Daniel Bates.

.:

* Source/cmake/OptionsBlackBerry.cmake: remove script file generate-buildinfo

Source/WebCore:

* PlatformBlackBerry.cmake: remove generated files BuildInformation.cpp/.h

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