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

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

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland 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 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after
3370 case CSSValueManipulation: 3370 case CSSValueManipulation:
3371 return TouchActionPanX | TouchActionPanY | TouchActionPinchZoom; 3371 return TouchActionPanX | TouchActionPanY | TouchActionPinchZoom;
3372 default: 3372 default:
3373 break; 3373 break;
3374 } 3374 }
3375 3375
3376 ASSERT_NOT_REACHED(); 3376 ASSERT_NOT_REACHED();
3377 return TouchActionNone; 3377 return TouchActionNone;
3378 } 3378 }
3379 3379
3380 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EIsolation i)
3381 : CSSValue(PrimitiveClass)
3382 {
3383 m_primitiveUnitType = CSS_VALUE_ID;
3384 switch (i) {
3385 case IsolationAuto:
3386 m_value.valueID = CSSValueAuto;
3387 break;
3388 case IsolationIsolate:
3389 m_value.valueID = CSSValueIsolate;
3390 break;
3391 }
3392 }
3393
3394 template<> inline CSSPrimitiveValue::operator EIsolation() const
3395 {
3396 ASSERT(isValueID());
3397 switch (m_value.valueID) {
3398 case CSSValueAuto:
3399 return IsolationAuto;
3400 case CSSValueIsolate:
3401 return IsolationIsolate;
3402 default:
3403 break;
3404 }
3405
3406 ASSERT_NOT_REACHED();
3407 return IsolationAuto;
3408 }
3409
3410 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TouchActionDelay t) 3380 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TouchActionDelay t)
3411 : CSSValue(PrimitiveClass) 3381 : CSSValue(PrimitiveClass)
3412 { 3382 {
3413 m_primitiveUnitType = CSS_VALUE_ID; 3383 m_primitiveUnitType = CSS_VALUE_ID;
3414 switch (t) { 3384 switch (t) {
3415 case TouchActionDelayNone: 3385 case TouchActionDelayNone:
3416 m_value.valueID = CSSValueNone; 3386 m_value.valueID = CSSValueNone;
3417 break; 3387 break;
3418 case TouchActionDelayScript: 3388 case TouchActionDelayScript:
3419 m_value.valueID = CSSValueScript; 3389 m_value.valueID = CSSValueScript;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
3619 default: 3589 default:
3620 break; 3590 break;
3621 } 3591 }
3622 ASSERT_NOT_REACHED(); 3592 ASSERT_NOT_REACHED();
3623 return ScrollBehaviorInstant; 3593 return ScrollBehaviorInstant;
3624 } 3594 }
3625 3595
3626 } 3596 }
3627 3597
3628 #endif 3598 #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