| Index: Source/core/frame/Location.h
|
| diff --git a/Source/core/frame/Location.h b/Source/core/frame/Location.h
|
| index 1ad7e3854359154db9728146485d3b8bfc679908..72421d659d854d54e77c58343917e3efd2165c05 100644
|
| --- a/Source/core/frame/Location.h
|
| +++ b/Source/core/frame/Location.h
|
| @@ -29,6 +29,7 @@
|
| #ifndef Location_h
|
| #define Location_h
|
|
|
| +#include "bindings/core/v8/ScriptValue.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/dom/DOMStringList.h"
|
| #include "core/frame/DOMWindowProperty.h"
|
| @@ -83,6 +84,11 @@ public:
|
|
|
| PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const;
|
|
|
| + // 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.
|
| + ScriptValue valueOf(const ScriptValue& thisObject) { return thisObject; }
|
| +
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
|
|