Changeset 34580 in webkit for trunk/JavaScriptCore/kjs/string_object.h
- Timestamp:
- Jun 15, 2008, 8:02:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.h
r34578 r34580 30 30 namespace KJS { 31 31 32 class String Instance: public JSWrapperObject {32 class StringObject : public JSWrapperObject { 33 33 public: 34 String Instance(JSObject* prototype);35 String Instance(JSObject* prototype, const UString&);34 StringObject(JSObject* prototype); 35 StringObject(JSObject* prototype, const UString&); 36 36 37 static String Instance* create(ExecState*, JSString*);37 static StringObject* create(ExecState*, JSString*); 38 38 39 39 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 50 50 51 51 protected: 52 String Instance(JSObject* prototype, JSString*);52 StringObject(JSObject* prototype, JSString*); 53 53 }; 54 54 55 55 // WebCore uses this to make style.filter undetectable 56 class String InstanceThatMasqueradesAsUndefined : public StringInstance{56 class StringObjectThatMasqueradesAsUndefined : public StringObject { 57 57 public: 58 String InstanceThatMasqueradesAsUndefined(JSObject* proto, const UString& string)59 : String Instance(proto, string) { }58 StringObjectThatMasqueradesAsUndefined(JSObject* proto, const UString& string) 59 : StringObject(proto, string) { } 60 60 virtual bool masqueradeAsUndefined() const { return true; } 61 61 virtual bool toBoolean(ExecState*) const { return false; } … … 68 68 * with the String constructor 69 69 */ 70 class StringPrototype : public String Instance{70 class StringPrototype : public StringObject { 71 71 public: 72 72 StringPrototype(ExecState *exec, … … 123 123 * The initial value of the the global variable's "String" property 124 124 */ 125 class String ObjectImp : public InternalFunctionImp{125 class StringConstructor : public InternalFunction { 126 126 public: 127 String ObjectImp(ExecState*, FunctionPrototype*, StringPrototype*);127 StringConstructor(ExecState*, FunctionPrototype*, StringPrototype*); 128 128 129 129 virtual ConstructType getConstructData(ConstructData&); … … 139 139 * String object 140 140 */ 141 class String ObjectFuncImp : public InternalFunctionImp{141 class StringConstructorFunction : public InternalFunction { 142 142 public: 143 String ObjectFuncImp(ExecState*, FunctionPrototype*, const Identifier&);143 StringConstructorFunction(ExecState*, FunctionPrototype*, const Identifier&); 144 144 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args); 145 145 };
Note:
See TracChangeset
for help on using the changeset viewer.