diff options
author | Henri Sara <hesara@vaadin.com> | 2013-04-26 10:25:34 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2013-04-26 10:25:34 +0300 |
commit | 38c509fec8cd934512f433ea4b7f7781430c8d08 (patch) | |
tree | a1dcd21c383a59c1d61034c10db5801d0252a7e4 /theme-compiler/src/com/vaadin/sass | |
parent | 20e9c8e24ff1e957a35ecc9527071af82c078328 (diff) | |
download | vaadin-framework-38c509fec8cd934512f433ea4b7f7781430c8d08.tar.gz vaadin-framework-38c509fec8cd934512f433ea4b7f7781430c8d08.zip |
Remove duplicate copying of mixin child nodes (#11604)
Change-Id: I3a596df4577648ba38588a8a0e74408264e1f9fd
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java index 5aa90151b9..4e54416522 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java +++ b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java @@ -60,16 +60,10 @@ public class MixinNodeHandler { replacePossibleArguments(mixinNode, defClone); Node previous = mixinNode; - for (final Node child : defClone.getChildren()) { - - Node clone = (Node) DeepCopy.copy(child); - - replaceChildVariables(defClone, clone); - - mixinNode.getParentNode().appendChild(clone, previous); - - previous = clone; - + for (final Node child : new ArrayList<Node>(defClone.getChildren())) { + replaceChildVariables(defClone, child); + mixinNode.getParentNode().appendChild(child, previous); + previous = child; } } |