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

Side by Side Diff: Source/core/css/CSSPrimitiveValueMappings.h

Issue 45733010: Add pointer-events="bounding-box" for svg content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: lowercase boundingBox Created 7 years 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 3330 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 break; 3341 break;
3342 case PE_VISIBLE_PAINTED: 3342 case PE_VISIBLE_PAINTED:
3343 m_value.valueID = CSSValueVisiblepainted; 3343 m_value.valueID = CSSValueVisiblepainted;
3344 break; 3344 break;
3345 case PE_AUTO: 3345 case PE_AUTO:
3346 m_value.valueID = CSSValueAuto; 3346 m_value.valueID = CSSValueAuto;
3347 break; 3347 break;
3348 case PE_ALL: 3348 case PE_ALL:
3349 m_value.valueID = CSSValueAll; 3349 m_value.valueID = CSSValueAll;
3350 break; 3350 break;
3351 case PE_BOUNDINGBOX:
3352 m_value.valueID = CSSValueBoundingbox;
3353 break;
3351 } 3354 }
3352 } 3355 }
3353 3356
3354 template<> inline CSSPrimitiveValue::operator EPointerEvents() const 3357 template<> inline CSSPrimitiveValue::operator EPointerEvents() const
3355 { 3358 {
3356 ASSERT(isValueID()); 3359 ASSERT(isValueID());
3357 switch (m_value.valueID) { 3360 switch (m_value.valueID) {
3358 case CSSValueAll: 3361 case CSSValueAll:
3359 return PE_ALL; 3362 return PE_ALL;
3360 case CSSValueAuto: 3363 case CSSValueAuto:
3361 return PE_AUTO; 3364 return PE_AUTO;
3362 case CSSValueNone: 3365 case CSSValueNone:
3363 return PE_NONE; 3366 return PE_NONE;
3364 case CSSValueVisiblepainted: 3367 case CSSValueVisiblepainted:
3365 return PE_VISIBLE_PAINTED; 3368 return PE_VISIBLE_PAINTED;
3366 case CSSValueVisiblefill: 3369 case CSSValueVisiblefill:
3367 return PE_VISIBLE_FILL; 3370 return PE_VISIBLE_FILL;
3368 case CSSValueVisiblestroke: 3371 case CSSValueVisiblestroke:
3369 return PE_VISIBLE_STROKE; 3372 return PE_VISIBLE_STROKE;
3370 case CSSValueVisible: 3373 case CSSValueVisible:
3371 return PE_VISIBLE; 3374 return PE_VISIBLE;
3372 case CSSValuePainted: 3375 case CSSValuePainted:
3373 return PE_PAINTED; 3376 return PE_PAINTED;
3374 case CSSValueFill: 3377 case CSSValueFill:
3375 return PE_FILL; 3378 return PE_FILL;
3376 case CSSValueStroke: 3379 case CSSValueStroke:
3377 return PE_STROKE; 3380 return PE_STROKE;
3381 case CSSValueBoundingbox:
3382 return PE_BOUNDINGBOX;
3378 default: 3383 default:
3379 break; 3384 break;
3380 } 3385 }
3381 3386
3382 ASSERT_NOT_REACHED(); 3387 ASSERT_NOT_REACHED();
3383 return PE_ALL; 3388 return PE_ALL;
3384 } 3389 }
3385 3390
3386 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(FontDescription::Kerning kerning) 3391 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(FontDescription::Kerning kerning)
3387 : CSSValue(PrimitiveClass) 3392 : CSSValue(PrimitiveClass)
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
4966 break; 4971 break;
4967 } 4972 }
4968 4973
4969 ASSERT_NOT_REACHED(); 4974 ASSERT_NOT_REACHED();
4970 return TouchActionDelayNone; 4975 return TouchActionDelayNone;
4971 } 4976 }
4972 4977
4973 } 4978 }
4974 4979
4975 #endif 4980 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698