| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. | 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. |
| 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef CSSPrimitiveValueMappings_h | 30 #ifndef CSSPrimitiveValueMappings_h |
| 31 #define CSSPrimitiveValueMappings_h | 31 #define CSSPrimitiveValueMappings_h |
| 32 | 32 |
| 33 #include "core/css/CSSCalculationValue.h" | |
| 34 #include "core/css/CSSPrimitiveValue.h" | |
| 35 #include "core/css/CSSPrimitiveValueMappings.h" | |
| 36 #include "core/css/CSSToLengthConversionData.h" | |
| 37 #include "core/rendering/style/LineClampValue.h" | |
| 38 #include "core/rendering/style/RenderStyleConstants.h" | |
| 39 #include "gen/sky/core/CSSValueKeywords.h" | 33 #include "gen/sky/core/CSSValueKeywords.h" |
| 40 #include "platform/Length.h" | 34 #include "sky/engine/core/css/CSSCalculationValue.h" |
| 41 #include "platform/fonts/FontDescription.h" | 35 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 42 #include "platform/fonts/FontSmoothingMode.h" | 36 #include "sky/engine/core/css/CSSPrimitiveValueMappings.h" |
| 43 #include "platform/fonts/TextRenderingMode.h" | 37 #include "sky/engine/core/css/CSSToLengthConversionData.h" |
| 44 #include "platform/graphics/GraphicsTypes.h" | 38 #include "sky/engine/core/rendering/style/LineClampValue.h" |
| 45 #include "platform/graphics/Path.h" | 39 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 46 #include "platform/scroll/ScrollableArea.h" | 40 #include "sky/engine/platform/Length.h" |
| 47 #include "platform/text/TextDirection.h" | 41 #include "sky/engine/platform/fonts/FontDescription.h" |
| 48 #include "platform/text/UnicodeBidi.h" | 42 #include "sky/engine/platform/fonts/FontSmoothingMode.h" |
| 49 #include "wtf/MathExtras.h" | 43 #include "sky/engine/platform/fonts/TextRenderingMode.h" |
| 44 #include "sky/engine/platform/graphics/GraphicsTypes.h" |
| 45 #include "sky/engine/platform/graphics/Path.h" |
| 46 #include "sky/engine/platform/scroll/ScrollableArea.h" |
| 47 #include "sky/engine/platform/text/TextDirection.h" |
| 48 #include "sky/engine/platform/text/UnicodeBidi.h" |
| 49 #include "sky/engine/wtf/MathExtras.h" |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(short i) | 53 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(short i) |
| 54 : CSSValue(PrimitiveClass) | 54 : CSSValue(PrimitiveClass) |
| 55 { | 55 { |
| 56 m_primitiveUnitType = CSS_NUMBER; | 56 m_primitiveUnitType = CSS_NUMBER; |
| 57 m_value.num = static_cast<double>(i); | 57 m_value.num = static_cast<double>(i); |
| 58 } | 58 } |
| 59 | 59 |
| (...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3592 default: | 3592 default: |
| 3593 break; | 3593 break; |
| 3594 } | 3594 } |
| 3595 ASSERT_NOT_REACHED(); | 3595 ASSERT_NOT_REACHED(); |
| 3596 return ScrollBehaviorInstant; | 3596 return ScrollBehaviorInstant; |
| 3597 } | 3597 } |
| 3598 | 3598 |
| 3599 } | 3599 } |
| 3600 | 3600 |
| 3601 #endif | 3601 #endif |
| OLD | NEW |