]> source.dussan.org Git - vaadin-framework.git/commitdiff
Revert "FontFace nodes are created correctly, fixes #9611" 53/53/1
authorMarc Englund <marc@vaadin.com>
Thu, 4 Oct 2012 07:50:40 +0000 (07:50 +0000)
committerVaadin Code Review <review@vaadin.com>
Thu, 4 Oct 2012 07:50:40 +0000 (07:50 +0000)
Should not be in master yet.

This reverts commit f310829d004443b40d32698bd46c9c7db8ba187a

theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
theme-compiler/src/com/vaadin/sass/tree/FontFaceNode.java [deleted file]

index 65ae3d5e93ec3b1619ae3dce5132758cccd2d6bc..c10d29aad9ec9263cc638b8fdd1ae86bae0faeab 100644 (file)
@@ -31,7 +31,6 @@ import com.vaadin.sass.parser.LexicalUnitImpl;
 import com.vaadin.sass.tree.BlockNode;
 import com.vaadin.sass.tree.CommentNode;
 import com.vaadin.sass.tree.ExtendNode;
-import com.vaadin.sass.tree.FontFaceNode;
 import com.vaadin.sass.tree.ForNode;
 import com.vaadin.sass.tree.ImportNode;
 import com.vaadin.sass.tree.ListRemoveNode;
@@ -172,14 +171,12 @@ public class SCSSDocumentHandlerImpl implements SCSSDocumentHandler {
 
     @Override
     public void startFontFace() throws CSSException {
-        FontFaceNode node = new FontFaceNode();
-        nodeStack.peek().appendChild(node);
-        nodeStack.push(node);
+        System.out.println("startFontFace()");
     }
 
     @Override
     public void endFontFace() throws CSSException {
-        nodeStack.pop();
+        System.out.println("endFontFace()");
     }
 
     @Override
diff --git a/theme-compiler/src/com/vaadin/sass/tree/FontFaceNode.java b/theme-compiler/src/com/vaadin/sass/tree/FontFaceNode.java
deleted file mode 100644 (file)
index 3dab4df..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.vaadin.sass.tree;
-
-public class FontFaceNode extends Node {
-
-    @Override
-    public String toString() {
-        StringBuilder builder = new StringBuilder();
-        builder.append("@font-face {\n");
-
-        for (final Node child : children) {
-            builder.append("\t" + child.toString() + "\n");
-        }
-
-        builder.append("}");
-        return builder.toString();
-    }
-
-}