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

Side by Side Diff: sky/engine/core/css/CSSPrimitiveValue.cpp

Issue 714783003: Remove some straggling zoom-related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 m_value.valueID = CSSValueMaxContent; 322 m_value.valueID = CSSValueMaxContent;
323 break; 323 break;
324 case FillAvailable: 324 case FillAvailable:
325 m_primitiveUnitType = CSS_VALUE_ID; 325 m_primitiveUnitType = CSS_VALUE_ID;
326 m_value.valueID = CSSValueWebkitFillAvailable; 326 m_value.valueID = CSSValueWebkitFillAvailable;
327 break; 327 break;
328 case FitContent: 328 case FitContent:
329 m_primitiveUnitType = CSS_VALUE_ID; 329 m_primitiveUnitType = CSS_VALUE_ID;
330 m_value.valueID = CSSValueWebkitFitContent; 330 m_value.valueID = CSSValueWebkitFitContent;
331 break; 331 break;
332 case ExtendToZoom:
333 m_primitiveUnitType = CSS_VALUE_ID;
334 m_value.valueID = CSSValueInternalExtendToZoom;
335 break;
336 case Percent: 332 case Percent:
337 m_primitiveUnitType = CSS_PERCENTAGE; 333 m_primitiveUnitType = CSS_PERCENTAGE;
338 ASSERT(std::isfinite(length.percent())); 334 ASSERT(std::isfinite(length.percent()));
339 m_value.num = length.percent(); 335 m_value.num = length.percent();
340 break; 336 break;
341 case Fixed: 337 case Fixed:
342 m_primitiveUnitType = CSS_PX; 338 m_primitiveUnitType = CSS_PX;
343 m_value.num = length.value(); 339 m_value.num = length.value();
344 break; 340 break;
345 case Calculated: { 341 case Calculated: {
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 visitor->trace(m_value.shape); 1347 visitor->trace(m_value.shape);
1352 break; 1348 break;
1353 default: 1349 default:
1354 break; 1350 break;
1355 } 1351 }
1356 #endif 1352 #endif
1357 CSSValue::traceAfterDispatch(visitor); 1353 CSSValue::traceAfterDispatch(visitor);
1358 } 1354 }
1359 1355
1360 } // namespace blink 1356 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | sky/engine/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698