Commit 16dd4c28 authored by bweinstein@apple.com's avatar bweinstein@apple.com

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:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f494ded9
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:
2009-10-07 Brent Fulgham <bfulgham@webkit.org>
Unreviewed build fix for Windows (Cairo).
......@@ -97,6 +97,13 @@ bool ScriptObject::set(const char* name, int value)
return scope.success();
}
bool ScriptObject::set(const char* name, unsigned value)
{
ScriptScope scope(m_scriptState);
v8Object()->Set(v8::String::New(name), v8::Number::New(value));
return scope.success();
}
bool ScriptObject::set(const char* name, bool value)
{
ScriptScope scope(m_scriptState);
......
......@@ -53,6 +53,7 @@ namespace WebCore {
bool set(const char* name, double);
bool set(const char* name, long long);
bool set(const char* name, int);
bool set(const char* name, unsigned);
bool set(const char* name, bool);
static ScriptObject createNew(ScriptState*);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment