| 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 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3302 return valueForPosition(style.offsetPosition(), style); | 3302 return valueForPosition(style.offsetPosition(), style); |
| 3303 | 3303 |
| 3304 case CSSPropertyOffsetPath: | 3304 case CSSPropertyOffsetPath: |
| 3305 if (const StylePath* styleMotionPath = style.offsetPath()) | 3305 if (const StylePath* styleMotionPath = style.offsetPath()) |
| 3306 return styleMotionPath->computedCSSValue(); | 3306 return styleMotionPath->computedCSSValue(); |
| 3307 return CSSIdentifierValue::create(CSSValueNone); | 3307 return CSSIdentifierValue::create(CSSValueNone); |
| 3308 | 3308 |
| 3309 case CSSPropertyOffsetDistance: | 3309 case CSSPropertyOffsetDistance: |
| 3310 return zoomAdjustedPixelValueForLength(style.offsetDistance(), style); | 3310 return zoomAdjustedPixelValueForLength(style.offsetDistance(), style); |
| 3311 | 3311 |
| 3312 case CSSPropertyOffsetRotate: |
| 3312 case CSSPropertyOffsetRotation: { | 3313 case CSSPropertyOffsetRotation: { |
| 3313 CSSValueList* list = CSSValueList::createSpaceSeparated(); | 3314 CSSValueList* list = CSSValueList::createSpaceSeparated(); |
| 3314 if (style.offsetRotation().type == OffsetRotationAuto) | 3315 if (style.offsetRotation().type == OffsetRotationAuto) |
| 3315 list->append(*CSSIdentifierValue::create(CSSValueAuto)); | 3316 list->append(*CSSIdentifierValue::create(CSSValueAuto)); |
| 3316 list->append(*CSSPrimitiveValue::create( | 3317 list->append(*CSSPrimitiveValue::create( |
| 3317 style.offsetRotation().angle, CSSPrimitiveValue::UnitType::Degrees)); | 3318 style.offsetRotation().angle, CSSPrimitiveValue::UnitType::Degrees)); |
| 3318 return list; | 3319 return list; |
| 3319 } | 3320 } |
| 3320 | 3321 |
| 3321 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). | 3322 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3626 case CSSPropertyAll: | 3627 case CSSPropertyAll: |
| 3627 return nullptr; | 3628 return nullptr; |
| 3628 default: | 3629 default: |
| 3629 break; | 3630 break; |
| 3630 } | 3631 } |
| 3631 ASSERT_NOT_REACHED(); | 3632 ASSERT_NOT_REACHED(); |
| 3632 return nullptr; | 3633 return nullptr; |
| 3633 } | 3634 } |
| 3634 | 3635 |
| 3635 } // namespace blink | 3636 } // namespace blink |
| OLD | NEW |