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

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

Issue 772043003: Make CSSToStyleMap static. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/css/resolver/AnimatedStyleBuilder.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 be3345ce4c204b49ac989e83663e206f4b6d1832..0cfb4368b9d7cfbe0c73a4ca86bbaf345d09aabb 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -103,7 +103,7 @@ namespace blink {
CSS{{animation}}Data& data = state.style()->access{{animation}}s();
data.{{vector}}.clear();
for (CSSValueListIterator i = value; i.hasMore(); i.advance())
- data.{{vector}}.append(state.styleMap().mapAnimation{{attribute}}(i.value()));
+ data.{{vector}}.append(CSSToStyleMap::mapAnimation{{attribute}}(i.value()));
}
{% endmacro %}
{{apply_animation('CSSPropertyWebkitAnimationDelay', 'Delay', 'Animation')}}
@@ -249,13 +249,13 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
{
NinePieceImage image(state.style()->{{getter}}());
{% if modifier_type == 'Outset' %}
- image.setOutset(state.styleMap().mapNinePieceImageQuad(value));
+ image.setOutset(CSSToStyleMap::mapNinePieceImageQuad(state, value));
{% elif modifier_type == 'Repeat' %}
- state.styleMap().mapNinePieceImageRepeat(value, image);
+ CSSToStyleMap::mapNinePieceImageRepeat(state, value, image);
{% elif modifier_type == 'Slice' %}
- state.styleMap().mapNinePieceImageSlice(value, image);
+ CSSToStyleMap::mapNinePieceImageSlice(state, value, image);
{% elif modifier_type == 'Width' %}
- image.setBorderSlices(state.styleMap().mapNinePieceImageQuad(value));
+ image.setBorderSlices(CSSToStyleMap::mapNinePieceImageQuad(state, value));
{% endif %}
state.style()->{{setter}}(image);
}
@@ -423,12 +423,12 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
for (unsigned int i = 0; i < valueList->length(); i++) {
if (!currChild)
currChild = prevChild->ensureNext();
- state.styleMap().{{map_fill}}(currChild, valueList->item(i));
+ CSSToStyleMap::{{map_fill}}(state, currChild, valueList->item(i));
prevChild = currChild;
currChild = currChild->next();
}
} else {
- state.styleMap().{{map_fill}}(currChild, value);
+ CSSToStyleMap::{{map_fill}}(state, currChild, value);
currChild = currChild->next();
}
while (currChild) {
« no previous file with comments | « no previous file | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698