| OLD | NEW |
| 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 reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "sky/engine/config.h" |
| 22 #include "core/css/CSSPrimitiveValue.h" | 22 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 23 | 23 |
| 24 #include "bindings/core/v8/ExceptionState.h" | 24 #include "sky/engine/bindings/core/v8/ExceptionState.h" |
| 25 #include "core/css/CSSBasicShapes.h" | 25 #include "sky/engine/core/css/CSSBasicShapes.h" |
| 26 #include "core/css/CSSCalculationValue.h" | 26 #include "sky/engine/core/css/CSSCalculationValue.h" |
| 27 #include "core/css/CSSHelper.h" | 27 #include "sky/engine/core/css/CSSHelper.h" |
| 28 #include "core/css/CSSMarkup.h" | 28 #include "sky/engine/core/css/CSSMarkup.h" |
| 29 #include "core/css/CSSToLengthConversionData.h" | 29 #include "sky/engine/core/css/CSSToLengthConversionData.h" |
| 30 #include "core/css/Pair.h" | 30 #include "sky/engine/core/css/Pair.h" |
| 31 #include "core/css/RGBColor.h" | 31 #include "sky/engine/core/css/RGBColor.h" |
| 32 #include "core/css/Rect.h" | 32 #include "sky/engine/core/css/Rect.h" |
| 33 #include "core/css/StyleSheetContents.h" | 33 #include "sky/engine/core/css/StyleSheetContents.h" |
| 34 #include "core/dom/ExceptionCode.h" | 34 #include "sky/engine/core/dom/ExceptionCode.h" |
| 35 #include "core/dom/Node.h" | 35 #include "sky/engine/core/dom/Node.h" |
| 36 #include "core/rendering/style/RenderStyle.h" | 36 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 37 #include "platform/Decimal.h" | 37 #include "sky/engine/platform/Decimal.h" |
| 38 #include "platform/LayoutUnit.h" | 38 #include "sky/engine/platform/LayoutUnit.h" |
| 39 #include "platform/fonts/FontMetrics.h" | 39 #include "sky/engine/platform/fonts/FontMetrics.h" |
| 40 #include "wtf/StdLibExtras.h" | 40 #include "sky/engine/wtf/StdLibExtras.h" |
| 41 #include "wtf/text/StringBuffer.h" | 41 #include "sky/engine/wtf/text/StringBuffer.h" |
| 42 #include "wtf/text/StringBuilder.h" | 42 #include "sky/engine/wtf/text/StringBuilder.h" |
| 43 | 43 |
| 44 using namespace WTF; | 44 using namespace WTF; |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. | 48 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. |
| 49 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. | 49 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. |
| 50 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; | 50 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; |
| 51 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; | 51 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; |
| 52 | 52 |
| (...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 return m_value.pair && other.m_value.pair && m_value.pair->equals(*other
.m_value.pair); | 1321 return m_value.pair && other.m_value.pair && m_value.pair->equals(*other
.m_value.pair); |
| 1322 case CSS_CALC: | 1322 case CSS_CALC: |
| 1323 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other
.m_value.calc); | 1323 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other
.m_value.calc); |
| 1324 case CSS_SHAPE: | 1324 case CSS_SHAPE: |
| 1325 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot
her.m_value.shape); | 1325 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot
her.m_value.shape); |
| 1326 } | 1326 } |
| 1327 return false; | 1327 return false; |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 } // namespace blink | 1330 } // namespace blink |
| OLD | NEW |