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

Side by Side Diff: sky/engine/core/css/CSSPrimitiveValueMappings.h

Issue 698613002: Remove border-fit. (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 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>.
3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 3381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3392 case CSSValueCollapse: 3392 case CSSValueCollapse:
3393 return BCOLLAPSE; 3393 return BCOLLAPSE;
3394 default: 3394 default:
3395 break; 3395 break;
3396 } 3396 }
3397 3397
3398 ASSERT_NOT_REACHED(); 3398 ASSERT_NOT_REACHED();
3399 return BSEPARATE; 3399 return BSEPARATE;
3400 } 3400 }
3401 3401
3402 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBorderFit e)
3403 : CSSValue(PrimitiveClass)
3404 {
3405 m_primitiveUnitType = CSS_VALUE_ID;
3406 switch (e) {
3407 case BorderFitBorder:
3408 m_value.valueID = CSSValueBorder;
3409 break;
3410 case BorderFitLines:
3411 m_value.valueID = CSSValueLines;
3412 break;
3413 }
3414 }
3415
3416 template<> inline CSSPrimitiveValue::operator EBorderFit() const
3417 {
3418 ASSERT(isValueID());
3419 switch (m_value.valueID) {
3420 case CSSValueBorder:
3421 return BorderFitBorder;
3422 case CSSValueLines:
3423 return BorderFitLines;
3424 default:
3425 break;
3426 }
3427
3428 ASSERT_NOT_REACHED();
3429 return BorderFitLines;
3430 }
3431
3432 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EImageRendering e) 3402 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EImageRendering e)
3433 : CSSValue(PrimitiveClass) 3403 : CSSValue(PrimitiveClass)
3434 { 3404 {
3435 m_primitiveUnitType = CSS_VALUE_ID; 3405 m_primitiveUnitType = CSS_VALUE_ID;
3436 switch (e) { 3406 switch (e) {
3437 case ImageRenderingAuto: 3407 case ImageRenderingAuto:
3438 m_value.valueID = CSSValueAuto; 3408 m_value.valueID = CSSValueAuto;
3439 break; 3409 break;
3440 case ImageRenderingOptimizeSpeed: 3410 case ImageRenderingOptimizeSpeed:
3441 m_value.valueID = CSSValueOptimizespeed; 3411 m_value.valueID = CSSValueOptimizespeed;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3789 default: 3759 default:
3790 break; 3760 break;
3791 } 3761 }
3792 ASSERT_NOT_REACHED(); 3762 ASSERT_NOT_REACHED();
3793 return ScrollBehaviorInstant; 3763 return ScrollBehaviorInstant;
3794 } 3764 }
3795 3765
3796 } 3766 }
3797 3767
3798 #endif 3768 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698