Context aware cascade operations
AssigneeMicrosoft Technology Licensing, LLC
InventorsBogdan BRINZA, Rossen ATANASSOV, Kevin M. BABBITT
Life of this patent
Estimating the term…
Abstract
In one embodiment, a change to a format of user interface output being output in a user interface is received. Relationships between nodes in a document object model and rules in a style specification are analyzed to determine a context of the change with respect to first nodes in the document object model. The context indicates the change affects a format of the first nodes. Second nodes in the document object model that are associated with the cascade are identified based on the context. The cascade is applied to the second nodes and the first nodes by calculating the change in the format of the user interface output for the second nodes and the first nodes.
Claims20
A computer system comprising:
- a processor;
- and
- a computer readable storage medium having stored thereon program code that, when executed by the processor, causes the processor to:
- receive a change to a format of user interface output being output in a user interface, the user interface output being generated using a document object model and a style specification that specifies rules for formatting nodes in the document object model;
- analyze relationships between the nodes in the document object model and the rules in the style specification to determine a context of the change with respect to one or more first nodes in the document object model, wherein the context indicates the change affects a format of the one or more first nodes;
- identify one or more second nodes in the document object model that were used to generate the user interface output, the one or more second nodes being associated with a cascade based on the context;
- and
- apply the cascade to the one or more second nodes that were used to generate the user interface output and the one or more first nodes by calculating the change in the format of the user interface output for the one or more second nodes and the one or more first nodes.
A method comprising:
- receiving, by a computing device, a change to a format of user interface output being output in a user interface, the user interface output being generated using a document object model and a style specification that specifies rules for formatting nodes in the document object model;
- analyzing, by the computing device, relationships between the nodes in the document object model and the rules in the style specification to determine a context of the change with respect to one or more first nodes in the document object model, wherein the context indicates the change affects a format of the one or more first nodes;
- identifying, by the computing device, one or more second nodes in the document object model that were used to generate the user interface output, the one or more second nodes being associated with a cascade based on the context;
- and
- applying, by the computing device, the cascade to the one or more second nodes that were used to generate the user interface output and the one or more first nodes by calculating the change in the format of the user interface output for the one or more second nodes and the one or more first nodes
A non-transitory computer readable storage medium having stored thereon program code executable by a computer system, the program code causing the computer system to:
- receive a change to a format of user interface output being output in a user interface, the user interface output being generated using a document object model and a style specification that specifies rules for formatting nodes in the document object model;
- analyze relationships between the nodes in the document object model and the rules in the style specification to determine a context of the change with respect to one or more first nodes in the document object model, wherein the context indicates the change affects a format of the one or more first nodes;
- identify one or more second nodes in the document object model used to generate the user interface output, the one or more second nodes being associated with a cascade based on the context;
- and
- identify one or more second nodes in the document object model that were used to generate the user interface output, the one or more second nodes being associated with a cascade based on the context;
- and
- apply the cascade to the one or more second nodes that were used to generate the user interface output and the one or more first nodes by calculating the change in the format of the user interface output for the one or more second nodes and the one or more first nodes.
Dependencies are inferred from the claim text.