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

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

Issue 703563002: Remove shape-outside. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | sky/engine/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 26716bd4526236aad67b6bde583b0cb04b818f2c..4455d570e144a821f538925be96cb031d18a5d6a 100644
--- a/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -452,42 +452,6 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
}
{% endmacro %}
-{% macro apply_value_shape(property_id) %}
-{{declare_value_function(property_id)}}
-{
- {% set property = properties[property_id] %}
- if (value->isPrimitiveValue()) {
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
- if (primitiveValue->getValueID() == CSSValueNone)
- {{set_value(property)}}(nullptr);
- } else if (value->isImageValue() || value->isImageGeneratorValue() || value->isImageSetValue()) {
- {{set_value(property)}}(ShapeValue::createImageValue(state.styleImage({{property_id}}, value)));
- } else if (value->isValueList()) {
- RefPtr<BasicShape> shape;
- CSSBoxType cssBox = BoxMissing;
- CSSValueList* valueList = toCSSValueList(value);
- for (unsigned i = 0; i < valueList->length(); ++i) {
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(valueList->item(i));
- if (primitiveValue->isShape())
- shape = basicShapeForValue(state, primitiveValue->getShapeValue());
- else if (primitiveValue->getValueID() == CSSValueContentBox
- || primitiveValue->getValueID() == CSSValueBorderBox
- || primitiveValue->getValueID() == CSSValuePaddingBox
- || primitiveValue->getValueID() == CSSValueMarginBox)
- cssBox = CSSBoxType(*primitiveValue);
- else
- return;
- }
-
- if (shape)
- {{set_value(property)}}(ShapeValue::createShapeValue(shape.release(), cssBox));
- else if (cssBox != BoxMissing)
- {{set_value(property)}}(ShapeValue::createBoxShapeValue(cssBox));
- }
-}
-{% endmacro %}
-{{apply_value_shape('CSSPropertyShapeOutside')}}
-
{% macro apply_alignment(property_id, alignment_type) %}
{% set property = properties[property_id] %}
{{declare_initial_function(property_id)}}
« no previous file with comments | « no previous file | sky/engine/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698