Incrementally parsing style sheets
Abstract
A style sheet is incrementally parsed when a change is made. Instead of parsing the entire style sheet text each time a change is made, only a portion of the style sheet is parsed in response to the incremental change. As a result of the incremental parsing the number of data structures needed to be updated upon the incremental change to the style sheet text is minimized. Since only a portion of the data structures are updated, it is possible for other components in software to have smart behavior based on the changes. For example, instead of all the display elements updating their display based on a change to the style sheet, only those dialogs or other parts of the user interface that were showing information about the changed rules need to update their display.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for incrementally parsing a style sheet, comprising: determining when a change is made to the style sheet; wherein the style sheet includes rules that are parsed; wherein the parsed rules comprise an original list of elements; determining a changed region within the style sheet; determining a portion of the style sheet to parse based on the changed region; wherein the portion of the style sheet to parse includes elements that are at least partially within a starting position of the change and at least partially within an ending position of the change; parsing the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (3)
- "Bison 1.875", Appendix B. Glossary, (C) 2003 Free Software Foundation http://www.delorie.com/gnu/docs/bison/bison-107.html.
- Beetem, J.F.; Beetem, A.F., "Incremental scanning and parsing with galaxy," Software Engineering, IEEE Transactions on , vol. 17, No. 7, pp. 641-651, Jul. 1991 URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=83901&isnumber=2738.
- Bos, Bert, Cascading Style Sheets, level 2 revision 1, CSS 2.1 Specification, W3C Working Draft Jun. 13, 2005 http://www.w3.org/TR/2005/WD-CSS21-20050613/css2.pdf.