瀏覽代碼

Remove duplicate copying of mixin child nodes (#11604)

Change-Id: I3a596df4577648ba38588a8a0e74408264e1f9fd
tags/7.1.0.beta1
Henri Sara 11 年之前
父節點
當前提交
38c509fec8
共有 1 個檔案被更改,包括 4 行新增10 行删除
  1. 4
    10
      theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java

+ 4
- 10
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;
}

}

Loading…
取消
儲存