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

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

Issue 1481683002: CSS: Retire runtime flag CSSMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * Copyright (C) 2015 Google Inc. All rights reserved. 7 * Copyright (C) 2015 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 case CSSPropertyOutline: 2412 case CSSPropertyOutline:
2413 return valuesForShorthandProperty(outlineShorthand(), style, layoutObjec t, styledNode, allowVisitedStyle); 2413 return valuesForShorthandProperty(outlineShorthand(), style, layoutObjec t, styledNode, allowVisitedStyle);
2414 case CSSPropertyPadding: 2414 case CSSPropertyPadding:
2415 return valuesForSidesShorthand(paddingShorthand(), style, layoutObject, styledNode, allowVisitedStyle); 2415 return valuesForSidesShorthand(paddingShorthand(), style, layoutObject, styledNode, allowVisitedStyle);
2416 // Individual properties not part of the spec. 2416 // Individual properties not part of the spec.
2417 case CSSPropertyBackgroundRepeatX: 2417 case CSSPropertyBackgroundRepeatX:
2418 case CSSPropertyBackgroundRepeatY: 2418 case CSSPropertyBackgroundRepeatY:
2419 return nullptr; 2419 return nullptr;
2420 2420
2421 case CSSPropertyMotion: 2421 case CSSPropertyMotion:
2422 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2423 return valuesForShorthandProperty(motionShorthand(), style, layoutObject , styledNode, allowVisitedStyle); 2422 return valuesForShorthandProperty(motionShorthand(), style, layoutObject , styledNode, allowVisitedStyle);
2424 2423
2425 case CSSPropertyMotionPath: { 2424 case CSSPropertyMotionPath: {
2426 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2427 const StyleMotionPath* styleMotionPath = style.motionPath(); 2425 const StyleMotionPath* styleMotionPath = style.motionPath();
2428 if (!styleMotionPath) 2426 if (!styleMotionPath)
2429 return cssValuePool().createIdentifierValue(CSSValueNone); 2427 return cssValuePool().createIdentifierValue(CSSValueNone);
2430 2428
2431 ASSERT(styleMotionPath->isPathStyleMotionPath()); 2429 ASSERT(styleMotionPath->isPathStyleMotionPath());
2432 return CSSPathValue::create(toPathStyleMotionPath(styleMotionPath)->path String()); 2430 return CSSPathValue::create(toPathStyleMotionPath(styleMotionPath)->path String());
2433 } 2431 }
2434 2432
2435 case CSSPropertyMotionOffset: 2433 case CSSPropertyMotionOffset:
2436 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2437 return zoomAdjustedPixelValueForLength(style.motionOffset(), style); 2434 return zoomAdjustedPixelValueForLength(style.motionOffset(), style);
2438 2435
2439 case CSSPropertyMotionRotation: { 2436 case CSSPropertyMotionRotation: {
2440 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2441 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed(); 2437 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed();
2442 if (style.motionRotationType() == MotionRotationAuto) 2438 if (style.motionRotationType() == MotionRotationAuto)
2443 list->append(cssValuePool().createIdentifierValue(CSSValueAuto)); 2439 list->append(cssValuePool().createIdentifierValue(CSSValueAuto));
2444 list->append(cssValuePool().createValue(style.motionRotation(), CSSPrimi tiveValue::UnitType::Degrees)); 2440 list->append(cssValuePool().createValue(style.motionRotation(), CSSPrimi tiveValue::UnitType::Degrees));
2445 return list.release(); 2441 return list.release();
2446 } 2442 }
2447 2443
2448 // Unimplemented CSS 3 properties (including CSS3 shorthand properties). 2444 // Unimplemented CSS 3 properties (including CSS3 shorthand properties).
2449 case CSSPropertyWebkitTextEmphasis: 2445 case CSSPropertyWebkitTextEmphasis:
2450 return nullptr; 2446 return nullptr;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 case CSSPropertyAll: 2686 case CSSPropertyAll:
2691 return nullptr; 2687 return nullptr;
2692 default: 2688 default:
2693 break; 2689 break;
2694 } 2690 }
2695 ASSERT_NOT_REACHED(); 2691 ASSERT_NOT_REACHED();
2696 return nullptr; 2692 return nullptr;
2697 } 2693 }
2698 2694
2699 } 2695 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698