Changeset 148118 in webkit


Ignore:
Timestamp:
Apr 10, 2013 11:50:15 AM (11 years ago)
Author:
Patrick Gansterer
Message:

Replace ENABLE_JAVASCRIPT_DEBUGGER preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114352

Reviewed by Timothy Hatcher.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

  • page/Console.idl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148117 r148118  
     12013-04-10  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Replace ENABLE_JAVASCRIPT_DEBUGGER preprocessor statements in IDL files with Conditional attribute
     4        https://bugs.webkit.org/show_bug.cgi?id=114352
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.
     9
     10        * page/Console.idl:
     11
    1122013-04-10  Alexandru Chiculita  <achicu@adobe.com>
    213
  • trunk/Source/WebCore/page/Console.idl

    r147857 r148118  
    4545    [CallWith=ScriptArguments] void markTimeline();
    4646
    47 #if defined(ENABLE_JAVASCRIPT_DEBUGGER) && ENABLE_JAVASCRIPT_DEBUGGER
    4847    // As per spec: http://www.w3.org/TR/WebIDL/#idl-sequence
    4948    // "Sequences must not be used as the type of an attribute, constant or exception field."
    5049    // FIXME: this will lead to BUG console.profiles !== console.profiles as profile will always returns new array.
    51     readonly attribute ScriptProfile[] profiles;
    52     [Custom] void profile(in DOMString title);
    53     [Custom] void profileEnd(in DOMString title);
    54 #endif
     50    [Conditional=JAVASCRIPT_DEBUGGER] readonly attribute ScriptProfile[] profiles;
     51    [Conditional=JAVASCRIPT_DEBUGGER, Custom] void profile(in DOMString title);
     52    [Conditional=JAVASCRIPT_DEBUGGER, Custom] void profileEnd(in DOMString title);
    5553
    5654    void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString title);
Note: See TracChangeset for help on using the changeset viewer.