Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: webkit/port/bindings/v8/v8_custom.cpp

Issue 27224: Part of unforking Location. We make a bunch of Location related... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/v8/v8_custom.cpp
===================================================================
--- webkit/port/bindings/v8/v8_custom.cpp (revision 10557)
+++ webkit/port/bindings/v8/v8_custom.cpp (working copy)
@@ -1639,16 +1639,7 @@
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,24 +2379,7 @@
}
-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
#undef NAMED_PROPERTY_GETTER
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698