Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2842933003: CSS Motion Path: delete implementation of offset-rotation property (Closed)
Patch Set: remove offsetRotation from webexposed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3419 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 return ValueForPosition(style.OffsetPosition(), style); 3430 return ValueForPosition(style.OffsetPosition(), style);
3431 3431
3432 case CSSPropertyOffsetPath: 3432 case CSSPropertyOffsetPath:
3433 if (const StylePath* style_motion_path = style.OffsetPath()) 3433 if (const StylePath* style_motion_path = style.OffsetPath())
3434 return style_motion_path->ComputedCSSValue(); 3434 return style_motion_path->ComputedCSSValue();
3435 return CSSIdentifierValue::Create(CSSValueNone); 3435 return CSSIdentifierValue::Create(CSSValueNone);
3436 3436
3437 case CSSPropertyOffsetDistance: 3437 case CSSPropertyOffsetDistance:
3438 return ZoomAdjustedPixelValueForLength(style.OffsetDistance(), style); 3438 return ZoomAdjustedPixelValueForLength(style.OffsetDistance(), style);
3439 3439
3440 case CSSPropertyOffsetRotate: 3440 case CSSPropertyOffsetRotate: {
3441 case CSSPropertyOffsetRotation: {
3442 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); 3441 CSSValueList* list = CSSValueList::CreateSpaceSeparated();
3443 if (style.OffsetRotation().type == kOffsetRotationAuto) 3442 if (style.OffsetRotate().type == kOffsetRotationAuto)
3444 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); 3443 list->Append(*CSSIdentifierValue::Create(CSSValueAuto));
3445 list->Append(*CSSPrimitiveValue::Create( 3444 list->Append(*CSSPrimitiveValue::Create(
3446 style.OffsetRotation().angle, CSSPrimitiveValue::UnitType::kDegrees)); 3445 style.OffsetRotate().angle, CSSPrimitiveValue::UnitType::kDegrees));
3447 return list; 3446 return list;
3448 } 3447 }
3449 3448
3450 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). 3449 // Unimplemented CSS 3 properties (including CSS3 shorthand properties).
3451 case CSSPropertyWebkitTextEmphasis: 3450 case CSSPropertyWebkitTextEmphasis:
3452 return nullptr; 3451 return nullptr;
3453 3452
3454 // Directional properties are resolved by resolveDirectionAwareProperty() 3453 // Directional properties are resolved by resolveDirectionAwareProperty()
3455 // before the switch. 3454 // before the switch.
3456 case CSSPropertyBlockSize: 3455 case CSSPropertyBlockSize:
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3746 case CSSPropertyAll: 3745 case CSSPropertyAll:
3747 return nullptr; 3746 return nullptr;
3748 default: 3747 default:
3749 break; 3748 break;
3750 } 3749 }
3751 NOTREACHED(); 3750 NOTREACHED();
3752 return nullptr; 3751 return nullptr;
3753 } 3752 }
3754 3753
3755 } // namespace blink 3754 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698