这是indexloc提供的服务,不要输入任何密码

Changeset 49262 in webkit


Ignore:
Timestamp:
Oct 7, 2009, 2:50:10 PM (16 years ago)
Author:
bweinstein@apple.com
Message:

2009-10-07 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Timothy Hatcher.

Web Inspector: Add ScriptObject::set(const char*, unsigned).

https://bugs.webkit.org/show_bug.cgi?id=30104

  • bindings/v8/ScriptObject.cpp: (WebCore::ScriptObject::set):
  • bindings/v8/ScriptObject.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49260 r49262  
     12009-10-07  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Web Inspector: Add ScriptObject::set(const char*, unsigned).
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=30104
     8
     9        * bindings/v8/ScriptObject.cpp:
     10        (WebCore::ScriptObject::set):
     11        * bindings/v8/ScriptObject.h:
     12
    1132009-10-07  Brent Fulgham  <bfulgham@webkit.org>
    214
  • trunk/WebCore/bindings/v8/ScriptObject.cpp

    r46490 r49262  
    9898}
    9999
     100bool ScriptObject::set(const char* name, unsigned value)
     101{
     102    ScriptScope scope(m_scriptState);
     103    v8Object()->Set(v8::String::New(name), v8::Number::New(value));
     104    return scope.success();
     105}
     106
    100107bool ScriptObject::set(const char* name, bool value)
    101108{
  • trunk/WebCore/bindings/v8/ScriptObject.h

    r46490 r49262  
    5454        bool set(const char* name, long long);
    5555        bool set(const char* name, int);
     56        bool set(const char* name, unsigned);
    5657        bool set(const char* name, bool);
    5758
Note: See TracChangeset for help on using the changeset viewer.