Skip to content
  • ggaren@apple.com's avatar
    JavaScriptCore: A little bit of refactoring in the date code. · a25e8ffe
    ggaren@apple.com authored
    Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-27
    Reviewed by Sam Weinig.
    
    * JavaScriptCore.exp: Don't export this unused symbol.
    
    * runtime/DateConstructor.cpp:
    (JSC::constructDate):
    
    * runtime/DateInstance.cpp:
    (JSC::DateInstance::DateInstance):
    * runtime/DateInstance.h: Removed some unused functions. Changed the default
    constructor to ensure that a DateInstance is always initialized.
    
    * runtime/DatePrototype.cpp:
    (JSC::DatePrototype::DatePrototype): Pass an initializer to our constructor,
    since it now requires one.
    
    * wtf/DateMath.cpp:
    (WTF::msToGregorianDateTime): Only compute our offset from UTC if our
    output will require it. Otherwise, our offset is 0.
    
    WebKit/mac: Updated for refactoring in the date code.
    
    Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-27
    Reviewed by Sam Weinig.
    
    * WebView/WebView.mm:
    (aeDescFromJSValue): Since we just want a number of milliseconds, do that
    instead of something more complicated.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a25e8ffe