[Win] Eliminate use of deleteAllValues in Windows Files
https://bugs.webkit.org/show_bug.cgi?id=131631

Reviewed by Darin Adler.


Source/WebCore: 
Update to use std::unique_ptr for object lifetime. Get rid of
deleteAllValues now that it is no loner needed. Use ranged for
loops where possible.

* platform/win/WCDataObject.cpp:
(WebCore::WCEnumFormatEtc::WCEnumFormatEtc):
(WebCore::WCDataObject::~WCDataObject):
(WebCore::WCDataObject::GetData):
(WebCore::WCDataObject::QueryGetData):
(WebCore::WCDataObject::SetData):
(WebCore::WCDataObject::clearData):
* platform/win/WCDataObject.h:

Tools: 
Switch to std::unique_ptr for memory lifetime. Get rid of
deleteAllValues now that it is no longer needed. Use ranged
for loops where possible.

* DumpRenderTree/win/DRTDataObject.cpp:
(WCEnumFormatEtc::WCEnumFormatEtc):
(DRTDataObject::~DRTDataObject):
(DRTDataObject::GetData):
(DRTDataObject::QueryGetData):
(DRTDataObject::SetData):
(DRTDataObject::clearData):
* DumpRenderTree/win/DRTDataObject.h:
* DumpRenderTree/win/UIDelegate.cpp:
(DRTUndoObject::DRTUndoObject):
(DRTUndoObject::~DRTUndoObject):
(DRTUndoStack::~DRTUndoStack):
(DRTUndoStack::clear):
(DRTUndoStack::pop):
(DRTUndoManager::DRTUndoManager):
(DRTUndoManager::redo):
(DRTUndoManager::undo):
(UIDelegate::UIDelegate):
(UIDelegate::resetUndoManager):
* DumpRenderTree/win/UIDelegate.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove references to Leopard and Snow Leopard from Windows TestExpectations

Filed new bugs to track each of these tests, so someone with a windows
build can try and see if the tests still fail.

Unreviewed.

* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove fast/parser/parser-yield-timing.html from skipped list
https://bugs.webkit.org/show_bug.cgi?id=131749

Reviewed by Darin Adler.

The test was originally skipped in Bug 89812 due to flakiness on Chromium
debug bots. I run the tests with huge iterations and I don't see
flakiness on Mavericks release/debug. Let's remove from skipped for now.

* platform/mac/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DataTransfer should cache its FileList
https://bugs.webkit.org/show_bug.cgi?id=131694

Reviewed by Darin Adler.

Source/WebCore:
Test: fast/events/data-transfer-files-attribute-identity.html

* bindings/js/SerializedScriptValue.cpp: (WebCore::CloneDeserializer::readTerminal):
Switched to a new FileList constructor, CloneDeserializer doesn't really need to modify
the FileList with append().

* dom/DataTransfer.h:
* dom/DataTransfer.cpp:
(WebCore::DataTransfer::types): Added a FIXME.
(WebCore::DataTransfer::files): Changed to reuse a cached FileList. It's currently
easy, because we don't support DataTransferItemList. Once we do, making any changes
through it will also require updating the FileList in a way that doesn't replace
File objects for unchanged files.

* fileapi/FileList.h:
(WebCore::FileList::create):
(WebCore::FileList::isEmpty):
(WebCore::FileList::FileList):
(WebCore::FileList::append):
(WebCore::FileList::clear):
Made non-const functions private, because neither DataTransfer nor FileInputType
expect the list to be modified without their knowledge. Added a new Vector based
constructor so that a FileList could be created without the use of append().

* html/FileInputType.cpp: (WebCore::FileInputType::createFileList): Simplified
the code a little bit. FileInputType still needs to modify the list for clear(),
but doesn't need to add to it dynamically - unlike with DataTransfer, it's expected
to create a new FileList when it's modified.

LayoutTests:
* fast/events/data-transfer-files-attribute-identity-expected.txt: Added.
* fast/events/data-transfer-files-attribute-identity.html: Added.

* platform/wk2/TestExpectations: Skipped the test, because WKTR doesn't support
file dragging yet.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename LayoutTests/platformm/iphone-simulator => ios-sim

* platform/ios-sim: Renamed from LayoutTests/platform/iphone-simulator.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Win] Pass default parameters to cygwin setup wizard
https://bugs.webkit.org/show_bug.cgi?id=131361

Reviewed by Brent Fulgham.

Added some parameters to the cygwin setup wizard so the user
doesn't really have to do any interaction.

* CygwinDownloader/cygwin-downloader.py:
* CygwinDownloader/cygwin-downloader.zip:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Upstream iOS layout test results

7354 files changed, 367781 insertions(+)

