Ignore:
Timestamp:
Oct 20, 2009, 2:42:42 AM (16 years ago)
Author:
Csaba Osztrogonác
Message:

Move OverridesMarkChildren flag from DatePrototype to its parent class
https://bugs.webkit.org/show_bug.cgi?id=30372

Patch by Gabor Loki <[email protected]> on 2009-10-20
Reviewed by Oliver Hunt.

  • runtime/DateInstance.h:

(JSC::DateInstance::createStructure):

  • runtime/DatePrototype.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/DateInstance.h

    r49247 r49845  
    4747        void msToGregorianDateTime(double, bool outputIsUTC, WTF::GregorianDateTime&) const;
    4848
     49        static PassRefPtr<Structure> createStructure(JSValue prototype)
     50        {
     51            return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags));
     52        }
     53
     54    protected:
     55        static const unsigned StructureFlags = OverridesMarkChildren | JSWrapperObject::StructureFlags;
     56
    4957    private:
    5058        virtual const ClassInfo* classInfo() const { return &info; }
Note: See TracChangeset for help on using the changeset viewer.