[EFL][DRT] EFL's DRT needs "postProgressFinishedNotification" message
https://bugs.webkit.org/show_bug.cgi?id=87833

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-05-30
Reviewed by Tor Arne Vestbø.

Tools:

Print "postProgressFinishedNotification" message if frame load finished
to unskip http/tests/loading/progress-finished-callback.html.

* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::onFrameLoadFinished):

LayoutTests:

* platform/efl/Skipped: Unskipped http/tests/loading/progress-finished-callback.html.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Do renames in ViewportInteractionEngine as agreed upon
https://bugs.webkit.org/show_bug.cgi?id=87845

Reviewed by Simon Hausmann.

Mostly moving methods around and renaming them to be more
consistent and avoid terminology clashes.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewFlickablePrivate::didChangeViewportProperties):
(QQuickWebViewFlickablePrivate::pageDidRequestScroll):
(QQuickWebViewFlickablePrivate::didChangeContentsSize):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::boundPosition):
(WebKit):
(WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):
(WebKit::QtViewportInteractionEngine::setPageItemRectVisible):
(WebKit::QtViewportInteractionEngine::animatePageItemRectVisible):
(WebKit::QtViewportInteractionEngine::flickMoveStarted):
(WebKit::QtViewportInteractionEngine::flickMoveEnded):
(WebKit::QtViewportInteractionEngine::pageItemPositionChanged):
(WebKit::QtViewportInteractionEngine::pageContentPositionRequest):
(WebKit::QtViewportInteractionEngine::scaleAnimationValueChanged):
(WebKit::QtViewportInteractionEngine::computePosRangeForPageItemAtScale):
(WebKit::QtViewportInteractionEngine::focusEditableArea):
(WebKit::QtViewportInteractionEngine::zoomToAreaGestureEnded):
(WebKit::QtViewportInteractionEngine::nearestValidBounds):
(WebKit::QtViewportInteractionEngine::cancelScrollAnimation):
(WebKit::QtViewportInteractionEngine::pinchGestureEnded):
(WebKit::QtViewportInteractionEngine::pageItemSizeChanged):
* UIProcess/qt/QtViewportInteractionEngine.h:
(WebKit::QtViewportInteractionEngine::setDevicePixelRatio):
(QtViewportInteractionEngine):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
File.lastModifiedDate must return null if the modified time info is not available
https://bugs.webkit.org/show_bug.cgi?id=87709

Reviewed by Kentaro Hara.

Source/WebCore:

Per File API spec, File.lastModifiedDate must return null if the
modified time info is not available.
http://dev.w3.org/2006/webapi/FileAPI/#dfn-lastModifiedDate

Test: http/tests/local/fileapi/file-last-modified-after-delete.html

* fileapi/File.cpp:
(WebCore::File::lastModifiedDateForBinding): Added.
(WebCore):
* fileapi/File.h:
(File):
* fileapi/File.idl: Added ImplementedAs=lastModifiedDateForBinding.

LayoutTests:

* http/tests/local/fileapi/file-last-modified-after-delete-expected.txt: Added.
* http/tests/local/fileapi/file-last-modified-after-delete.html: Added.
* http/tests/local/fileapi/resources/temp-file-utils.js: Added.
* http/tests/local/fileapi/script-tests/file-last-modified-after-delete.js: Added.
* http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js: Factored out common temp-file related functions into temp-file-utils.js.
* http/tests/local/fileapi/send-sliced-dragged-file.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Add trace() method to the WorkerConsole
https://bugs.webkit.org/show_bug.cgi?id=87656

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-05-30
Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshotProxy.js:
(WebInspector.HeapSnapshotRealWorker.prototype._messageReceived):
* inspector/front-end/HeapSnapshotWorker.js:
(WebInspector.WorkerConsole.prototype.trace):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for WinCE after r118603.

* wtf/Atomics.h:
(WTF::weakCompareAndSwap):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Move ViewportAttribute related methods to the interaction engine.
https://bugs.webkit.org/show_bug.cgi?id=87855

Reviewed by Simon Hausmann.

