| 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 97b552a043173e8f05fc3bbce1e2e5ef2814ec96..41608da871169671796a0cede7438e6f8dda5016 100644
|
| --- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| +++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| @@ -388,7 +388,7 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
|
| {% set map_fill = 'mapFill' + fill_type %}
|
| {{declare_initial_function(property_id)}}
|
| {
|
| - FillLayer* currChild = state.style()->{{access_layers}}();
|
| + FillLayer* currChild = &state.style()->{{access_layers}}();
|
| currChild->set{{fill_type}}(FillLayer::initialFill{{fill_type}}({{fill_layer_type}}));
|
| for (currChild = currChild->next(); currChild; currChild = currChild->next())
|
| currChild->clear{{fill_type}}();
|
| @@ -396,9 +396,9 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
|
|
|
| {{declare_inherit_function(property_id)}}
|
| {
|
| - FillLayer* currChild = state.style()->{{access_layers}}();
|
| + FillLayer* currChild = &state.style()->{{access_layers}}();
|
| FillLayer* prevChild = 0;
|
| - const FillLayer* currParent = state.parentStyle()->{{layer_type|lower}}Layers();
|
| + const FillLayer* currParent = &state.parentStyle()->{{layer_type|lower}}Layers();
|
| while (currParent && currParent->is{{fill_type}}Set()) {
|
| if (!currChild) {
|
| /* Need to make a new layer.*/
|
| @@ -420,7 +420,7 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
|
|
|
| {{declare_value_function(property_id)}}
|
| {
|
| - FillLayer* currChild = state.style()->{{access_layers}}();
|
| + FillLayer* currChild = &state.style()->{{access_layers}}();
|
| FillLayer* prevChild = 0;
|
| if (value->isValueList() && !value->isImageSetValue()) {
|
| /* Walk each value and put it into a layer, creating new layers as needed. */
|
|
|