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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #include "core/css/CSSPrimitiveValue.h" 22 #include "core/css/CSSPrimitiveValue.h"
23 23
24 #include "core/css/CSSCalculationValue.h" 24 #include "core/css/CSSCalculationValue.h"
25 #include "core/css/CSSHelper.h" 25 #include "core/css/CSSHelper.h"
26 #include "core/css/CSSMarkup.h" 26 #include "core/css/CSSMarkup.h"
27 #include "core/css/CSSToLengthConversionData.h" 27 #include "core/css/CSSToLengthConversionData.h"
28 #include "core/css/CSSValuePool.h" 28 #include "core/css/CSSValuePool.h"
29 #include "platform/LayoutUnit.h" 29 #include "platform/LayoutUnit.h"
30 #include "wtf/SizeAssertions.h" 30 #include "platform/wtf/SizeAssertions.h"
31 #include "wtf/StdLibExtras.h" 31 #include "platform/wtf/StdLibExtras.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 namespace { 35 namespace {
36 36
37 // Max/min values for CSS, needs to slightly smaller/larger than the true 37 // Max/min values for CSS, needs to slightly smaller/larger than the true
38 // max/min values to allow for rounding without overflowing. 38 // max/min values to allow for rounding without overflowing.
39 // Subtract two (rather than one) to allow for values to be converted to float 39 // Subtract two (rather than one) to allow for values to be converted to float
40 // and back without exceeding the LayoutUnit::Max. 40 // and back without exceeding the LayoutUnit::Max.
41 const int kMaxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; 41 const int kMaxValueForCssLength = INT_MAX / kFixedPointDenominator - 2;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 case UnitType::kCalc: 715 case UnitType::kCalc:
716 visitor->Trace(value_.calc); 716 visitor->Trace(value_.calc);
717 break; 717 break;
718 default: 718 default:
719 break; 719 break;
720 } 720 }
721 CSSValue::TraceAfterDispatch(visitor); 721 CSSValue::TraceAfterDispatch(visitor);
722 } 722 }
723 723
724 } // namespace blink 724 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.h ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698