Commit a80d17d5 authored by ap@webkit.org's avatar ap@webkit.org

Build fix.

        * kjs/date_object.cpp:
        * kjs/date_object.h:
        Don't include DateMath.h from date_object.h, as the latter is used from WebCore, while
        where the former is not available.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 12f0262e
2008-04-16 Alexey Proskuryakov <ap@webkit.org>
Build fix.
* kjs/date_object.cpp:
* kjs/date_object.h:
Don't include DateMath.h from date_object.h, as the latter is used from WebCore, while
where the former is not available.
2008-04-16 Holger Hans Peter Freyther <zecke@selfish.org>
Unreviewed build fix for MSVC. It does not want to have
......
......@@ -94,6 +94,13 @@ private:
int id;
};
struct DateInstance::Cache {
double m_gregorianDateTimeCachedForMS;
GregorianDateTime m_cachedGregorianDateTime;
double m_gregorianDateTimeUTCCachedForMS;
GregorianDateTime m_cachedGregorianDateTimeUTC;
};
#if PLATFORM(MAC)
static CFDateFormatterStyle styleFromArgString(const UString& string, CFDateFormatterStyle defaultStyle)
......
......@@ -21,13 +21,13 @@
#ifndef DATE_OBJECT_H
#define DATE_OBJECT_H
#include "DateMath.h"
#include "function.h"
#include "JSWrapperObject.h"
#include "lookup.h"
namespace KJS {
struct GregorianDateTime;
class FunctionPrototype;
class ObjectPrototype;
......@@ -47,13 +47,7 @@ namespace KJS {
void msToGregorianDateTime(double, bool outputIsUTC, GregorianDateTime&) const;
private:
struct Cache {
double m_gregorianDateTimeCachedForMS;
GregorianDateTime m_cachedGregorianDateTime;
double m_gregorianDateTimeUTCCachedForMS;
GregorianDateTime m_cachedGregorianDateTimeUTC;
};
struct Cache;
mutable Cache* m_cache;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment