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

Unified Diff: trunk/Source/build/scripts/templates/StyleBuilder.cpp.tmpl

Issue 203583004: Revert 168577 "Remove spurious check for invalid value." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
===================================================================
--- trunk/Source/build/scripts/templates/StyleBuilder.cpp.tmpl (revision 169455)
+++ trunk/Source/build/scripts/templates/StyleBuilder.cpp.tmpl (working copy)
@@ -59,6 +59,8 @@
{%- if property.converter %}
{{ set_value(property) }}(StyleBuilderConverter::{{property.converter}}(state, value));
{%- elif property.font %}
+ if (!value->isPrimitiveValue())
+ return;
{{ set_value(property) }}(static_cast<{{property.type_name}}>(*toCSSPrimitiveValue(value)));
{%- else %}
{{ set_value(property) }}(static_cast<{{property.type_name}}>(*toCSSPrimitiveValue(value)));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698