Memory model for a layout engine and scripting engine
First Claim
Patent Images
1. A computer-implemented method comprising:
- creating at least one layout engine object in a layout engine memory space;
creating a first scripting language object in a scripting engine memory space, wherein the first scripting language object is bound to the at least one layout engine object via a linkage, wherein the linkage utilizes a custom object that is configured to represent relationships between objects in the scripting engine memory space and objects in the layout engine memory space, and wherein the custom object includes one or more pointers and at least some of the one or more pointers are configured to point to other objects in the scripting engine memory space;
assigning a pointer associated with a second scripting language object to a predefined pointer slot associated with the custom object; and
accessing the second scripting language object using the pointer assigned to the predefined pointer slot associated with the custom object.
2 Assignments
0 Petitions
Accused Products
Abstract
Various embodiments provide an interface between a Web browser'"'"'s layout engine and a scripting engine. The interface enables objects from the layout engine to be recognized by a memory manager in the scripting engine and interact in a streamlined, efficient manner. In accordance with one or more embodiments, the interface allows browser layout engine objects to be created as objects that are native to the scripting engine. Alternately or additionally, in some embodiments, the native objects are further configured to proxy functionality between the layout engine and the scripting engine.
-
Citations
19 Claims
-
1. A computer-implemented method comprising:
-
creating at least one layout engine object in a layout engine memory space; creating a first scripting language object in a scripting engine memory space, wherein the first scripting language object is bound to the at least one layout engine object via a linkage, wherein the linkage utilizes a custom object that is configured to represent relationships between objects in the scripting engine memory space and objects in the layout engine memory space, and wherein the custom object includes one or more pointers and at least some of the one or more pointers are configured to point to other objects in the scripting engine memory space; assigning a pointer associated with a second scripting language object to a predefined pointer slot associated with the custom object; and accessing the second scripting language object using the pointer assigned to the predefined pointer slot associated with the custom object. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. One or more computer-readable hardware storage memories storing one or more computer-executable instructions which, responsive to execution by at least one processor, are configured to:
-
enable one or more Interface Definition Language (IDL) files and one or more Property Description Language (PDL) files to be created that enable one or more bindings between a Web browser'"'"'s layout engine and an associated scripting engine, wherein the one or more PDL files are configured to describe one or more scripting language objects, wherein the one or more IDL files are configured to include one or more attributes associated with the one or more bindings between the Web browser'"'"'s layout engine and the associated scripting engine, wherein at least one attribute of the one or more attributes is configured to annotate a number of predefined pointer slots to reserve and include in a custom object associated with a scripting language object of the one or more scripting language objects, wherein the custom object includes one or more pointers and at least some of the one or more pointers are configured to point to other objects in a scripting engine memory space associated with the associated scripting engine, and wherein at least one attribute of the one or more attributes is configured to annotate information associated with determining allowable access to a scripting language object of the one or more scripting language objects. - View Dependent Claims (9, 10, 11, 12)
-
-
13. A system comprising:
-
at least one processor; and One or more computer-readable hardware storage memories storing one or more computer-executable instructions which, responsive to execution by the at least one processor, are configured to; create at least one layout engine object in a layout engine memory space; create a first scripting language object in a scripting engine memory space, wherein the first scripting language object is bound to the at least one layout engine object via a linkage, wherein the linkage utilizes a custom object that is configured to represent relationships between objects in the scripting engine memory space and objects in the layout engine memory space, and wherein the custom object includes one or more pointers and at least some of the one or more pointers are configured to point to other objects in the scripting engine memory space; assign a pointer associated with a second scripting language object to a predefined pointer slot associated with the custom object, wherein the second scripting language object comprises a property object associated with the at least one layout engine object; and access the second scripting language object using the pointer assigned to the predefined pointer slot associated with the custom object using an accessor function associated with the property object while remaining in the scripting engine memory space. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification