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

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

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ 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 ValuesForShorthandProperty(offsetShorthand(), style, layout_object, 3430 return ValuesForShorthandProperty(offsetShorthand(), style, layout_object,
3431 styled_node, allow_visited_style); 3431 styled_node, allow_visited_style);
3432 3432
3433 case CSSPropertyOffsetAnchor: 3433 case CSSPropertyOffsetAnchor:
3434 return ValueForPosition(style.OffsetAnchor(), style); 3434 return ValueForPosition(style.OffsetAnchor(), style);
3435 3435
3436 case CSSPropertyOffsetPosition: 3436 case CSSPropertyOffsetPosition:
3437 return ValueForPosition(style.OffsetPosition(), style); 3437 return ValueForPosition(style.OffsetPosition(), style);
3438 3438
3439 case CSSPropertyOffsetPath: 3439 case CSSPropertyOffsetPath:
3440 if (const StylePath* style_motion_path = style.OffsetPath()) 3440 if (const BasicShape* style_motion_path = style.OffsetPath())
3441 return style_motion_path->ComputedCSSValue(); 3441 return ValueForBasicShape(style, style_motion_path);
3442 return CSSIdentifierValue::Create(CSSValueNone); 3442 return CSSIdentifierValue::Create(CSSValueNone);
3443 3443
3444 case CSSPropertyOffsetDistance: 3444 case CSSPropertyOffsetDistance:
3445 return ZoomAdjustedPixelValueForLength(style.OffsetDistance(), style); 3445 return ZoomAdjustedPixelValueForLength(style.OffsetDistance(), style);
3446 3446
3447 case CSSPropertyOffsetRotate: { 3447 case CSSPropertyOffsetRotate: {
3448 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); 3448 CSSValueList* list = CSSValueList::CreateSpaceSeparated();
3449 if (style.OffsetRotate().type == kOffsetRotationAuto) 3449 if (style.OffsetRotate().type == kOffsetRotationAuto)
3450 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); 3450 list->Append(*CSSIdentifierValue::Create(CSSValueAuto));
3451 list->Append(*CSSPrimitiveValue::Create( 3451 list->Append(*CSSPrimitiveValue::Create(
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
3752 case CSSPropertyAll: 3752 case CSSPropertyAll:
3753 return nullptr; 3753 return nullptr;
3754 default: 3754 default:
3755 break; 3755 break;
3756 } 3756 }
3757 NOTREACHED(); 3757 NOTREACHED();
3758 return nullptr; 3758 return nullptr;
3759 } 3759 }
3760 3760
3761 } // namespace blink 3761 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698