| 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 3285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3296 return valueForPosition(style.offsetPosition(), style); | 3296 return valueForPosition(style.offsetPosition(), style); |
| 3297 | 3297 |
| 3298 case CSSPropertyOffsetPath: | 3298 case CSSPropertyOffsetPath: |
| 3299 if (const StylePath* styleMotionPath = style.offsetPath()) | 3299 if (const StylePath* styleMotionPath = style.offsetPath()) |
| 3300 return styleMotionPath->computedCSSValue(); | 3300 return styleMotionPath->computedCSSValue(); |
| 3301 return CSSIdentifierValue::create(CSSValueNone); | 3301 return CSSIdentifierValue::create(CSSValueNone); |
| 3302 | 3302 |
| 3303 case CSSPropertyOffsetDistance: | 3303 case CSSPropertyOffsetDistance: |
| 3304 return zoomAdjustedPixelValueForLength(style.offsetDistance(), style); | 3304 return zoomAdjustedPixelValueForLength(style.offsetDistance(), style); |
| 3305 | 3305 |
| 3306 case CSSPropertyOffsetRotate: |
| 3306 case CSSPropertyOffsetRotation: { | 3307 case CSSPropertyOffsetRotation: { |
| 3307 CSSValueList* list = CSSValueList::createSpaceSeparated(); | 3308 CSSValueList* list = CSSValueList::createSpaceSeparated(); |
| 3308 if (style.offsetRotation().type == OffsetRotationAuto) | 3309 if (style.offsetRotation().type == OffsetRotationAuto) |
| 3309 list->append(*CSSIdentifierValue::create(CSSValueAuto)); | 3310 list->append(*CSSIdentifierValue::create(CSSValueAuto)); |
| 3310 list->append(*CSSPrimitiveValue::create( | 3311 list->append(*CSSPrimitiveValue::create( |
| 3311 style.offsetRotation().angle, CSSPrimitiveValue::UnitType::Degrees)); | 3312 style.offsetRotation().angle, CSSPrimitiveValue::UnitType::Degrees)); |
| 3312 return list; | 3313 return list; |
| 3313 } | 3314 } |
| 3314 | 3315 |
| 3315 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). | 3316 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3620 case CSSPropertyAll: | 3621 case CSSPropertyAll: |
| 3621 return nullptr; | 3622 return nullptr; |
| 3622 default: | 3623 default: |
| 3623 break; | 3624 break; |
| 3624 } | 3625 } |
| 3625 ASSERT_NOT_REACHED(); | 3626 ASSERT_NOT_REACHED(); |
| 3626 return nullptr; | 3627 return nullptr; |
| 3627 } | 3628 } |
| 3628 | 3629 |
| 3629 } // namespace blink | 3630 } // namespace blink |
| OLD | NEW |