Commit 4557b4e0 authored by dglazkov@chromium.org's avatar dglazkov@chromium.org

2009-04-30 Dimitri Glazkov <dglazkov@chromium.org>

        Unreviewed, Chromium build fix.

        Catch up to ScriptObject changes from http://trac.webkit.org/changeset/42512.

        * bindings/v8/ScriptObject.cpp:
        (WebCore::ScriptGlobalObject::get): Renamed from getObject.
        (WebCore::ScriptGlobalObject::remove): Added.
        * bindings/v8/ScriptObject.h: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f9e21ed6
2009-04-30 Dimitri Glazkov <dglazkov@chromium.org>
Unreviewed, Chromium build fix.
Catch up to ScriptObject changes from http://trac.webkit.org/changeset/42512.
* bindings/v8/ScriptObject.cpp:
(WebCore::ScriptGlobalObject::get): Renamed from getObject.
(WebCore::ScriptGlobalObject::remove): Added.
* bindings/v8/ScriptObject.h: Ditto.
2009-04-30 Dimitri Glazkov <dglazkov@chromium.org>
Unreviewed, build fix.
......@@ -123,7 +123,7 @@ bool ScriptGlobalObject::set(ScriptState* scriptState, const char* name, Inspect
return scope.success();
}
bool ScriptGlobalObject::getObject(ScriptState* scriptState, const char* name, ScriptObject& value)
bool ScriptGlobalObject::get(ScriptState* scriptState, const char* name, ScriptObject& value)
{
ScriptScope scope(scriptState);
v8::Local<v8::Value> v8Value = scope.global()->Get(v8::String::New(name));
......@@ -137,4 +137,10 @@ bool ScriptGlobalObject::getObject(ScriptState* scriptState, const char* name, S
return true;
}
bool ScriptGlobalObject::remove(ScriptState* scriptState, const char* name)
{
ScriptScope scope(scriptState);
return scope.global()->Delete(v8::String::New(name));
}
} // namespace WebCore
......@@ -62,7 +62,8 @@ namespace WebCore {
public:
static bool set(ScriptState*, const char* name, const ScriptObject&);
static bool set(ScriptState*, const char* name, InspectorController*);
static bool getObject(ScriptState*, const char* name, ScriptObject&);
static bool get(ScriptState*, const char* name, ScriptObject&);
static bool remove(ScriptState*, const char* name);
private:
ScriptGlobalObject() { }
};
......
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