• paroga@webkit.org's avatar
    Move GregorianDateTime from JSC to WTF namespace · 175d46f1
    paroga@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=91948
    
    Reviewed by Geoffrey Garen.
    
    Moving GregorianDateTime into the WTF namespace allows us to us to
    use it in WebCore too. The new class has the same behaviour as the
    old struct. Only the unused timeZone member has been removed.
    
    Source/JavaScriptCore:
    
    * runtime/DateConstructor.cpp:
    * runtime/DateConversion.cpp:
    * runtime/DateConversion.h:
    * runtime/DateInstance.h:
    * runtime/DatePrototype.cpp:
    * runtime/JSDateMath.cpp:
    * runtime/JSDateMath.h:
    
    Source/WebCore:
    
    * bridge/qt/qt_runtime.cpp:
    (JSC::Bindings::convertValueToQVariant):
    (JSC::Bindings::convertQVariantToValue):
    * bridge/qt/qt_runtime_qt4.cpp:
    (JSC::Bindings::convertValueToQVariant):
    (JSC::Bindings::convertQVariantToValue):
    
    Source/WTF:
    
    * GNUmakefile.list.am:
    * WTF.gypi:
    * WTF.pro:
    * WTF.vcproj/WTF.vcproj:
    * WTF.xcodeproj/project.pbxproj:
    * wtf/CMakeLists.txt:
    * wtf/GregorianDateTime.h: Added.
    (GregorianDateTime):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    175d46f1
JSDateMath.cpp 10.1 KB