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

Unified Diff: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 220023003: Rename LayoutBox to CSSBoxType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | Source/core/animation/AnimatableShapeValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1d662ef4bcd0a00d937606a3cfa9002ad8b4bcbe..062df1fb6d6b433b69e38f2bab7fd27ec8364e05 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -457,7 +457,7 @@ namespace WebCore {
{{ set_value(property) }}(ShapeValue::createImageValue(state.styleImage({{property_id}}, value)));
} else if (value->isValueList()) {
RefPtr<BasicShape> shape;
- LayoutBox layoutBox = BoxMissing;
+ CSSBoxType cssBox = BoxMissing;
CSSValueList* valueList = toCSSValueList(value);
for (unsigned i = 0; i < valueList->length(); ++i) {
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(valueList->itemWithoutBoundsCheck(i));
@@ -467,15 +467,15 @@ namespace WebCore {
|| primitiveValue->getValueID() == CSSValueBorderBox
|| primitiveValue->getValueID() == CSSValuePaddingBox
|| primitiveValue->getValueID() == CSSValueMarginBox)
- layoutBox = LayoutBox(*primitiveValue);
+ cssBox = CSSBoxType(*primitiveValue);
else
return;
}
if (shape)
- {{ set_value(property) }}(ShapeValue::createShapeValue(shape.release(), layoutBox));
- else if (layoutBox != BoxMissing)
- {{ set_value(property) }}(ShapeValue::createLayoutBoxValue(layoutBox));
+ {{ set_value(property) }}(ShapeValue::createShapeValue(shape.release(), cssBox));
+ else if (cssBox != BoxMissing)
+ {{ set_value(property) }}(ShapeValue::createBoxShapeValue(cssBox));
}
}
{%- endmacro %}
« no previous file with comments | « no previous file | Source/core/animation/AnimatableShapeValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698