Changeset 31937 in webkit for trunk/JavaScriptCore/kjs/date_object.h
- Timestamp:
- Apr 16, 2008, 2:41:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.h
r29508 r31937 22 22 #define DATE_OBJECT_H 23 23 24 #include "DateMath.h" 24 25 #include "function.h" 25 26 #include "JSWrapperObject.h" … … 27 28 28 29 namespace KJS { 29 30 struct GregorianDateTime;31 30 32 31 class FunctionPrototype; … … 36 35 public: 37 36 DateInstance(JSObject *proto); 37 virtual ~DateInstance(); 38 38 39 39 bool getTime(GregorianDateTime&, int& offset) const; … … 44 44 virtual const ClassInfo *classInfo() const { return &info; } 45 45 static const ClassInfo info; 46 47 void msToGregorianDateTime(double, bool outputIsUTC, GregorianDateTime&) const; 48 49 private: 50 struct Cache { 51 double m_gregorianDateTimeCachedForMS; 52 GregorianDateTime m_cachedGregorianDateTime; 53 double m_gregorianDateTimeUTCCachedForMS; 54 GregorianDateTime m_cachedGregorianDateTimeUTC; 55 }; 56 57 mutable Cache* m_cache; 46 58 }; 47 59
Note:
See TracChangeset
for help on using the changeset viewer.