REUSING STYLE SHEET ASSETS
First Claim
Patent Images
1. A method comprising:
- parsing a document, wherein the document contains at least one reference to a style sheet;
for each referenced style sheet;
determining if a ruleset corresponding to the referenced style sheet is contained in a first local cache;
if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and
if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and
applying the ruleset(s) to the document to derive a layout for displaying the document.
1 Assignment
0 Petitions
Accused Products
Abstract
In a first embodiment of the present invention, a method is provided comprising: parsing a document, wherein the document contains at least one reference to a style sheet; for each referenced style sheet: determining if a ruleset corresponding to the referenced style sheet is contained in a first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache; if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and applying the ruleset(s) to the document to derive a layout for displaying the document.
-
Citations
19 Claims
-
1. A method comprising:
-
parsing a document, wherein the document contains at least one reference to a style sheet; for each referenced style sheet; determining if a ruleset corresponding to the referenced style sheet is contained in a first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and applying the ruleset(s) to the document to derive a layout for displaying the document. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for operating a browser comprising:
-
receiving a document at a document parser; parsing the document using the document parser to identify a style sheet referenced in the document; sending a request to a network module with the identification of the style sheet; determining, at the network module, whether the style sheet is contained in a local cache; at the network module, if the style sheet is contained in the local cache; retrieving the style sheet from the local cache; sending the style sheet to a style sheet parser; determining if a ruleset corresponding to the style sheet is contained in the local cache; if the ruleset corresponding to the style sheet is contained in the local cache; retrieving the ruleset from the local cache; and sending the ruleset to the style sheet parser; at the style sheet parser; if the ruleset was contained in the local cache, using the ruleset in lieu of parsing the style sheet; if the ruleset was not contained in the local cache; parsing the style sheet into a parsed ruleset; and sending the parsed ruleset to the network module for storage in the local cache. - View Dependent Claims (9)
-
-
10. A web browser comprising:
-
a hypertext markup language (HTML) parser; a cascading style sheet (CSS) module; a network module; a local cache; wherein the HTML parser is configured to receive a web page, parse the web page to determine at least one style sheet referenced in the web page, and send a request for the style sheet to the network module; wherein the network module is configured to; determine whether the style sheet is contained in a local cache; if the style sheet is contained in the local cache; retrieve the style sheet from the local cache; send the style sheet to the CSS module; determine if a ruleset corresponding to the style sheet is contained in the local cache; if the ruleset corresponding to the style sheet is contained in the local cache; retrieve the ruleset from the local cache; and send the ruleset to the CSS module; wherein the CSS module is configured to; if the ruleset was contained in the local cache, use the ruleset in lieu of parsing the style sheet; if the ruleset was not contained in the local cache; parse the style sheet into a parsed ruleset; and send the parsed ruleset to the network module for storage in the local cache. - View Dependent Claims (11)
-
-
12. An apparatus comprising:
-
means for parsing a document, wherein the document contains at least one reference to a style sheet; means for, for each referenced style sheet; determining if a ruleset corresponding to the referenced style sheet is contained in a first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and means for applying the ruleset(s) to the document to derive a layout for displaying the document. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. A program storage cloud platform readable by a machine tangibly embodying a program of instructions executable by the machine to perform a method comprising:
-
parsing a document, wherein the document contains at least one reference to a style sheet; for each referenced style sheet; determining if a ruleset corresponding to the referenced style sheet is contained in a first local cache; if the ruleset corresponding to the style sheet is contained in the first local cache, retrieving the ruleset corresponding to the style sheet from the first local cache; and if the referenced style sheet is not contained in the first local cache, parsing the referenced style sheet to derive a ruleset; and applying the ruleset(s) to the document to derive a layout for displaying the document.
-
Specification