Class AnonymousStyleDeclaration

All Implemented Interfaces:
ExtendedCSSStyleDeclaration, Cloneable, CSS2Properties, CSSStyleDeclaration

public abstract class AnonymousStyleDeclaration extends BaseCSSStyleDeclaration
Anonymous style declaration, associated to a non-element DOM node.
  • Constructor Details

    • AnonymousStyleDeclaration

      protected AnonymousStyleDeclaration(Node ownerNode)
    • AnonymousStyleDeclaration

      protected AnonymousStyleDeclaration(AnonymousStyleDeclaration copyme)
  • Method Details

    • getOwnerNode

      public Node getOwnerNode()
      Description copied from class: BaseCSSStyleDeclaration
      The node that owns this declaration.

      For computed styles, the owner is always the element for which the style was computed.

      Overrides:
      getOwnerNode in class BaseCSSStyleDeclaration
      Returns:
      the node that owns this declaration, or null if none.
    • getStyleDatabase

      public StyleDatabase getStyleDatabase()
      Gets the style database which is used to compute the style.
      Overrides:
      getStyleDatabase in class BaseCSSStyleDeclaration
      Returns:
      the style database, or null if no style database has been selected.