Changeset 220465 in webkit


Ignore:
Timestamp:
Aug 9, 2017 10:58:12 AM (7 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r220457.

This change introduced API test failures.

Reverted changeset:

"WTF::Function does not allow for reference / non-default
constructible return types"
https://bugs.webkit.org/show_bug.cgi?id=175244
http://trac.webkit.org/changeset/220457

Location:
trunk/Source
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r220457 r220465  
     12017-08-09  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r220457.
     4
     5        This change introduced API test failures.
     6
     7        Reverted changeset:
     8
     9        "WTF::Function does not allow for reference / non-default
     10        constructible return types"
     11        https://bugs.webkit.org/show_bug.cgi?id=175244
     12        http://trac.webkit.org/changeset/220457
     13
    1142017-08-09  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/JavaScriptCore/runtime/ArrayBuffer.cpp

    r220457 r220465  
    133133    other.m_destructor = WTFMove(m_destructor);
    134134    other.m_shared = m_shared;
    135     reset();
     135    clear();
    136136}
    137137
  • trunk/Source/WTF/ChangeLog

    r220457 r220465  
     12017-08-09  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r220457.
     4
     5        This change introduced API test failures.
     6
     7        Reverted changeset:
     8
     9        "WTF::Function does not allow for reference / non-default
     10        constructible return types"
     11        https://bugs.webkit.org/show_bug.cgi?id=175244
     12        http://trac.webkit.org/changeset/220457
     13
    1142017-08-09  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/WTF/wtf/Function.h

    r220457 r220465  
    5353    Out operator()(In... in) const
    5454    {
    55         ASSERT(m_callableWrapper);
    56         return m_callableWrapper->call(std::forward<In>(in)...);
     55        if (m_callableWrapper)
     56            return m_callableWrapper->call(std::forward<In>(in)...);
     57        return Out();
    5758    }
    5859
  • trunk/Source/WebCore/ChangeLog

    r220464 r220465  
     12017-08-09  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r220457.
     4
     5        This change introduced API test failures.
     6
     7        Reverted changeset:
     8
     9        "WTF::Function does not allow for reference / non-default
     10        constructible return types"
     11        https://bugs.webkit.org/show_bug.cgi?id=175244
     12        http://trac.webkit.org/changeset/220457
     13
    1142017-08-09  Don Olmstead  <don.olmstead@sony.com>
    215
  • trunk/Source/WebCore/bindings/js/JSCustomElementInterface.h

    r220457 r220465  
    9595    RefPtr<Element> tryToConstructCustomElement(Document&, const AtomicString&);
    9696
    97     void invokeCallback(Element&, JSC::JSObject* callback, const WTF::Function<void(JSC::ExecState*, JSDOMGlobalObject*, JSC::MarkedArgumentBuffer&)>& addArguments = [](JSC::ExecState*, JSDOMGlobalObject*, JSC::MarkedArgumentBuffer&) { });
     97    void invokeCallback(Element&, JSC::JSObject* callback, const WTF::Function<void(JSC::ExecState*, JSDOMGlobalObject*, JSC::MarkedArgumentBuffer&)>& addArguments = { });
    9898
    9999    QualifiedName m_name;
  • trunk/Source/WebKit/ChangeLog

    r220459 r220465  
     12017-08-09  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r220457.
     4
     5        This change introduced API test failures.
     6
     7        Reverted changeset:
     8
     9        "WTF::Function does not allow for reference / non-default
     10        constructible return types"
     11        https://bugs.webkit.org/show_bug.cgi?id=175244
     12        http://trac.webkit.org/changeset/220457
     13
    1142017-08-09  Daniel Bates  <dabates@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h

    r220457 r220465  
    6161public:
    6262    using UpdateCookiePartitioningForDomainsHandler = WTF::Function<void(const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd, ShouldClearFirst)>;
    63     static Ref<WebResourceLoadStatisticsStore> create(const String& resourceLoadStatisticsDirectory, Function<void (const String&)>&& testingCallback, UpdateCookiePartitioningForDomainsHandler&& updateCookiePartitioningForDomainsHandler = [](const Vector<String>&, const Vector<String>&, ShouldClearFirst) { })
     63    static Ref<WebResourceLoadStatisticsStore> create(const String& resourceLoadStatisticsDirectory, Function<void (const String&)>&& testingCallback, UpdateCookiePartitioningForDomainsHandler&& updateCookiePartitioningForDomainsHandler = { })
    6464    {
    6565        return adoptRef(*new WebResourceLoadStatisticsStore(resourceLoadStatisticsDirectory, WTFMove(testingCallback), WTFMove(updateCookiePartitioningForDomainsHandler)));
Note: See TracChangeset for help on using the changeset viewer.