Examples of CSSStyleSheet


Examples of com.adobe.dp.css.CSSStylesheet

  CSSStylesheet css;

  public Stylesheet(StyleResource owner) {
    this.owner = owner;
    css = new CSSStylesheet();
  }
View Full Code Here

Examples of com.google.gwt.libideas.resources.css.ast.CssStylesheet

* Tests the CssNodeCloner utility class.
*/
public class CssNodeClonerTest extends CssTestCase {

  public void testClone() throws UnableToCompleteException {
    CssStylesheet sheet = GenerateCssAst.exec(TreeLogger.NULL,
        new URL[] {getClass().getClassLoader().getResource(
            "com/google/gwt/libideas/resources/client/test.css")});

    CssStylesheet cloned = CssNodeCloner.clone(CssStylesheet.class, sheet);

    assertNotSame(sheet, cloned);
    assertNoAliasing(cloned);
  }
View Full Code Here

Examples of com.google.gwt.libideas.resources.css.ast.CssStylesheet

    assertNotSame(sheet, cloned);
    assertNoAliasing(cloned);
  }

  public void testCloneList() throws UnableToCompleteException {
    CssStylesheet sheet = GenerateCssAst.exec(TreeLogger.NULL,
        new URL[] {getClass().getClassLoader().getResource(
            "com/google/gwt/libideas/resources/client/test.css")});

    List<CssNode> cloned = CssNodeCloner.clone(CssNode.class, sheet.getNodes());

    assertEquals(sheet.getNodes().size(), cloned.size());

    for (CssNode node : cloned) {
      assertNoAliasing(node);
    }
  }
View Full Code Here

Examples of com.google.gwt.libideas.resources.css.ast.CssStylesheet

   * order by the specified visitors, and a golden-output file.
   */
  private static void test(TreeLogger logger, URL test, URL expected,
      CssVisitor... visitors) throws UnableToCompleteException {

    CssStylesheet expectedSheet = null;
    CssStylesheet testSheet = null;

    try {
      expectedSheet = GenerateCssAst.exec(logger, new URL[] {expected});
      testSheet = GenerateCssAst.exec(logger, new URL[] {test});
    } catch (UnableToCompleteException e) {
View Full Code Here

Examples of com.google.gwt.libideas.resources.css.ast.CssStylesheet

      logger.log(TreeLogger.ERROR, "Return type must be an interface");
      throw new UnableToCompleteException();
    }

    // Create the AST and do a quick scan for requirements
    CssStylesheet sheet = GenerateCssAst.exec(logger, resources);
    stylesheetMap.put(method, sheet);
    (new RequirementsCollector(logger, requirements)).accept(sheet);
  }
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssStylesheet

      logger.log(TreeLogger.ERROR, "At least one source must be specified");
      throw new UnableToCompleteException();
    }

    // Create the AST and do a quick scan for requirements
    CssStylesheet sheet = GenerateCssAst.exec(logger, resources);
    stylesheetMap.put(method, sheet);
    (new RequirementsCollector(logger, requirements)).accept(sheet);
  }
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssStylesheet

        throw new RuntimeException(e);
      }
    }
    assert urls.size() > 0;

    CssStylesheet sheet = GenerateCssAst.exec(logger.getTreeLogger(),
        urls.toArray(new URL[urls.size()]));
    return ExtractClassNamesVisitor.exec(sheet,
        imports.toArray(new JClassType[imports.size()]));
  }
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssStylesheet

      this.sheet = sheet;
      this.timestamp = timestamp;
    }

    public CssStylesheet getCopyOfStylesheet() {
      return new CssStylesheet(sheet);
    }
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssStylesheet

      return gssResourceGenerator.createAssignment(logger, context, method);
    }

    JClassType cssResourceSubtype = method.getReturnType().isInterface();
    assert cssResourceSubtype != null;
    CssStylesheet stylesheet = stylesheetMap.get(method);

    // Optimize the stylesheet, recording the class selector obfuscations
    Map<JMethod, String> actualReplacements = optimize(logger, context, method);

    outputCssMapArtifact(logger, context, method, actualReplacements);
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssStylesheet

    // At this point, gss is not enabled so we shouldn't try to compile a gss file.
    ensureNoGssFile(resources, logger);

    // Create the AST and do a quick scan for requirements
    CssStylesheet sheet = GenerateCssAst.exec(logger, resources);
    checkSheet(logger, sheet);
    stylesheetMap.put(method, sheet);
    (new RequirementsCollector(logger, context.getRequirements())).accept(sheet);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.