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

Side by Side Diff: sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 1078943002: remove 'widows' property because paged media support is gone so this does nothing now (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {# 2 {#
3 This file is for property handlers which use the templating engine to 3 This file is for property handlers which use the templating engine to
4 reduce (handwritten) code duplication. 4 reduce (handwritten) code duplication.
5 5
6 The `properties' dict can be used to access a property's parameters in 6 The `properties' dict can be used to access a property's parameters in
7 jinja2 templates (i.e. setter, getter, initial, type_name) 7 jinja2 templates (i.e. setter, getter, initial, type_name)
8 #} 8 #}
9 #include "config.h" 9 #include "config.h"
10 #include "StyleBuilderFunctions.h" 10 #include "StyleBuilderFunctions.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return; 136 return;
137 137
138 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 138 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
139 if (primitiveValue->getValueID() == {{auto_identity}}) 139 if (primitiveValue->getValueID() == {{auto_identity}})
140 state.style()->{{auto_setter}}(); 140 state.style()->{{auto_setter}}();
141 else 141 else
142 {{convert_and_set_value(property)}} 142 {{convert_and_set_value(property)}}
143 } 143 }
144 {% endmacro %} 144 {% endmacro %}
145 {{apply_auto('CSSPropertyClip')}} 145 {{apply_auto('CSSPropertyClip')}}
146 {{apply_auto('CSSPropertyWidows')}}
147 {{apply_auto('CSSPropertyZIndex')}} 146 {{apply_auto('CSSPropertyZIndex')}}
148 147
149 static bool lengthTypeAndValueMatch(const Length& length, LengthType type, float value) 148 static bool lengthTypeAndValueMatch(const Length& length, LengthType type, float value)
150 { 149 {
151 return length.type() == type && length.value() == value; 150 return length.type() == type && length.value() == value;
152 } 151 }
153 152
154 static bool lengthTypeAndValueMatch(const LengthBox& lengthBox, LengthType type, float value) 153 static bool lengthTypeAndValueMatch(const LengthBox& lengthBox, LengthType type, float value)
155 { 154 {
156 return (lengthTypeAndValueMatch(lengthBox.left(), type, value) 155 return (lengthTypeAndValueMatch(lengthBox.left(), type, value)
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second ()); 440 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second ());
442 } else { 441 } else {
443 state.style()->set{{alignment_type}}(*primitiveValue); 442 state.style()->set{{alignment_type}}(*primitiveValue);
444 } 443 }
445 } 444 }
446 {% endmacro %} 445 {% endmacro %}
447 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}} 446 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}}
448 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}} 447 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}}
449 448
450 } // namespace blink 449 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698