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

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: make assert more specific 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
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3318 matching lines...) Expand 10 before | Expand all | Expand 10 after
3329 break; 3329 break;
3330 case PE_VISIBLE_PAINTED: 3330 case PE_VISIBLE_PAINTED:
3331 m_value.valueID = CSSValueVisiblepainted; 3331 m_value.valueID = CSSValueVisiblepainted;
3332 break; 3332 break;
3333 case PE_AUTO: 3333 case PE_AUTO:
3334 m_value.valueID = CSSValueAuto; 3334 m_value.valueID = CSSValueAuto;
3335 break; 3335 break;
3336 case PE_ALL: 3336 case PE_ALL:
3337 m_value.valueID = CSSValueAll; 3337 m_value.valueID = CSSValueAll;
3338 break; 3338 break;
3339 case PE_BOUNDINGBOX:
3340 m_value.valueID = CSSValueBoundingBox;
3341 break;
3339 } 3342 }
3340 } 3343 }
3341 3344
3342 template<> inline CSSPrimitiveValue::operator EPointerEvents() const 3345 template<> inline CSSPrimitiveValue::operator EPointerEvents() const
3343 { 3346 {
3344 ASSERT(isValueID()); 3347 ASSERT(isValueID());
3345 switch (m_value.valueID) { 3348 switch (m_value.valueID) {
3346 case CSSValueAll: 3349 case CSSValueAll:
3347 return PE_ALL; 3350 return PE_ALL;
3348 case CSSValueAuto: 3351 case CSSValueAuto:
3349 return PE_AUTO; 3352 return PE_AUTO;
3350 case CSSValueNone: 3353 case CSSValueNone:
3351 return PE_NONE; 3354 return PE_NONE;
3352 case CSSValueVisiblepainted: 3355 case CSSValueVisiblepainted:
3353 return PE_VISIBLE_PAINTED; 3356 return PE_VISIBLE_PAINTED;
3354 case CSSValueVisiblefill: 3357 case CSSValueVisiblefill:
3355 return PE_VISIBLE_FILL; 3358 return PE_VISIBLE_FILL;
3356 case CSSValueVisiblestroke: 3359 case CSSValueVisiblestroke:
3357 return PE_VISIBLE_STROKE; 3360 return PE_VISIBLE_STROKE;
3358 case CSSValueVisible: 3361 case CSSValueVisible:
3359 return PE_VISIBLE; 3362 return PE_VISIBLE;
3360 case CSSValuePainted: 3363 case CSSValuePainted:
3361 return PE_PAINTED; 3364 return PE_PAINTED;
3362 case CSSValueFill: 3365 case CSSValueFill:
3363 return PE_FILL; 3366 return PE_FILL;
3364 case CSSValueStroke: 3367 case CSSValueStroke:
3365 return PE_STROKE; 3368 return PE_STROKE;
3369 case CSSValueBoundingBox:
3370 return PE_BOUNDINGBOX;
3366 default: 3371 default:
3367 break; 3372 break;
3368 } 3373 }
3369 3374
3370 ASSERT_NOT_REACHED(); 3375 ASSERT_NOT_REACHED();
3371 return PE_ALL; 3376 return PE_ALL;
3372 } 3377 }
3373 3378
3374 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(FontDescription::Kerning kerning) 3379 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(FontDescription::Kerning kerning)
3375 : CSSValue(PrimitiveClass) 3380 : CSSValue(PrimitiveClass)
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
4984 default: 4989 default:
4985 break; 4990 break;
4986 } 4991 }
4987 ASSERT_NOT_REACHED(); 4992 ASSERT_NOT_REACHED();
4988 return ContentBox; 4993 return ContentBox;
4989 } 4994 }
4990 4995
4991 } 4996 }
4992 4997
4993 #endif 4998 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698