Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sky/engine/wtf/DateMath.cpp

Issue 1206763002: Really remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/wtf/DataLog.cpp ('k') | sky/engine/wtf/DefaultAllocator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * Copyright (C) 2007-2009 Torch Mobile, Inc. 5 * Copyright (C) 2007-2009 Torch Mobile, Inc.
6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net) 6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net)
7 * 7 *
8 * The Original Code is Mozilla Communicator client code, released 8 * The Original Code is Mozilla Communicator client code, released
9 * March 31, 1998. 9 * March 31, 1998.
10 * 10 *
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 62 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
63 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 63 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
64 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 64 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
65 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 65 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
66 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 66 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
67 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 67 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
68 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 68 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
69 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 69 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70 */ 70 */
71 71
72 #include "sky/engine/config.h"
73 #include "sky/engine/wtf/DateMath.h" 72 #include "sky/engine/wtf/DateMath.h"
74 73
75 #include "sky/engine/wtf/ASCIICType.h" 74 #include "sky/engine/wtf/ASCIICType.h"
76 #include "sky/engine/wtf/Assertions.h" 75 #include "sky/engine/wtf/Assertions.h"
77 #include "sky/engine/wtf/CurrentTime.h" 76 #include "sky/engine/wtf/CurrentTime.h"
78 #include "sky/engine/wtf/MathExtras.h" 77 #include "sky/engine/wtf/MathExtras.h"
79 #include "sky/engine/wtf/StdLibExtras.h" 78 #include "sky/engine/wtf/StdLibExtras.h"
80 #include "sky/engine/wtf/StringExtras.h" 79 #include "sky/engine/wtf/StringExtras.h"
81 80
82 #include <limits.h> 81 #include <limits.h>
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 } 817 }
819 818
820 double convertToLocalTime(double ms) 819 double convertToLocalTime(double ms)
821 { 820 {
822 double utcOffset = calculateUTCOffset(); 821 double utcOffset = calculateUTCOffset();
823 double dstOffset = calculateDSTOffset(ms, utcOffset); 822 double dstOffset = calculateDSTOffset(ms, utcOffset);
824 return (ms + utcOffset + dstOffset); 823 return (ms + utcOffset + dstOffset);
825 } 824 }
826 825
827 } // namespace WTF 826 } // namespace WTF
OLDNEW
« no previous file with comments | « sky/engine/wtf/DataLog.cpp ('k') | sky/engine/wtf/DefaultAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698