Move the logic of didChange{ViewportProperties|ContentsSize} to the
interaction engine and update our testing object.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewLegacyPrivate::QQuickWebViewLegacyPrivate):
(QQuickWebViewFlickablePrivate::didChangeViewportProperties):
(QQuickWebViewFlickablePrivate::didChangeContentsSize):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate):
* UIProcess/API/qt/qwebkittest.cpp:
(QWebKitTest::contentsScale):
(QWebKitTest::devicePixelRatio):
(QWebKitTest::initialScale):
(QWebKitTest::minimumScale):
(QWebKitTest::maximumScale):
(QWebKitTest::isScalable):
(QWebKitTest::layoutSize):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::viewportAttributesChanged):
(WebKit):
(WebKit::QtViewportInteractionEngine::pageContentsSizeChanged):
* UIProcess/qt/QtViewportInteractionEngine.h:
(QtViewportInteractionEngine):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed: Fix wrongly typed Qt slot.

* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: disable ExactlyInt feature in InspectorTypeBuilder since it breaks release Windows 7 WK2
https://bugs.webkit.org/show_bug.cgi?id=87857

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

Code generator is patched to support old style of int parameter.

* inspector/CodeGeneratorInspector.py:
(TypeModel.init_class):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More Windows test cleanup.

Update the Skipped list and tests for features turned on/off on Windows.

* platform/win/Skipped:
* platform/win/fast/dom/constructed-objects-prototypes-expected.txt: Added.
* platform/win/fast/js/global-constructors-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed WinCE build fix after r117470.

* WebCoreSupport/EditorClientWinCE.h:
(EditorClientWinCE):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Win] REGRESSION(r118018) fast/js/names.html failing due to JavaScriptExperiments not being
enabled on Windows
https://bugs.webkit.org/show_bug.cgi?id=87858

Skip the test on Windows to get the bots greener.

* platform/win/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed WinCE build fix after r115926.

* WebView.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, removed some tests from the test_expectations file as
they have been regularly passing in the 3 GTK bots for some time.

* platform/gtk/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Build fix for !ENABLE(JIT) after r117823.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::dump):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG CFA should infer types and values of captured variables
https://bugs.webkit.org/show_bug.cgi?id=87813

Reviewed by Gavin Barraclough.
        
Slight speed-up in V8/earley-boyer (~1%).

* bytecode/CodeBlock.h:
(JSC::CodeBlock::argumentsAreCaptured):
(JSC::CodeBlock::argumentIsCaptured):
(CodeBlock):
* dfg/DFGAbstractState.cpp:
(DFG):
(JSC::DFG::AbstractState::beginBasicBlock):
(JSC::DFG::AbstractState::initialize):
(JSC::DFG::AbstractState::endBasicBlock):
(JSC::DFG::AbstractState::execute):
(JSC::DFG::AbstractState::clobberWorld):
(JSC::DFG::AbstractState::clobberStructures):
(JSC::DFG::AbstractState::mergeStateAtTail):
(JSC::DFG::AbstractState::merge):
(JSC::DFG::AbstractState::mergeToSuccessors):
* dfg/DFGAbstractState.h:
(JSC::DFG::AbstractState::variables):
(AbstractState):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][DRT] http/tests/navigation/new-window-redirect-history.html does not pass
https://bugs.webkit.org/show_bug.cgi?id=87848

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-05-30
Reviewed by Csaba Osztrogonác.

Tools:

The reason was that DumpRenderTreeChrome::extraViews() returned copy of the vector
and dumpBackForwardListForWebViews() used iterators belonging actually to different vectors
(browser->extraViews().begin() and browser->extraViews().end()) as if they had belonged to the same vector.

* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::extraViews):
* DumpRenderTree/efl/DumpRenderTreeChrome.h:
(DumpRenderTreeChrome):

LayoutTests:

* platform/efl/Skipped: Unskipped http/tests/navigation/new-window-redirect-history.html.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
HashTable.h has using directives for std::pair and std::make_pair
https://bugs.webkit.org/show_bug.cgi?id=29919

Reviewed by Darin Adler.

Source/WebCore:

Change code to use std::pair and std::make_pair.

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::postNotification):
* html/MediaFragmentURIParser.cpp:
(WebCore::MediaFragmentURIParser::parseFragments):
* html/parser/HTMLMetaCharsetParser.cpp:
(WebCore::HTMLMetaCharsetParser::processMeta):
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::brokenImage):
* page/PageSerializer.cpp:
(WebCore::isCharsetSpecifyingNode):

Source/WebKit2:

Change code to use std::pair and std::make_pair.

* UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
(WebKit::DynamicLinkerEnvironmentExtractor::processEnvironmentVariable):
* UIProcess/WebContext.cpp:
(WebKit::WebContext::postMessageToInjectedBundle):

Source/WTF:

Change code to use std::pair and std::make_pair. Later patch will remove the
'using' directives.

* wtf/HashTable.h:
(WTF::hashTableSwap):
(HashTable):
* wtf/HashTraits.h:
(PairHashTraits):
(WTF::PairHashTraits::emptyValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
mathml/presentation/mo-stretch.html and mroot-pref-width.html tests fail on Mac
https://bugs.webkit.org/show_bug.cgi?id=86786

The test result files below contain slightly improved metrics (usually by a single
pixel) and some other very minor (visually undetectable) pixel changes. To be honest,
I'm not sure what caused all these changes, since a lot of mathml tests have been
skipped or failing for a while. The small metric improvements were not caused by changes
in mathml code - perhaps LayoutUnit rounding or other 1-pixel corrections in logical
width code? At any rate, I'd like to rebaseline these tests, and unskip them and other
mathml tests.

Unreviewed rebaselining/gardening.

* platform/mac-lion/Skipped:
* platform/mac/Skipped:
* platform/mac/mathml/presentation/attributes-expected.png:
* platform/mac/mathml/presentation/fenced-mi-expected.png:
* platform/mac/mathml/presentation/fractions-expected.png:
* platform/mac/mathml/presentation/fractions-expected.txt:
* platform/mac/mathml/presentation/fractions-vertical-alignment-expected.png:
* platform/mac/mathml/presentation/fractions-vertical-alignment-expected.txt:
* platform/mac/mathml/presentation/mo-stretch-expected.png:
* platform/mac/mathml/presentation/mo-stretch-expected.txt:
* platform/mac/mathml/presentation/roots-expected.png:
* platform/mac/mathml/presentation/subsup-expected.png:
* platform/mac/mathml/presentation/subsup-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Updating test expectations (css3/filters/custom-filter-property-computed-style,
fast/frames/cached-frame-counter).

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@118936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2: Implement layoutTestController.setPluginsEnabled() in WebKitTestRunner.
https://bugs.webkit.org/show_bug.cgi?id=58593

Source/WebKit2:

Adds the ability to change the pluginsEnabled flag in WebCore::Settings
to WebKitTestRunner's LayoutTestController. The flag is modified via the
public C API of the WebProcess.

Patch by Marcelo Lira <marcelo.lira@openbossa.org> on 2012-05-30
Reviewed by Darin Adler.

* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleSetPluginsEnabled):
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::setPluginsEnabled): Calls the setPluginsEnabled
method for the WebCore::Settings of each WebCore::Page in the current
page group.
(WebKit):
* WebProcess/InjectedBundle/InjectedBundle.h:
(InjectedBundle):

Tools:

Adds the ability to change the pluginsEnabled flag in WebCore::Settings
to WebKitTestRunner's LayoutTestController. The flag is modified via the
public C API of the WebProcess.

Patch by Marcelo Lira <marcelo.lira@openbossa.org> on 2012-05-30
Reviewed by Darin Adler.

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::setPluginsEnabled): Just calls the
WKBundleSetPluginsEnabled function in the public C API of WebProcess.
* WebKitTestRunner/InjectedBundle/LayoutTestController.h:

LayoutTests:

Unskip passing tests.

Patch by Marcelo Lira <marcelo.lira@openbossa.org> on 2012-05-30
Reviewed by Darin Adler.

* platform/wk2/Skipped:

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