* platform/ios-sim: Add.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<http://webkit.org/b/129171> Rebaseline LayoutTests for iOS

3206 files changed, 65535 insertions(+), 39972 deletions(-)

* platform/ios-sim/Skipped: Clean up old items.  Skip tests that
time out due to notifyDone() not being called.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove test results that match top-level results

Found using this shell script:

$ for F in `find LayoutTests/platform/ios-sim -name \*-expected.txt`; do \
T=`echo $F | sed -e 's#platform/ios-sim/##'`; \
M=`echo $F | sed -e 's#platform/ios-sim/#platform/mac/#'`; \
ML=`echo $F | sed -e 's#platform/ios-sim/#platform/mac-mountainlion/#'`; \
if [ ! -f $M -a ! -f $ML -a -f $T -a -z "`diff -u $F $T 2> /dev/null`" ]; then echo $F; fi; \
done

* platform/ios-sim/compositing/layer-creation/no-compositing-for-sticky-expected.txt: Removed.
* platform/ios-sim/editing/inserting/insert-3786362-fix-expected.txt: Removed.
* platform/ios-sim/editing/inserting/insert-3907422-fix-expected.txt: Removed.
* platform/ios-sim/editing/unsupported-content/table-delete-001-expected.txt: Removed.
* platform/ios-sim/editing/unsupported-content/table-delete-003-expected.txt: Removed.
* platform/ios-sim/fast/block/positioning/move-with-auto-width-expected.txt: Removed.
* platform/ios-sim/fast/canvas/2d.backingStorePixelRatio-expected.txt: Removed.
* platform/ios-sim/fast/canvas/2d.imageDataHD-expected.txt: Removed.
* platform/ios-sim/fast/canvas/canvas-fillPath-shadow-expected.txt: Removed.
* platform/ios-sim/fast/canvas/webgl/texture-npot-expected.txt: Removed.
* platform/ios-sim/fast/css/MarqueeLayoutTest-expected.txt: Removed.
* platform/ios-sim/fast/css/color-leakage-expected.txt: Removed.
* platform/ios-sim/fast/css/font-face-multiple-remote-sources-expected.txt: Removed.
* platform/ios-sim/fast/css/font-face-remote-expected.txt: Removed.
* platform/ios-sim/fast/css/getComputedStyle/computed-style-expected.txt: Removed.
* platform/ios-sim/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Removed.
* platform/ios-sim/fast/css/nested-layers-with-hover-expected.txt: Removed.
* platform/ios-sim/fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1-expected.txt: Removed.
* platform/ios-sim/fast/dom/Window/window-postmessage-arrays-expected.txt: Removed.
* platform/ios-sim/fast/dom/constructed-objects-prototypes-expected.txt: Removed.
* platform/ios-sim/fast/dom/gc-10-expected.txt: Removed.
* platform/ios-sim/fast/dom/tabindex-clamp-expected.txt: Removed.
* platform/ios-sim/fast/dynamic/dirty-float-in-clean-line-expected.txt: Removed.
* platform/ios-sim/fast/events/pageshow-pagehide-on-back-cached-with-frames-expected.txt: Removed.
* platform/ios-sim/fast/forms/mailto/advanced-get-expected.txt: Removed.
* platform/ios-sim/fast/forms/mailto/advanced-put-expected.txt: Removed.
* platform/ios-sim/fast/forms/radio/indeterminate-radio-expected.txt: Removed.
* platform/ios-sim/fast/forms/select-script-onchange-expected.txt: Removed.
* platform/ios-sim/fast/forms/suggested-value-expected.txt: Removed.
* platform/ios-sim/fast/history/timed-refresh-in-cached-frame-expected.txt: Removed.
* platform/ios-sim/fast/lists/inline-before-content-after-list-marker-expected.txt: Removed.
* platform/ios-sim/fast/media/media-query-list-07-expected.txt: Removed.
* platform/ios-sim/fast/media/print-restores-previous-mediatype-expected.txt: Removed.
* platform/ios-sim/fast/multicol/span/before-child-anonymous-column-block-expected.txt: Removed.
* platform/ios-sim/fast/overflow/horizontal-scroll-after-back-expected.txt: Removed.
* platform/ios-sim/fast/overflow/scrollbar-restored-expected.txt: Removed.
* platform/ios-sim/fast/repaint/table-hover-on-link-expected.txt: Removed.
* platform/ios-sim/fast/repaint/table-section-repaint-expected.txt: Removed.
* platform/ios-sim/fast/ruby/floating-ruby-text-expected.txt: Removed.
* platform/ios-sim/fast/ruby/overhang-horizontal-expected.txt: Removed.
* platform/ios-sim/fast/ruby/overhang-horizontal-no-overlap1-expected.txt: Removed.
* platform/ios-sim/fast/ruby/overhang-horizontal-no-overlap2-expected.txt: Removed.
* platform/ios-sim/fast/ruby/positioned-ruby-text-expected.txt: Removed.
* platform/ios-sim/fast/ruby/ruby-text-before-child-split-expected.txt: Removed.
* platform/ios-sim/fast/table/empty-row-crash-expected.txt: Removed.
* platform/ios-sim/fast/table/empty-section-crash-expected.txt: Removed.
* platform/ios-sim/fast/table/inline-form-assert-expected.txt: Removed.
* platform/ios-sim/fast/table/max-width-integer-overflow-expected.txt: Removed.
* platform/ios-sim/fast/table/table-row-split2-expected.txt: Removed.
* platform/ios-sim/fast/table/table-section-split2-expected.txt: Removed.
* platform/ios-sim/fast/table/table-split-expected.txt: Removed.
* platform/ios-sim/fast/table/table-split2-expected.txt: Removed.
* platform/ios-sim/fast/text/apply-start-width-after-skipped-text-expected.txt: Removed.
* platform/ios-sim/fast/text/justify-padding-distribution-expected.txt: Removed.
* platform/ios-sim/fast/text/selection-painted-separately-expected.txt: Removed.
* platform/ios-sim/fast/text/setData-dirty-lines-expected.txt: Removed.
* platform/ios-sim/fast/text/soft-hyphen-2-expected.txt: Removed.
* platform/ios-sim/fast/text/splitText-dirty-lines-expected.txt: Removed.
* platform/ios-sim/fast/transforms/shadows-expected.txt: Removed.
* platform/ios-sim/fast/workers/worker-close-more-expected.txt: Removed.
* platform/ios-sim/fast/writing-mode/table-percent-width-quirk-expected.txt: Removed.
* platform/ios-sim/fast/xmlhttprequest/xmlhttprequest-recursive-sync-event-expected.txt: Removed.
* platform/ios-sim/http/tests/appcache/abort-cache-onchecking-manifest-404-expected.txt: Removed.
* platform/ios-sim/http/tests/cookies/simple-cookies-expired-expected.txt: Removed.
* platform/ios-sim/http/tests/cookies/simple-cookies-max-age-expected.txt: Removed.
* platform/ios-sim/http/tests/cookies/single-quoted-value-expected.txt: Removed.
* platform/ios-sim/http/tests/misc/empty-urls-expected.txt: Removed.
* platform/ios-sim/http/tests/multipart/load-last-non-html-frame-expected.txt: Removed.
* platform/ios-sim/http/tests/navigation/post-goback1-expected.txt: Removed.
* platform/ios-sim/http/tests/security/contentSecurityPolicy/connect-src-websocket-blocked-expected.txt: Removed.
* platform/ios-sim/http/tests/security/contentSecurityPolicy/media-src-blocked-expected.txt: Removed.
* platform/ios-sim/http/tests/security/local-video-poster-from-remote-expected.txt: Removed.
* platform/ios-sim/http/tests/security/sandboxed-iframe-modify-self-expected.txt: Removed.
* platform/ios-sim/http/tests/security/video-poster-cross-origin-crash-expected.txt: Removed.
* platform/ios-sim/http/tests/xmlhttprequest/chunked-progress-event-expectedLength-expected.txt: Removed.
* platform/ios-sim/http/tests/xmlhttprequest/request-encoding2-expected.txt: Removed.
* platform/ios-sim/http/tests/xmlhttprequest/upload-onloadend-event-after-load-expected.txt: Removed.
* platform/ios-sim/http/tests/xmlhttprequest/upload-onprogress-event-expected.txt: Removed.
* platform/ios-sim/http/tests/xmlhttprequest/upload-progress-events-expected.txt: Removed.
* platform/ios-sim/media/csp-blocks-video-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_510/S7.6_A3.1-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_510/S7.6_A3.2-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_510/S7.6_A5.3_T1-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_510/S7.6_A5.3_T2-expected.txt: Removed.
* platform/ios-sim/svg/as-image/image-respects-pageScaleFactor-change-expected.txt: Removed.
* platform/ios-sim/svg/css/getComputedStyle-basic-expected.txt: Removed.
* platform/ios-sim/svg/custom/baseval-animval-equality-expected.txt: Removed.
* platform/ios-sim/svg/custom/dasharrayOrigin-expected.txt: Removed.
* platform/ios-sim/svg/custom/getSubStringLength-expected.txt: Removed.
* platform/ios-sim/svg/custom/pattern-scaling-expected.txt: Removed.
* platform/ios-sim/svg/custom/svg-features-expected.txt: Removed.
* platform/ios-sim/svg/dom/altGlyph-dom-expected.txt: Removed.
* platform/ios-sim/svg/foreignObject/fO-parent-display-none-expected.txt: Removed.
* platform/ios-sim/svg/foreignObject/fO-parent-display-none-with-relative-pos-content-expected.txt: Removed.
* platform/ios-sim/svg/foreignObject/fO-parent-of-parent-display-none-expected.txt: Removed.
* platform/ios-sim/svg/foreignObject/fO-parent-of-parent-display-none-with-relative-pos-content-expected.txt: Removed.
* platform/ios-sim/svg/hittest/svg-ellipse-non-scale-stroke-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove test results that match platform/mac results

