Replace JS builtin implementation of the FetchResponse constructor with a C++ one
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Sep 2017 03:32:59 +0000 (03:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Sep 2017 03:32:59 +0000 (03:32 +0000)
commit03c6c5d7d70ee8e831c37b4a1eb96ef9efdfca34
tree18dff3ce4de366afd3c3be8c2ca8d047c100086d
parent7183f75f5dd43113b1169d3a188939d873985b7b
Replace JS builtin implementation of the FetchResponse constructor with a C++ one
https://bugs.webkit.org/show_bug.cgi?id=176627

Patch by Sam Weinig <sam@webkit.org> on 2017-09-08
Reviewed by Alex Christensen.

Removes the last of the Fetch related JS builtin code.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* Modules/fetch/FetchInternals.js: Removed.
* Modules/fetch/FetchResponse.js: Removed.

    Remove FetchInternals.js and FetchResponse.js.

* Modules/fetch/FetchBody.idl:
* Modules/fetch/FetchBodyConsumer.h:

    Remove no longer correct FIXMEs.

* Modules/fetch/FetchBodySource.cpp:

    Add missing newline between functions.

* Modules/fetch/FetchHeaders.idl:
* Modules/fetch/FetchResponse.idl:

    Remove builtin related operations and extended attributes.

* Modules/fetch/FetchHeaders.h:
(WebCore::FetchHeaders::fastHas const):
* Modules/fetch/FetchHeaders.cpp:

    Added fastHas to allow checking for a header using a HTTPHeaderName. Remove
    now unused filter function.

* Modules/fetch/FetchResponse.cpp:
(WebCore::isNullBodyStatus):

    Added helper predicate for 'null body status' concept.

(WebCore::FetchResponse::create):

    Add spec defined constructor implementation.

(WebCore::FetchResponse::setBodyData):

    Reformatted to match more common WTF::switchOn style.

(WebCore::FetchResponse::setStatus): Deleted.
(WebCore::FetchResponse::initializeWith): Deleted.

    Removed now unused functions.

* Modules/fetch/FetchResponse.h:
(WebCore::FetchResponse::create):

    Move inline create out of the class definition to make things a bit less crowded.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/Modules/fetch/FetchBody.idl
Source/WebCore/Modules/fetch/FetchBodyConsumer.h
Source/WebCore/Modules/fetch/FetchBodySource.cpp
Source/WebCore/Modules/fetch/FetchHeaders.cpp
Source/WebCore/Modules/fetch/FetchHeaders.h
Source/WebCore/Modules/fetch/FetchHeaders.idl
Source/WebCore/Modules/fetch/FetchInternals.js [deleted file]
Source/WebCore/Modules/fetch/FetchResponse.cpp
Source/WebCore/Modules/fetch/FetchResponse.h
Source/WebCore/Modules/fetch/FetchResponse.idl
Source/WebCore/Modules/fetch/FetchResponse.js [deleted file]
Source/WebCore/WebCore.xcodeproj/project.pbxproj