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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/StylePropertyShorthand.cpp.tmpl

Issue 2896443003: Replace remaining ASSERT with DCHECK/_EQ as appropriate (Closed)
Patch Set: Created 3 years, 7 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 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Intel Corporation. All rights reserved. 4 * Copyright (C) 2013 Intel Corporation. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return {{property.lower_camel_name}}Shorthand(); 51 return {{property.lower_camel_name}}Shorthand();
52 {% endfor %} 52 {% endfor %}
53 default: { 53 default: {
54 return emptyShorthand; 54 return emptyShorthand;
55 } 55 }
56 } 56 }
57 } 57 }
58 58
59 void getMatchingShorthandsForLonghand( 59 void getMatchingShorthandsForLonghand(
60 CSSPropertyID propertyID, Vector<StylePropertyShorthand, 4>* result) { 60 CSSPropertyID propertyID, Vector<StylePropertyShorthand, 4>* result) {
61 ASSERT(!result->size()); 61 DCHECK(!result->size());
62 switch (propertyID) { 62 switch (propertyID) {
63 {% for longhand_id, shorthands in longhands_dictionary.items() %} 63 {% for longhand_id, shorthands in longhands_dictionary.items() %}
64 case {{longhand_id}}: { 64 case {{longhand_id}}: {
65 {% for shorthand in shorthands %} 65 {% for shorthand in shorthands %}
66 result->UncheckedAppend({{shorthand.lower_camel_name}}Shorthand()); 66 result->UncheckedAppend({{shorthand.lower_camel_name}}Shorthand());
67 {% endfor %} 67 {% endfor %}
68 break; 68 break;
69 } 69 }
70 {% endfor %} 70 {% endfor %}
71 default: 71 default:
72 break; 72 break;
73 } 73 }
74 } 74 }
75 75
76 } // namespace blink 76 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698