Changeset 78323 in webkit


Ignore:
Timestamp:
Feb 11, 2011 1:12:41 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-02-11 Adam Barth <abarth@webkit.org>

Attempt to fix the Windows build. Apparently we don't support
conditional attributes on functions. This patch makes the whole Crypto
interface conditional on ArrayBuffer support.

  • page/DOMWindow.idl:
  • page/Crypto.cpp:
  • page/Crypto.h:
  • page/Crypto.idl:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r78322 r78323  
     12011-02-11  Adam Barth  <abarth@webkit.org>
     2
     3        Attempt to fix the Windows build.  Apparently we don't support
     4        conditional attributes on functions.  This patch makes the whole Crypto
     5        interface conditional on ArrayBuffer support.
     6
     7        * page/DOMWindow.idl:
     8        * page/Crypto.cpp:
     9        * page/Crypto.h:
     10        * page/Crypto.idl:
     11
    1122011-02-10  Antti Koivisto  <antti@apple.com>
    213
  • trunk/Source/WebCore/page/Crypto.cpp

    r78321 r78323  
    4242}
    4343
     44#if ENABLE(WEBGL) || ENABLE(BLOB)
    4445void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec)
    4546{
     
    5556#endif
    5657}
     58#endif
    5759
    5860}
  • trunk/Source/WebCore/page/Crypto.h

    r78321 r78323  
    4444    static PassRefPtr<Crypto> create() { return adoptRef(new Crypto()); }
    4545
     46#if ENABLE(WEBGL) || ENABLE(BLOG)
    4647    void getRandomValues(ArrayBufferView*, ExceptionCode&);
     48#endif
    4749
    4850private:
  • trunk/Source/WebCore/page/Crypto.idl

    r78321 r78323  
    3030
    3131    interface [
     32        // FIXME: We should just enable ArrayBuffer support all the time.
     33        Conditional=WEBGL|BLOB,
    3234        OmitConstructor
    3335    ] Crypto {
    34         // FIXME: We should just enable ArrayBuffer support all the time.
    35         [Conditional=WEBGL|BLOB] void getRandomValues(in ArrayBufferView array) raises(DOMException);
     36        void getRandomValues(in ArrayBufferView array) raises(DOMException);
    3637    };
    3738
  • trunk/Source/WebCore/page/DOMWindow.idl

    r78321 r78323  
    5555        attribute [Replaceable] Navigator navigator;
    5656        attribute [Replaceable] Navigator clientInformation;
     57        attribute [Replaceable, Conditional=WEBGL|BLOB] Crypto crypto;
    5758        attribute [DoNotCheckDomainSecurity, JSCCustom, V8CustomSetter, V8DisallowShadowing, CPPCustom] Location location;
    5859
    5960        attribute [Replaceable, CustomGetter, V8CustomSetter] Event event;
    6061
    61         readonly attribute Crypto crypto;
    6262
    6363        DOMSelection getSelection();
Note: See TracChangeset for help on using the changeset viewer.