Changeset 51927 in webkit


Ignore:
Timestamp:
Dec 9, 2009 2:54:17 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-09 Steve Block <steveblock@google.com>

Reviewed by Darin Adler.

Adds ENABLE(INSPECTOR) guards around script binding methods that use types
defined only when INSPECTOR is enabled.
https://bugs.webkit.org/show_bug.cgi?id=32328

Build fix only, no new tests.

  • bindings/js/ScriptValue.cpp: Modified. Added ENABLE(INSPECTOR) guard to ScriptValue::quarantineValue.
  • bindings/v8/ScriptObject.cpp: Modified. Added ENABLE(INSPECTOR) guard to some overloads of ScriptGlobalObject::set.
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51926 r51927  
     12009-12-09  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Adds ENABLE(INSPECTOR) guards around script binding methods that use types
     6        defined only when INSPECTOR is enabled.
     7        https://bugs.webkit.org/show_bug.cgi?id=32328
     8
     9        Build fix only, no new tests.
     10
     11        * bindings/js/ScriptValue.cpp: Modified. Added ENABLE(INSPECTOR) guard to ScriptValue::quarantineValue.
     12        * bindings/v8/ScriptObject.cpp: Modified. Added ENABLE(INSPECTOR) guard to some overloads of ScriptGlobalObject::set.
     13
    1142009-12-09  Steve Block  <steveblock@google.com>
    215
  • trunk/WebCore/bindings/js/ScriptValue.cpp

    r51801 r51927  
    4343namespace WebCore {
    4444
     45#if ENABLE(INSPECTOR)
    4546ScriptValue ScriptValue::quarantineValue(ScriptState* scriptState, const ScriptValue& value)
    4647{
     
    4849    return ScriptValue(JSInspectedObjectWrapper::wrap(scriptState, value.jsValue()));
    4950}
     51#endif
    5052
    5153bool ScriptValue::getString(ScriptState* scriptState, String& result) const
  • trunk/WebCore/bindings/v8/ScriptObject.cpp

    r51528 r51927  
    141141}
    142142
     143#if ENABLE(INSPECTOR)
    143144bool ScriptGlobalObject::set(ScriptState* scriptState, const char* name, InspectorBackend* value)
    144145{
     
    161162    return scope.success();
    162163}
     164#endif
    163165
    164166bool ScriptGlobalObject::get(ScriptState* scriptState, const char* name, ScriptObject& value)
Note: See TracChangeset for help on using the changeset viewer.