Found using this shell script:

$ for F in `find LayoutTests/platform/ios-sim -name \*-expected.txt`; do \
T=`echo $F | sed -e 's#platform/ios-sim/##'`; \
M=`echo $F | sed -e 's#platform/ios-sim/#platform/mac/#'`; \
ML=`echo $F | sed -e 's#platform/ios-sim/#platform/mac-mountainlion/#'`; \
if [ -f $M -a ! -f $ML -a -z "`diff -u $F $M 2> /dev/null`" ]; then echo $F; fi; \
done

* platform/ios-sim/fast/block/positioning/016-expected.txt: Removed.
* platform/ios-sim/fast/block/positioning/025-expected.txt: Removed.
* platform/ios-sim/fast/dom/icon-url-property-expected.txt: Removed.
* platform/ios-sim/fast/hidpi/focus-rings-expected.txt: Removed.
* platform/ios-sim/fast/multicol/shrink-to-column-height-for-pagination-expected.txt: Removed.
* platform/ios-sim/fast/preloader/document-write-2-expected.txt: Removed.
* platform/ios-sim/fast/preloader/script-expected.txt: Removed.
* platform/ios-sim/fast/writing-mode/broken-ideograph-small-caps-expected.txt: Removed.
* platform/ios-sim/fast/xsl/sort-locale-expected.txt: Removed.
* platform/ios-sim/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_320/S7.6_A2.2_T2-expected.txt: Removed.
* platform/ios-sim/sputnik/Unicode/Unicode_320/S7.6_A5.2_T8-expected.txt: Removed.
* platform/ios-sim/webarchive/loading/mainresource-null-mimetype-crash-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the iOS build.

