Chromium Code Reviews| 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. 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 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2678 return cssValuePool().createValue(1, CSSPrimitiveValue::UnitType::Nu mber); | 2678 return cssValuePool().createValue(1, CSSPrimitiveValue::UnitType::Nu mber); |
| 2679 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed(); | 2679 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat ed(); |
| 2680 list->append(cssValuePool().createValue(style.scale()->x(), CSSPrimitive Value::UnitType::Number)); | 2680 list->append(cssValuePool().createValue(style.scale()->x(), CSSPrimitive Value::UnitType::Number)); |
| 2681 if (style.scale()->y() == 1 && style.scale()->z() == 1) | 2681 if (style.scale()->y() == 1 && style.scale()->z() == 1) |
| 2682 return list.release(); | 2682 return list.release(); |
| 2683 list->append(cssValuePool().createValue(style.scale()->y(), CSSPrimitive Value::UnitType::Number)); | 2683 list->append(cssValuePool().createValue(style.scale()->y(), CSSPrimitive Value::UnitType::Number)); |
| 2684 if (style.scale()->z() != 1) | 2684 if (style.scale()->z() != 1) |
| 2685 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi tiveValue::UnitType::Number)); | 2685 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi tiveValue::UnitType::Number)); |
| 2686 return list.release(); | 2686 return list.release(); |
| 2687 } | 2687 } |
| 2688 case CSSPropertyVariable: | |
| 2689 ASSERT_NOT_REACHED(); | |
|
alancutter (OOO until 2018)
2015/10/28 07:31:20
Add TODO to support this.
leviw_travelin_and_unemployed
2015/10/30 21:41:16
Done.
| |
| 2690 return nullptr; | |
| 2688 case CSSPropertyAll: | 2691 case CSSPropertyAll: |
| 2689 return nullptr; | 2692 return nullptr; |
| 2690 default: | 2693 default: |
| 2691 break; | 2694 break; |
| 2692 } | 2695 } |
| 2693 ASSERT_NOT_REACHED(); | 2696 ASSERT_NOT_REACHED(); |
| 2694 return nullptr; | 2697 return nullptr; |
| 2695 } | 2698 } |
| 2696 | 2699 |
| 2697 } | 2700 } |
| OLD | NEW |