Ignore:
Timestamp:
Jun 28, 2008, 4:30:55 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-06-28 Sam Weinig <[email protected]>

Rubber-stamped by Darin Adler.

Rename string_object.h/cpp to StringObject.h/cpp and split out StringObjectThatMasqueradesAsUndefined,
StringConstructor and StringPrototype.

  • DerivedSources.make:
  • GNUmakefile.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • JavaScriptCoreSources.bkl:
  • kjs/AllInOneFile.cpp:
  • kjs/JSGlobalObject.cpp:
  • kjs/StringConstructor.cpp: Copied from JavaScriptCore/kjs/string_object.cpp.
  • kjs/StringConstructor.h: Copied from JavaScriptCore/kjs/string_object.h.
  • kjs/StringObject.cpp: Copied from JavaScriptCore/kjs/string_object.cpp.
  • kjs/StringObject.h: Copied from JavaScriptCore/kjs/string_object.h.
  • kjs/StringObjectThatMasqueradesAsUndefined.h: Copied from JavaScriptCore/kjs/string_object.h.
  • kjs/StringPrototype.cpp: Copied from JavaScriptCore/kjs/string_object.cpp.
  • kjs/StringPrototype.h: Copied from JavaScriptCore/kjs/string_object.h.
  • kjs/internal.cpp:
  • kjs/string_object.cpp: Removed.
  • kjs/string_object.h: Removed.

WebCore:

2008-06-28 Sam Weinig <[email protected]>

Rubber-stamped by Darin Adler.

Update includes after remaming string_object.h to StringObject.h and
splitting out StringObjectThatMasqueradesAsUndefined, StringConstructor
and StringPrototype.

  • ForwardingHeaders/kjs/StringObject.h: Copied from WebCore/ForwardingHeaders/kjs/string_object.h.
  • ForwardingHeaders/kjs/StringObjectThatMasqueradesAsUndefined.h: Added.
  • ForwardingHeaders/kjs/StringPrototype.h: Added.
  • ForwardingHeaders/kjs/string_object.h: Removed.
  • bindings/js/JSCSSStyleDeclarationCustom.cpp:
File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/StringObject.h

    r34860 r34861  
    1 // -*- c-basic-offset: 2 -*-
    21/*
    32 *  Copyright (C) 1999-2000 Harri Porten ([email protected])
     
    2019 */
    2120
    22 #ifndef STRING_OBJECT_H_
    23 #define STRING_OBJECT_H_
     21#ifndef StringObject_h
     22#define StringObject_h
    2423
    2524#include "JSWrapperObject.h"
    2625#include "JSString.h"
    27 #include "lookup.h"
    2826
    2927namespace KJS {
    30 
    31   class FunctionPrototype;
    3228
    3329  class StringObject : public JSWrapperObject {
     
    5955  };
    6056
    61   // WebCore uses this to make style.filter undetectable
    62   class StringObjectThatMasqueradesAsUndefined : public StringObject {
    63   public:
    64       StringObjectThatMasqueradesAsUndefined(ExecState* exec, JSObject* proto, const UString& string)
    65           : StringObject(exec, proto, string) { }
    66       virtual bool masqueradeAsUndefined() const { return true; }
    67       virtual bool toBoolean(ExecState*) const { return false; }
    68   };
    69 
    70   /**
    71    * @internal
    72    *
    73    * The initial value of String.prototype (and thus all objects created
    74    * with the String constructor
    75    */
    76   class StringPrototype : public StringObject {
    77   public:
    78     StringPrototype(ExecState *exec,
    79                        ObjectPrototype *objProto);
    80     virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
    81     virtual const ClassInfo *classInfo() const { return &info; }
    82     static const ClassInfo info;
    83   };
    84 
    85   /**
    86    * @internal
    87    *
    88    * The initial value of the the global variable's "String" property
    89    */
    90   class StringConstructor : public InternalFunction {
    91   public:
    92     StringConstructor(ExecState*, FunctionPrototype*, StringPrototype*);
    93     virtual ConstructType getConstructData(ConstructData&);
    94     virtual CallType getCallData(CallData&);
    95   };
    96 
    9757} // namespace KJS
    9858
    99 #endif
     59#endif // StringObject_h
Note: See TracChangeset for help on using the changeset viewer.