* platform/graphics/cg/BitmapImageCG.cpp:
(WebCore::BitmapImage::draw):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Cleanup header includes in ShapeOutsideInfo.h
https://bugs.webkit.org/show_bug.cgi?id=131750

Reviewed by Antti Koivisto.

Make the build faster by removing unnecessary header includes.

No new tests, no behavior change.

* rendering/shapes/ShapeOutsideInfo.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[curl] Add WEB_TIMING support
https://bugs.webkit.org/show_bug.cgi?id=127555

Patch by Robert Sipka <sipka@inf.u-szeged.hu> on 2014-04-16
Reviewed by Brent Fulgham.

Access timing information related to navigation.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::milisecondsSinceRequest):
(WebCore::calculateWebTimingInformations):
(WebCore::sockoptfunction):
(WebCore::headerCallback):
(WebCore::ResourceHandleManager::downloadTimerCallback):
(WebCore::ResourceHandleManager::dispatchSynchronousJob):
(WebCore::ResourceHandleManager::initializeHandle):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update to pthread QoS SPI
https://bugs.webkit.org/show_bug.cgi?id=131753

Rubber stamped by Benjamin Poulain

* wtf/ThreadingPthreads.cpp:
(WTF::setCurrentThreadQOSUtility):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Updating tests after bug 131721, [GTK] Fix unused parameter warnings.

* Scripts/webkit2/LegacyMessageReceiver-expected.cpp:
(WebKit::WebPage::didReceiveWebPageMessage):
(WebKit::WebPage::didReceiveSyncWebPageMessage):
* Scripts/webkit2/MessageReceiver-expected.cpp:
(WebKit::WebPage::didReceiveMessage):
(WebKit::WebPage::didReceiveSyncMessage):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simple ES6 feature:Array.prototype.fill
https://bugs.webkit.org/show_bug.cgi?id=131703

Reviewed by David Hyatt.

Source/JavaScriptCore:
Add support for Array.prototype.fill

* builtins/Array.prototype.js:
(fill):
* runtime/ArrayPrototype.cpp:

LayoutTests:
Add tests.

* js/Object-getOwnPropertyNames-expected.txt:
* js/array-fill-expected.txt: Added.
* js/array-fill.html: Added.
* js/script-tests/Object-getOwnPropertyNames.js:
* js/script-tests/array-fill.js: Added.

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