Class MarkRemovableRulesetNodesForChunk<T>

Type Parameters:
T - type of chunk id objects
All Implemented Interfaces:
AtRuleHandler, CssCompilerPass, CssTreeVisitor

public class MarkRemovableRulesetNodesForChunk<T> extends MarkRemovableRulesetNodes
Compiler pass that marks ruleset nodes that should be removed from the tree, within the confines of a single chunk.

This pass has the same assumptions as MarkRemovableRulesetNodes.

  • Constructor Details

    • MarkRemovableRulesetNodesForChunk

      public MarkRemovableRulesetNodesForChunk(T chunk, CssTree tree, boolean skipping)
  • Method Details

    • canModifyRuleset

      public boolean canModifyRuleset(CssRulesetNode ruleset)
      Description copied from class: SkippingTreeVisitor
      This method checks if the given ruleset is safe to be changed.
      Overrides:
      canModifyRuleset in class SkippingTreeVisitor
      Returns:
      false if the ruleset is not safe to be modified (because it contains any of the pre-defined property names when skipping is turned on), true otherwise.