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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
8 * Copyright (C) 2015 Google Inc. All rights reserved. | 8 * Copyright (C) 2015 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2266 return ZoomAdjustedPixelValue(style.BorderRightWidth(), style); | 2266 return ZoomAdjustedPixelValue(style.BorderRightWidth(), style); |
2267 case CSSPropertyBorderBottomWidth: | 2267 case CSSPropertyBorderBottomWidth: |
2268 return ZoomAdjustedPixelValue(style.BorderBottomWidth(), style); | 2268 return ZoomAdjustedPixelValue(style.BorderBottomWidth(), style); |
2269 case CSSPropertyBorderLeftWidth: | 2269 case CSSPropertyBorderLeftWidth: |
2270 return ZoomAdjustedPixelValue(style.BorderLeftWidth(), style); | 2270 return ZoomAdjustedPixelValue(style.BorderLeftWidth(), style); |
2271 case CSSPropertyBottom: | 2271 case CSSPropertyBottom: |
2272 return ValueForPositionOffset(style, CSSPropertyBottom, layout_object); | 2272 return ValueForPositionOffset(style, CSSPropertyBottom, layout_object); |
2273 case CSSPropertyWebkitBoxAlign: | 2273 case CSSPropertyWebkitBoxAlign: |
2274 return CSSIdentifierValue::Create(style.BoxAlign()); | 2274 return CSSIdentifierValue::Create(style.BoxAlign()); |
2275 case CSSPropertyWebkitBoxDecorationBreak: | 2275 case CSSPropertyWebkitBoxDecorationBreak: |
2276 if (style.BoxDecorationBreak() == kBoxDecorationBreakSlice) | 2276 if (style.BoxDecorationBreak() == EBoxDecorationBreak::kSlice) |
2277 return CSSIdentifierValue::Create(CSSValueSlice); | 2277 return CSSIdentifierValue::Create(CSSValueSlice); |
2278 return CSSIdentifierValue::Create(CSSValueClone); | 2278 return CSSIdentifierValue::Create(CSSValueClone); |
2279 case CSSPropertyWebkitBoxDirection: | 2279 case CSSPropertyWebkitBoxDirection: |
2280 return CSSIdentifierValue::Create(style.BoxDirection()); | 2280 return CSSIdentifierValue::Create(style.BoxDirection()); |
2281 case CSSPropertyWebkitBoxFlex: | 2281 case CSSPropertyWebkitBoxFlex: |
2282 return CSSPrimitiveValue::Create(style.BoxFlex(), | 2282 return CSSPrimitiveValue::Create(style.BoxFlex(), |
2283 CSSPrimitiveValue::UnitType::kNumber); | 2283 CSSPrimitiveValue::UnitType::kNumber); |
2284 case CSSPropertyWebkitBoxFlexGroup: | 2284 case CSSPropertyWebkitBoxFlexGroup: |
2285 return CSSPrimitiveValue::Create(style.BoxFlexGroup(), | 2285 return CSSPrimitiveValue::Create(style.BoxFlexGroup(), |
2286 CSSPrimitiveValue::UnitType::kNumber); | 2286 CSSPrimitiveValue::UnitType::kNumber); |
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3746 case CSSPropertyAll: | 3746 case CSSPropertyAll: |
3747 return nullptr; | 3747 return nullptr; |
3748 default: | 3748 default: |
3749 break; | 3749 break; |
3750 } | 3750 } |
3751 NOTREACHED(); | 3751 NOTREACHED(); |
3752 return nullptr; | 3752 return nullptr; |
3753 } | 3753 } |
3754 | 3754 |
3755 } // namespace blink | 3755 } // namespace blink |
OLD | NEW |