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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 19632002: Support 'extend-to-zoom' viewport descriptor value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 * (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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 m_value.valueID = CSSValueMaxContent; 304 m_value.valueID = CSSValueMaxContent;
305 break; 305 break;
306 case FillAvailable: 306 case FillAvailable:
307 m_primitiveUnitType = CSS_VALUE_ID; 307 m_primitiveUnitType = CSS_VALUE_ID;
308 m_value.valueID = CSSValueWebkitFillAvailable; 308 m_value.valueID = CSSValueWebkitFillAvailable;
309 break; 309 break;
310 case FitContent: 310 case FitContent:
311 m_primitiveUnitType = CSS_VALUE_ID; 311 m_primitiveUnitType = CSS_VALUE_ID;
312 m_value.valueID = CSSValueWebkitFitContent; 312 m_value.valueID = CSSValueWebkitFitContent;
313 break; 313 break;
314 case ExtendToZoom:
315 m_primitiveUnitType = CSS_VALUE_ID;
316 m_value.valueID = CSSValueExtendToZoom;
317 break;
314 case Percent: 318 case Percent:
315 m_primitiveUnitType = CSS_PERCENTAGE; 319 m_primitiveUnitType = CSS_PERCENTAGE;
316 ASSERT(std::isfinite(length.percent())); 320 ASSERT(std::isfinite(length.percent()));
317 m_value.num = length.percent(); 321 m_value.num = length.percent();
318 break; 322 break;
319 case ViewportPercentageWidth: 323 case ViewportPercentageWidth:
320 m_primitiveUnitType = CSS_VW; 324 m_primitiveUnitType = CSS_VW;
321 m_value.num = length.viewportPercentageLength(); 325 m_value.num = length.viewportPercentageLength();
322 break; 326 break;
323 case ViewportPercentageHeight: 327 case ViewportPercentageHeight:
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 break; 1339 break;
1336 case CSS_CALC: 1340 case CSS_CALC:
1337 info.addMember(m_value.calc, "value.calc"); 1341 info.addMember(m_value.calc, "value.calc");
1338 break; 1342 break;
1339 default: 1343 default:
1340 break; 1344 break;
1341 } 1345 }
1342 } 1346 }
1343 1347
1344 } // namespace WebCore 1348 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698