Index: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
index 8ceae897f076745be4cd8f4098210a2f071d7c7f..3e203671b2f001aebcabc2d6aa90e73edd66ad7e 100644 |
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
@@ -498,70 +498,6 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt |
{{apply_grid_template('CSSPropertyGridTemplateColumns', 'Column')}} |
{{apply_grid_template('CSSPropertyGridTemplateRows', 'Row')}} |
-{% macro apply_alignment(property_id, alignment_type) %} |
-{% set property = properties[property_id] %} |
-{{declare_initial_function(property_id)}} |
-{ |
- state.style()->set{{alignment_type}}(ComputedStyle::initial{{alignment_type}}()); |
- state.style()->set{{alignment_type}}OverflowAlignment(ComputedStyle::initial{{alignment_type}}OverflowAlignment()); |
-} |
- |
-{{declare_inherit_function(property_id)}} |
-{ |
- state.style()->set{{alignment_type}}(state.parentStyle()->{{property.getter}}()); |
- state.style()->set{{alignment_type}}OverflowAlignment(state.parentStyle()->{{property.getter}}OverflowAlignment()); |
-} |
- |
-{{declare_value_function(property_id)}} |
-{ |
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
- if (Pair* pairValue = primitiveValue->getPairValue()) { |
- state.style()->set{{alignment_type}}(*pairValue->first()); |
- state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second()); |
- } else { |
- state.style()->set{{alignment_type}}(*primitiveValue); |
- state.style()->set{{alignment_type}}OverflowAlignment(ComputedStyle::initial{{alignment_type}}OverflowAlignment()); |
- } |
-} |
-{% endmacro %} |
-{{apply_alignment('CSSPropertyJustifySelf', 'JustifySelf')}} |
-{{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}} |
-{{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}} |
- |
-{% macro apply_content_alignment(property_id, alignment_type) %} |
-{% set property = properties[property_id] %} |
-{{declare_initial_function(property_id)}} |
-{ |
- state.style()->set{{alignment_type}}(ComputedStyle::initial{{alignment_type}}()); |
- state.style()->set{{alignment_type}}OverflowAlignment(ComputedStyle::initial{{alignment_type}}OverflowAlignment()); |
- state.style()->set{{alignment_type}}Distribution(ComputedStyle::initial{{alignment_type}}Distribution()); |
-} |
- |
-{{declare_inherit_function(property_id)}} |
-{ |
- state.style()->set{{alignment_type}}(state.parentStyle()->{{property.getter}}()); |
- state.style()->set{{alignment_type}}OverflowAlignment(state.parentStyle()->{{property.getter}}OverflowAlignment()); |
- state.style()->set{{alignment_type}}Distribution(state.parentStyle()->{{property.getter}}Distribution()); |
-} |
- |
-{{declare_value_function(property_id)}} |
-{ |
- state.style()->set{{alignment_type}}(ComputedStyle::initial{{alignment_type}}()); |
- state.style()->set{{alignment_type}}OverflowAlignment(ComputedStyle::initial{{alignment_type}}OverflowAlignment()); |
- state.style()->set{{alignment_type}}Distribution(ComputedStyle::initial{{alignment_type}}Distribution()); |
- |
- CSSContentDistributionValue* contentValue = toCSSContentDistributionValue(value); |
- if (contentValue->distribution()->getValueID() != CSSValueInvalid) |
- state.style()->set{{alignment_type}}Distribution(*contentValue->distribution()); |
- if (contentValue->position()->getValueID() != CSSValueInvalid) |
- state.style()->set{{alignment_type}}(*contentValue->position()); |
- if (contentValue->overflow()->getValueID() != CSSValueInvalid) |
- state.style()->set{{alignment_type}}OverflowAlignment(*contentValue->overflow()); |
-} |
-{% endmacro %} |
-{{apply_content_alignment('CSSPropertyJustifyContent', 'JustifyContent')}} |
-{{apply_content_alignment('CSSPropertyAlignContent', 'AlignContent')}} |
- |
{% macro apply_svg_paint(property_id, paint_type) %} |
{% set property = properties[property_id] %} |
{{declare_initial_function(property_id)}} |