OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * Copyright (C) 2015 Google Inc. All rights reserved. | 7 * Copyright (C) 2015 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2798 } | 2798 } |
2799 case CSSPropertySnapHeight: { | 2799 case CSSPropertySnapHeight: { |
2800 if (!style.snapHeightUnit()) | 2800 if (!style.snapHeightUnit()) |
2801 return cssValuePool().createValue(0, CSSPrimitiveValue::UnitType::Pi
xels); | 2801 return cssValuePool().createValue(0, CSSPrimitiveValue::UnitType::Pi
xels); |
2802 CSSValueList* list = CSSValueList::createSpaceSeparated(); | 2802 CSSValueList* list = CSSValueList::createSpaceSeparated(); |
2803 list->append(cssValuePool().createValue(style.snapHeightUnit(), CSSPrimi
tiveValue::UnitType::Pixels)); | 2803 list->append(cssValuePool().createValue(style.snapHeightUnit(), CSSPrimi
tiveValue::UnitType::Pixels)); |
2804 if (style.snapHeightPosition()) | 2804 if (style.snapHeightPosition()) |
2805 list->append(cssValuePool().createValue(style.snapHeightPosition(),
CSSPrimitiveValue::UnitType::Integer)); | 2805 list->append(cssValuePool().createValue(style.snapHeightPosition(),
CSSPrimitiveValue::UnitType::Integer)); |
2806 return list; | 2806 return list; |
2807 } | 2807 } |
| 2808 case CSSPropertySnapWidth: |
| 2809 return cssValuePool().createValue(style.snapWidth(), CSSPrimitiveValue::
UnitType::Pixels); |
2808 case CSSPropertyVariable: | 2810 case CSSPropertyVariable: |
2809 // Variables are retrieved via get(AtomicString). | 2811 // Variables are retrieved via get(AtomicString). |
2810 ASSERT_NOT_REACHED(); | 2812 ASSERT_NOT_REACHED(); |
2811 return nullptr; | 2813 return nullptr; |
2812 case CSSPropertyAll: | 2814 case CSSPropertyAll: |
2813 return nullptr; | 2815 return nullptr; |
2814 default: | 2816 default: |
2815 break; | 2817 break; |
2816 } | 2818 } |
2817 ASSERT_NOT_REACHED(); | 2819 ASSERT_NOT_REACHED(); |
2818 return nullptr; | 2820 return nullptr; |
2819 } | 2821 } |
2820 | 2822 |
2821 } // namespace blink | 2823 } // namespace blink |
OLD | NEW |