diff options
Diffstat (limited to 'webkit/port/bindings/v8/v8_custom.cpp')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp index 86c2c01..6d05406 100644 --- a/webkit/port/bindings/v8/v8_custom.cpp +++ b/webkit/port/bindings/v8/v8_custom.cpp @@ -1639,16 +1639,7 @@ CALLBACK_FUNC_DECL(ElementSetAttributeNodeNS) { return V8Proxy::NodeToV8Object(result.get()); } -// Location -------------------------------------------------------------------- -CALLBACK_FUNC_DECL(LocationValueOf) { - // Just return the this object the way the normal valueOf function - // on the Object prototype would. The valueOf function is only - // added to make sure that it cannot be overwritten on location - // objects, since that would provide a hook to change the string - // conversion behavior of location objects. - return args.This(); -} // Attr ------------------------------------------------------------------------ @@ -2388,23 +2379,6 @@ NAMED_ACCESS_CHECK(History) { } -INDEXED_ACCESS_CHECK(Location) { - ASSERT(V8ClassIndex::FromInt(data->Int32Value()) == V8ClassIndex::LOCATION); - // Only allow same origin access - Location* imp = - V8Proxy::ToNativeObject<Location>(V8ClassIndex::LOCATION, host); - return V8Proxy::CanAccessFrame(imp->frame(), false); -} - - -NAMED_ACCESS_CHECK(Location) { - ASSERT(V8ClassIndex::FromInt(data->Int32Value()) == V8ClassIndex::LOCATION); - // Only allow same origin access - Location* imp = - V8Proxy::ToNativeObject<Location>(V8ClassIndex::LOCATION, host); - return V8Proxy::CanAccessFrame(imp->frame(), false); -} - #undef INDEXED_ACCESS_CHECK #undef NAMED_ACCESS_CHECK |