Unprefix Blob.webkitSlice
authorkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2012 06:50:19 +0000 (06:50 +0000)
committerkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2012 06:50:19 +0000 (06:50 +0000)
commit421c5f8e8c104aa938d36f95800699a431197dfb
treeb811d05ad661ceaa6d402c9acd96d85aaee25955
parent5cf06d75a503acf547b60c498b955fc0b2b250b8
Unprefix Blob.webkitSlice
https://bugs.webkit.org/show_bug.cgi?id=78111

Reviewed by Adam Barth.

Source/WebCore:

Add unprefixed Blob.slice and start showing a deprecation message when webkitSlice is called.

No new tests: existing tests that call webkitSlice() are converted to slice(). They should keep running.

* bindings/gobject/WebKitDOMCustom.cpp:
(webkit_dom_blob_slice): Removed.
(webkit_dom_blob_webkit_slice): Added.
* fileapi/Blob.cpp:
(WebCore::Blob::slice):
(WebCore):
(WebCore::Blob::webkitSlice):
(WebCore::Blob::sliceInternal): Added.
* fileapi/Blob.h:
(WebCore):
(Blob):
* fileapi/Blob.idl:

LayoutTests:

Converted existing tests that are calling Blob.webkitSlice() to call slice().

* fast/files/blob-slice-overflow.html:
* fast/files/blob-slice-test.html:
* fast/files/resources/read-blob-test-cases.js:
(testReadingSlicedFileBlob):
(testReadingSlicedTextBlob):
(testReadingSlicedArrayBufferBlob):
(testReadingSlicedHybridBlob):
(testReadingTripleSlicedHybridBlob):
* fast/filesystem/resources/file-writer-utils.js:
(verifyByteRangeIsZeroesHelper):
* http/tests/local/blob/script-tests/send-hybrid-blob.js:
(runHybridBlobTest):
* http/tests/local/blob/script-tests/send-sliced-data-blob.js:
(runSliceTest):
* http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js:
(onStableFileDrop):
(onUnstableFileDrop):
* http/tests/local/formdata/resources/send-form-data-common.js:
(testSendingFormData):
* inspector/profiler/heap-snapshot-loader.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/files/blob-slice-overflow.html
LayoutTests/fast/files/blob-slice-test.html
LayoutTests/fast/files/resources/read-blob-test-cases.js
LayoutTests/fast/filesystem/resources/file-writer-utils.js
LayoutTests/http/tests/local/blob/script-tests/send-hybrid-blob.js
LayoutTests/http/tests/local/blob/script-tests/send-sliced-data-blob.js
LayoutTests/http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js
LayoutTests/http/tests/local/formdata/resources/send-form-data-common.js
LayoutTests/inspector/profiler/heap-snapshot-loader.html
Source/WebCore/ChangeLog
Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp
Source/WebCore/bindings/gobject/WebKitDOMCustom.h
Source/WebCore/fileapi/Blob.cpp
Source/WebCore/fileapi/Blob.h
Source/WebCore/fileapi/Blob.idl
Source/WebCore/fileapi/File.h