[Qt] Unreviewed gardening.

Skip a new failing test introduced in r132394.

Patch by Nandor Huszka <hnandor@inf.u-szeged.hu> on 2012-10-25

* platform/qt-5.0-wk2/TestExpectations:

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

Unskip tests that are not exist already.

Patch by Nandor Huszka <hnandor@inf.u-szeged.hu> on 2012-10-25

* platform/qt-5.0-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test fast/media/w3c/test_media_queries.html is slow on Chromium debug bots after r132352
https://bugs.webkit.org/show_bug.cgi?id=100272

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-10-25
Reviewed by Kenneth Rohde Christiansen.

Test if resolution media query is supported before identifying dpi of the media.

* fast/media/w3c/test_media_queries.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Improper out-of-order call on a rule that is being removed from the stylesheet.
https://bugs.webkit.org/show_bug.cgi?id=100357

Reviewed by Vsevolod Vlasov.

* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::deleteRule):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Get rid of Ewk_View private C API (Part 2)
https://bugs.webkit.org/show_bug.cgi?id=100331

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

Convert most of the remaining Ewk_View private C API
into C++ methods in EwkViewImpl class. Only one private
C function remains but it will be taken care of in a
later patch to clean up the view construction code.

* UIProcess/API/efl/EwkViewImpl.cpp:
(EwkViewImpl::addToPageViewMap):
(EwkViewImpl::removeFromPageViewMap):
(EwkViewImpl::viewFromPageViewMap):
(EwkViewImpl::fromEvasObject):
(EwkViewImpl::informLoadFinished):
(EwkViewImpl::informProvisionalLoadRedirect):
(EwkViewImpl::informProvisionalLoadStarted):
(EwkViewImpl::informWebProcessCrashed):
(EwkViewImpl::informContentsSizeChange):
(EwkViewImpl::requestPopupMenu):
(EwkViewImpl::requestJSAlertPopup):
(EwkViewImpl::requestJSConfirmPopup):
(EwkViewImpl::requestJSPromptPopup):
(EwkViewImpl::informDatabaseQuotaReached):
(EwkViewImpl::updateTextInputState):
(EwkViewImpl::informURLChange):
(EwkViewImpl::createNewPage):
(EwkViewImpl::closePage):
* UIProcess/API/efl/EwkViewImpl.h:
(WebKit):
(EwkViewImpl):
* UIProcess/API/efl/PageClientImpl.cpp:
(WebKit::PageClientImpl::processDidCrash):
(WebKit::PageClientImpl::createPopupMenuProxy):
(WebKit::PageClientImpl::updateTextInputState):
(WebKit::PageClientImpl::didChangeContentsSize):
* UIProcess/API/efl/ewk_view.cpp:
(_ewk_view_smart_del):
(_ewk_view_initialize):
(ewk_view_url_set):
(ewk_view_reload):
(ewk_view_reload_bypass_cache):
(ewk_view_html_string_load):
* UIProcess/API/efl/ewk_view_private.h:
* UIProcess/efl/ContextHistoryClientEfl.cpp:
(WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
(WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
(WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
(WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
* UIProcess/efl/FindClientEfl.cpp:
* UIProcess/efl/FormClientEfl.cpp:
* UIProcess/efl/PageLoadClientEfl.cpp:
(WebKit::PageLoadClientEfl::didSameDocumentNavigationForFrame):
* UIProcess/efl/PageLoadClientEfl.h:
* UIProcess/efl/PagePolicyClientEfl.cpp:
* UIProcess/efl/PagePolicyClientEfl.h:
* UIProcess/efl/PageUIClientEfl.cpp:
(WebKit::PageUIClientEfl::closePage):
(WebKit::PageUIClientEfl::createNewPage):
(WebKit::PageUIClientEfl::runJavaScriptAlert):
(WebKit::PageUIClientEfl::runJavaScriptConfirm):
(WebKit::PageUIClientEfl::runJavaScriptPrompt):
(WebKit::PageUIClientEfl::exceededDatabaseQuota):
* UIProcess/efl/PageUIClientEfl.h:
* UIProcess/efl/ResourceLoadClientEfl.h:
* UIProcess/efl/WebPopupMenuProxyEfl.cpp:
(WebKit::WebPopupMenuProxyEfl::WebPopupMenuProxyEfl):
(WebKit::WebPopupMenuProxyEfl::showPopupMenu):
(WebKit::WebPopupMenuProxyEfl::hidePopupMenu):
* UIProcess/efl/WebPopupMenuProxyEfl.h:
(WebKit::WebPopupMenuProxyEfl::create):
(WebPopupMenuProxyEfl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] We can handle ActiveDOMNodes and DOMNodes in the same GC visitor
https://bugs.webkit.org/show_bug.cgi?id=100351

Reviewed by Eric Seidel.

There is no reason to handle active DOM nodes in a separate pass from
regular DOM nodes anymore.

* bindings/v8/V8DOMMap.cpp:
* bindings/v8/V8DOMMap.h:
(WebCore):
* bindings/v8/V8GCController.cpp:
(WebCore::ActiveDOMObjectPrologueVisitor::visitDOMWrapper):
(WebCore::NodeVisitor::NodeVisitor):
(NodeVisitor):
(WebCore::NodeVisitor::visitNodeWrapper):
(WebCore::V8GCController::majorGCPrologue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Make the context injected bundle client static
https://bugs.webkit.org/show_bug.cgi?id=100223

Reviewed by Kenneth Rohde Christiansen.

It doesn't need any data from QtWebContext.

* UIProcess/qt/QtWebContext.cpp:
(WebKit::didReceiveMessageFromInjectedBundle):
(WebKit):
(WebKit::initializeContextInjectedBundleClient):
(WebKit::QtWebContext::defaultContext):
* UIProcess/qt/QtWebContext.h:
(QtWebContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: NMI instrument InspectorDebuggerAgent. It uses a lot of memory on heavy js sites because it keeps all the scripts in a map.
https://bugs.webkit.org/show_bug.cgi?id=100340

Reviewed by Yury Semikhatsky.

* dom/WebCoreMemoryInstrumentation.cpp:
(WebCore):
* dom/WebCoreMemoryInstrumentation.h:
(WebCoreMemoryTypes):
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::reportMemoryUsage):
(WebCore):
(WebCore::ScriptDebugListener::Script::reportMemoryUsage):
* inspector/InspectorDebuggerAgent.h:
(InspectorDebuggerAgent):
* inspector/ScriptDebugListener.h:
(Script):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Detach WebContext's clients from QtWebContext
https://bugs.webkit.org/show_bug.cgi?id=100224

Reviewed by Simon Hausmann.

The lifetime of WebContext isn't bound to QtWebContext and we wouldn't
keep a reference to our WebContext and would create a new one if a new
QQuickWebView/QtWebContext was created after we destroyed our QtWebContext.
This would cause a new WebContext and a new web process and somehow the
new WebContext could pick the IPC messages from the old WebProcess
and this would cause the new download client to receive messages about
downloads he doesn't know about and crash.

We assumed in the past that we would need multiple WebContext to allow
multiple web processes but this assumption doesn't hold anymore with
the work on ProcessModelMultipleSecondaryProcesses.
This patch enforces the use of a single WebContext by:
- Holding a single instance of QtWebIconDatabaseClient and QtDownloadManager
statically in QtWebContext
- Removing the context ID from QWebIconImageProvider's URLs
- Using QtWebContext as a temporary wrapper handle on WebContext to
initialize the WebContext's clients and allow us creating the first web page

platformInvalidateContext is used to clean up static global instances
when the WebContext is getting destroyed.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::handleDownloadRequest):
* UIProcess/API/qt/qwebiconimageprovider.cpp:
(QWebIconImageProvider::iconURLForPageURLInContext):
(QWebIconImageProvider::requestImage):
* UIProcess/qt/QtWebContext.cpp:
(WebKit):
(WebKit::QtWebContext::QtWebContext):
(WebKit::QtWebContext::~QtWebContext):
(WebKit::QtWebContext::create):
(WebKit::QtWebContext::defaultContext):
(WebKit::QtWebContext::downloadManager):
(WebKit::QtWebContext::iconDatabase):
(WebKit::QtWebContext::invalidateContext):
* UIProcess/qt/QtWebContext.h:
(QtWebContext):
* UIProcess/qt/QtWebIconDatabaseClient.cpp:
(WebKit::QtWebIconDatabaseClient::QtWebIconDatabaseClient):
* UIProcess/qt/QtWebIconDatabaseClient.h:
(WebKit):
(QtWebIconDatabaseClient):
* UIProcess/qt/WebContextQt.cpp:
(WebKit::WebContext::platformInvalidateContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add missing namespace.
https://bugs.webkit.org/show_bug.cgi?id=100251

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-25
Reviewed by Kenneth Rohde Christiansen.

Add 'WebKit' namespace for BatteryProvider, NetworkInfoProvider and
VibrationProvider.

* UIProcess/API/efl/BatteryProvider.h:
(WebKit):
* UIProcess/API/efl/NetworkInfoProvider.cpp:
* UIProcess/API/efl/NetworkInfoProvider.h:
(WebKit):
* UIProcess/API/efl/VibrationProvider.cpp:
* UIProcess/API/efl/VibrationProvider.h:
(WebKit):
* UIProcess/API/efl/ewk_context_private.h:
(WebKit):
(Ewk_Context):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Gardening after r132386
https://bugs.webkit.org/show_bug.cgi?id=100362

Unreviewed gardening.

Skipped crashing fast/dom/nested-script-exceptions.html, networkinformation/multiple-frames.html,
networkinformation/basic-all-types-of-events.html, networkinformation/updates.html, networkinformation/add-listener-from-callback.html,
networkinformation/basic-operation.html, svg/foreignObject/viewport-foreignobject-crash.html for EFL WK2.

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-10-25

* platform/efl-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][QT] Remove test which is not exist
https://bugs.webkit.org/show_bug.cgi?id=100366

Unreviewed. fast/dom/shadow/athost-atrules.html has been removed after r132403.

Patch by KwangYong Choi <ky0.choi@samsung.com> on 2012-10-25

* platform/efl-wk1/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] JavaScript popups are not focused when opened
https://bugs.webkit.org/show_bug.cgi?id=100354

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2012-10-25
Reviewed by Kenneth Rohde Christiansen.

Move focus to the JavaScript popups when opened so that the key events
are forwarded to the popups instead of web view.

* MiniBrowser/efl/main.c:
(on_javascript_alert):
(on_javascript_confirm):
(on_javascript_prompt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening after r132394
https://bugs.webkit.org/show_bug.cgi?id=100365

Unreviewed gardening.

Skipping of newly added compositing/tiling/backface-preserve-3d-tiled.html
test fail on EFL port due to missing AC support.

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-10-25

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Pixel tests need rebaseline
https://bugs.webkit.org/show_bug.cgi?id=99323

Unreviewed pixel gardening.

Rebase some results for qt-5.0-wk2, mark wrong results as expected fail.

* platform/qt-5.0-wk2/TestExpectations:
* platform/qt-5.0-wk2/compositing/direct-image-compositing-expected.png:
* platform/qt-5.0-wk2/compositing/text-on-scaled-layer-expected.png: Added.
* platform/qt-5.0-wk2/compositing/text-on-scaled-surface-expected.png: Added.
* platform/qt-5.0-wk2/compositing/visibility/visibility-simple-video-layer-expected.png: Added.
* platform/qt-5.0-wk2/css3/filters/effect-drop-shadow-hw-expected.png: Added.
* platform/qt-5.0-wk2/fast/css-generated-content/012-expected.png: Added.
* platform/qt-5.0-wk2/fast/css-generated-content/014-expected.png: Added.
* platform/qt-5.0-wk2/fast/css-generated-content/hover-style-change-expected.png: Added.
* platform/qt-5.0-wk2/fast/css/compare-content-style-expected.png: Added.
* platform/qt-5.0-wk2/fast/forms/box-shadow-override-expected.png: Added.
* platform/qt-5.0-wk2/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Added.
* platform/qt-5.0-wk2/fast/inline-block/overflow-clip-expected.png: Added.
* platform/qt-5.0-wk2/fast/repaint/line-flow-with-floats-in-regions-expected.png: Added.
* platform/qt-5.0-wk2/http/tests/navigation/javascriptlink-frames-expected.png: Added.
* platform/qt-5.0-wk2/svg/W3C-SVG-1.1-SE/filters-image-03-f-expected.png: Added.
* platform/qt-5.0-wk2/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.png: Added.
* platform/qt-5.0-wk2/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.png: Removed.
* platform/qt-5.0-wk2/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
* platform/qt-5.0-wk2/svg/as-image/img-preserveAspectRatio-support-1-expected.png: Added.
* platform/qt-5.0-wk2/svg/custom/js-late-pattern-and-object-creation-expected.png: Added.
* platform/qt-5.0-wk2/svg/transforms/text-with-pattern-with-svg-transform-expected.png: Added.
* platform/qt/TestExpectations:
* platform/qt/ietestcenter/css3/bordersbackgrounds/border-radius-content-edge-001-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Drag and drop property value from Inspector is not working as expected
https://bugs.webkit.org/show_bug.cgi?id=100040

Reviewed by Vsevolod Vlasov.

Do not start a custom drag for a tree element if there is a non-collapsed selection in the Inspector.

* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeOutline.prototype._ondragstart):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, fix Web Inspector frontend compilability

* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeOutline.prototype._ondragstart):
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
(WebInspector.StylePropertyTreeElement.prototype):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][AC] Fix build break when AC is enabled
https://bugs.webkit.org/show_bug.cgi?id=100367

Unreviewed build fix after r132405.

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2012-10-25

* UIProcess/API/efl/PageViewportControllerClientEfl.cpp:
(WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed rebaseline after https://bugs.webkit.org/show_bug.cgi?id=99874.

* platform/chromium-mac-lion/svg/zoom/page/zoom-svg-float-border-padding-expected.png: Added.
* platform/chromium-mac-lion/svg/zoom/text/zoom-svg-float-border-padding-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-svg-float-border-padding-expected.png:
* platform/chromium-mac-snowleopard/svg/zoom/text/zoom-svg-float-border-padding-expected.png:
* platform/chromium-mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.png:
* platform/chromium-mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.png:
* platform/chromium-win/svg/zoom/page/zoom-svg-float-border-padding-expected.png:
* platform/chromium-win/svg/zoom/text/zoom-svg-float-border-padding-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Add supportMultipleWindows setting, needed for Android
https://bugs.webkit.org/show_bug.cgi?id=99716

Reviewed by Adam Barth.

Add supportMultipleWindows settings for reusing the same view when
opening popups. This is required for emulating the behavior of
Android WebView. Adding into WebCore, as other ports might want to
use this setting in the future.

Source/WebCore:

Tests: fast/dom/HTMLAnchorElement/anchor-no-multiple-windows.html
       fast/dom/Window/window-open-no-multiple-windows.html
       fast/forms/post-popup-no-multiple-windows.html

* loader/FrameLoader.cpp:
(WebCore::createWindow):
* page/ContextMenuController.cpp:
(WebCore::openNewWindow):
* page/Settings.cpp:
(WebCore::Settings::Settings):
(WebCore::Settings::setSupportsMultipleWindows):
(WebCore):
* page/Settings.h:
(Settings):
(WebCore::Settings::supportsMultipleWindows):

Source/WebKit/chromium:

* public/WebSettings.h:
* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::dispatchCreatePage):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setSupportsMultipleWindows):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):

Tools:

* DumpRenderTree/chromium/DRTTestRunner.cpp:
(DRTTestRunner::overridePreference):
* DumpRenderTree/chromium/WebPreferences.cpp:
(WebPreferences::reset):
(WebPreferences::applyTo):
* DumpRenderTree/chromium/WebPreferences.h:
(WebPreferences):

LayoutTests:

* fast/dom/HTMLAnchorElement/anchor-no-multiple-windows-expected.txt: Added.
* fast/dom/HTMLAnchorElement/anchor-no-multiple-windows.html: Added.
* fast/dom/Window/window-open-no-multiple-windows-expected.txt: Added.
* fast/dom/Window/window-open-no-multiple-windows.html: Added.
* fast/forms/post-popup-no-multiple-windows-expected.txt: Added.
* fast/forms/post-popup-no-multiple-windows.html: Added.
* platform/chromium/fast/dom/HTMLAnchorElement/anchor-no-multiple-windows-expected.txt: Added.
* platform/chromium/fast/dom/Window/window-open-no-multiple-windows-expected.txt: Added.
* platform/chromium/fast/forms/post-popup-no-multiple-windows-expected.txt: Added.

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