2002-05-23 01:07:29 +04:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Layout Overview</title>
|
|
|
|
<meta http-equiv="content-type"
|
|
|
|
content="text/html; charset=ISO-8859-1">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Layout System Overview</h1>
|
|
|
|
<br>
|
|
|
|
<h3>Layout's Job: Provide the Presentation</h3>
|
2002-11-16 13:46:53 +03:00
|
|
|
Layout is primarily concerned with providing a presentation to an HTML or
|
2002-05-23 01:07:29 +04:00
|
|
|
XML document. This presentation is typically formatted in accordance with
|
|
|
|
the requirements of the <a href="http://www.w3.org/TR/REC-CSS1">CSS1</a>
|
|
|
|
and <a href="http://www.w3.org/TR/REC-CSS2/">CSS2</a> specifications from
|
|
|
|
the W3C. Presentation formatting is also required to provide compatibility
|
2002-11-16 13:46:53 +03:00
|
|
|
with legacy browsers (Microsoft Internet Explorer and Netscape Navigator
|
2002-05-23 01:07:29 +04:00
|
|
|
4.x). The decision about when to apply CSS-specified formatting and when
|
|
|
|
to apply legacy formatting is controlled by the document's DOCTYPE specification.
|
2005-11-21 01:05:24 +03:00
|
|
|
These layout modes are referred to as 'Standards' and 'NavQuirks' modes. (DOCTYPE
|
2002-05-23 01:07:29 +04:00
|
|
|
and modes are explained in more detail <a
|
|
|
|
href="http://www.mozilla.org/quality/help/bugzilla-helper.html">here</a>).<br>
|
|
|
|
<br>
|
2002-11-16 13:46:53 +03:00
|
|
|
The presentation generally is constrained by the width of the window in which
|
2002-05-23 01:07:29 +04:00
|
|
|
the presentation is to be displayed, and a height that extends as far as
|
|
|
|
necessary. This is referred to as the Galley Mode presentation, and is what
|
|
|
|
one expects from a typical browser. Additionally, layout must support a paginated
|
|
|
|
presentation, where the width of the presentation is constrained by the dimensions
|
|
|
|
of the printed output (paper) and the height of each page is fixed. This
|
|
|
|
paged presentation presents several challenges not present in the galley
|
|
|
|
presentation, namely how to break up elements that are larger than a single
|
|
|
|
page, and how to handle changes to page dimensions.<br>
|
|
|
|
<br>
|
|
|
|
The original design of the Layout system allowed for multiple, possibly different,
|
2002-11-16 13:46:53 +03:00
|
|
|
presentations to be supported simultaneously from the same content model.
|
2002-05-23 01:07:29 +04:00
|
|
|
In other words, the same HTML or XML document could be viewed as a normal
|
2002-11-16 13:46:53 +03:00
|
|
|
galley presentation in a browser window, while simultaneously being presented
|
2002-05-23 01:07:29 +04:00
|
|
|
in a paged presentation to a printer, or even an aural presentation to a
|
2002-11-16 13:46:53 +03:00
|
|
|
speech-synthesizer. To date the only real use of this multiple presentation
|
2002-05-23 01:07:29 +04:00
|
|
|
ability is seen in printing, where multiple presentations are managed, all
|
|
|
|
connected to the same content model. (note: it is unclear if this is really
|
|
|
|
a benefit - it may have been better to use a copy of the content model for
|
2003-03-24 07:15:34 +03:00
|
|
|
each presentation, and to remove the complexity of managing separate presentations
|
2002-05-23 01:07:29 +04:00
|
|
|
- analysis is needed here). The idea of supporting a non-visual presentation
|
|
|
|
is interesting. Layout's support for aural presentations is undeveloped,
|
|
|
|
though conceptually, it is possible and supported by the architecture.<br>
|
|
|
|
<br>
|
|
|
|
<h3>How Layout Does its Job: Frames and Reflow</h3>
|
|
|
|
So, layout is concerned with providing a presentation, in galley or paged
|
|
|
|
mode. Given a content model, how does the layout system actually create the
|
|
|
|
presentation? Through the creation and management of frames. Frames are an
|
|
|
|
encapsulation of a region on the screen, a region that contains geometry
|
|
|
|
(size and location, stacking order). Generally frames correspond to the content
|
|
|
|
elements, though there is often a one-to-many correspondence between content
|
|
|
|
elements and frames. Layout creates frames for content based on either the
|
2002-11-16 13:46:53 +03:00
|
|
|
specific HTML rules for an element or based on the CSS display type of the
|
2002-05-23 01:07:29 +04:00
|
|
|
element. In the case of the HTML-specific elements, the frame types that
|
|
|
|
correspond to the element are hard-coded, but in the more general case where
|
|
|
|
the display type is needes, the layout system must determine that display
|
|
|
|
type by using the Style System. A content element is passed to the Style
|
|
|
|
System and a request is made to resolve the style for that element. This
|
|
|
|
causes the Style System to apply all style rules that correspond to the element
|
|
|
|
and results in a resolved Style Context - the style data specific to that
|
|
|
|
element. The Layout module looks at the 'display' field of the style context
|
|
|
|
to determine what kind of frame to create (block, inline, table, etc.). The
|
2002-11-16 13:46:53 +03:00
|
|
|
style context is associated with the frame via a reference because it is
|
2002-05-23 01:07:29 +04:00
|
|
|
needed for many other computations during the formatting of the frames.<br>
|
|
|
|
<br>
|
|
|
|
Once a frame is created for a content element, it must be formatted. We refer
|
|
|
|
to this as 'laying out' the frame, or as 'reflowing' the frame. Each frame
|
|
|
|
implements a Reflow method to compute its position and size, among other
|
|
|
|
things. For more details on the Reflow mechanism, see the Reflow Overview
|
|
|
|
document... The CSS formatting requirements present two distinct layout
|
|
|
|
models: 1) the in-flow model, where the geometry of an element is influenced
|
2005-11-21 01:05:24 +03:00
|
|
|
by the geometry of the elements that precede it, and 2) the positioned model,
|
2002-05-23 01:07:29 +04:00
|
|
|
where the geometry of an element is not influenced by the geometry of the
|
2005-11-21 01:05:24 +03:00
|
|
|
elements that precede it, or in any case, is influenced more locally. The
|
2002-05-23 01:07:29 +04:00
|
|
|
in-flow cased is considered the 'normal' case, and corresponds to normal
|
|
|
|
HTML formatting. The later case, called 'out of flow' puts the document author
|
|
|
|
in control of the layout, and the author must specify the locations and sizes
|
|
|
|
of all of the elements that are positioned. There is, of course, some complexity
|
2002-11-16 13:46:53 +03:00
|
|
|
involved with managing these two models simultanelusly...<br>
|
2002-05-23 01:07:29 +04:00
|
|
|
<br>
|
|
|
|
So far the general flow of layout looks like this:<br>
|
|
|
|
<br>
|
|
|
|
1) Obtain a document's content model<br>
|
|
|
|
2) Utilize the Style System to resolve the style of each element in the content
|
|
|
|
model<br>
|
|
|
|
3) Construct the frames that correspond to the content model, according to
|
|
|
|
the resolved style data.<br>
|
|
|
|
4) Perform the initial layout, or initial reflow, on the newly constructed
|
|
|
|
frame.<br>
|
|
|
|
<br>
|
|
|
|
This is pretty straight-forward, but is complicated somewhat by the notion
|
|
|
|
of <i>incrementalism</i>. One of the goals of the Layout system's design
|
|
|
|
is to create parts of the presentation as they become available, rather than
|
|
|
|
waiting for the entire document to be read, parsed, and then presented. This
|
2002-11-16 13:46:53 +03:00
|
|
|
is a major benefit for large documents because the user does not have to wait
|
2002-05-23 01:07:29 +04:00
|
|
|
for the 200th page of text to be read in before the first page can be displayed
|
|
|
|
- they can start reading something right away. So really, this sequence of
|
|
|
|
operations Resolve Style, Create Frame, Layout Frame, gets repeated many
|
|
|
|
times as the content becomes available. In the normal in-flow case this is
|
|
|
|
quite natural because the sequential addition of new content results in sequential
|
|
|
|
addition of new frames, and because everything is in-flow, the new frames
|
|
|
|
do not influence the geometry of the frames that have already been formatted.
|
|
|
|
When out-of-flow frames are present this is a more difficult problem, however.
|
|
|
|
Sometimes a content element comes in incrementally, and invalidates the formatting
|
2005-11-21 01:05:24 +03:00
|
|
|
of some of the frames that precede it, frame that have already been formatted.
|
2002-05-23 01:07:29 +04:00
|
|
|
In this case the Layout System has to detect that impact and reflow again
|
|
|
|
the impacted frames. This is referred to as an <i>incremental reflow</i>.<br>
|
|
|
|
<br>
|
|
|
|
<a name="DHTML_interaction"></a>Another responsibility of layout is to manage
|
|
|
|
dynamic changes to the content model, changes that occur after the document
|
|
|
|
has been loaded and (possibly) presented. These dynamic changes are caused
|
|
|
|
by manipulations of the content model via the <acronym
|
|
|
|
title="Document Object Model">DOM<acronym></acronym></acronym> (generally
|
|
|
|
through java script). When a content element is modified, added or removed,
|
2002-11-16 13:46:53 +03:00
|
|
|
Layout is notified. If content elements have been inserted, new frames are
|
|
|
|
created and formatted (and impacts to other frames are managed by performing
|
2002-05-23 01:07:29 +04:00
|
|
|
further incremental reflows). If content is removed, the corresponding frames
|
|
|
|
are destroyed (again, impacts to other elements are managed). If a content
|
|
|
|
element is modified, layout must determine if the chage influences the formatting
|
|
|
|
of that or other elements' presentations, and must then reformat, or re-reflow,
|
|
|
|
the impacted elements. In all cases, the determination of the impact is critical
|
|
|
|
to avoid either the problem of not updating impacted elements, thus presenting
|
|
|
|
an invalid presentation, or updating too much of the presentation and thus
|
|
|
|
doing too much work, potentially causing performance problems.<br>
|
|
|
|
<br>
|
|
|
|
One very special case of dynamic content manipulation is the HTML Editor.
|
2002-11-16 13:46:53 +03:00
|
|
|
Layout is used to implement both a full-blown WYSIWYG HTML editor, and a single
|
2002-05-23 01:07:29 +04:00
|
|
|
and multi-line text entry control. In both cases, the content is manipulated
|
2002-11-16 13:46:53 +03:00
|
|
|
by the user (via the DOM) and the resulting visual impacts must be shown as
|
2002-05-23 01:07:29 +04:00
|
|
|
quickly as possible, without disconcerting flicker or other artifacts that
|
|
|
|
might bother the user. Consider a text entry field: the user types text into
|
|
|
|
a form on the web. As the user types a new character it is inserted into
|
|
|
|
the content model. This causes layout to be notified that a new piece of
|
2002-11-16 13:46:53 +03:00
|
|
|
content has been entered, which causes Layout to create a new frame and format
|
2002-05-23 01:07:29 +04:00
|
|
|
it. This must happen very fast, so the user's typing is not delayed. In the
|
|
|
|
case of the WYSIWYG HTML editor, the user expects that the modifications
|
2002-11-16 13:46:53 +03:00
|
|
|
they make to the document will apear immediately, not seconds later. This
|
2002-05-23 01:07:29 +04:00
|
|
|
is especially critical when the user is typing into the document: it would
|
|
|
|
be quite unusable if typing a character at the end of a document in the HTML
|
|
|
|
editor caused the entire document to be reformated - it would be too slow,
|
2002-11-16 13:46:53 +03:00
|
|
|
at least on low-end machines. Thus the HTML editor and text controls put
|
|
|
|
considerable performance requirements on the layout system's handling of dynamic
|
2002-05-23 01:07:29 +04:00
|
|
|
content manipulation.<br>
|
|
|
|
<h3>The Fundamentals of Frames: Block and Line</h3>
|
2002-11-16 13:46:53 +03:00
|
|
|
There are many types of frames that are designed to model various formatting
|
2002-05-23 01:07:29 +04:00
|
|
|
requirements of different HTML and XML elements. CSS2 defines several (block,
|
|
|
|
inline, list-item, marker, run-in, compact, and various table types) and
|
|
|
|
the standard HTML form controls require their own special frame types to
|
2002-11-16 13:46:53 +03:00
|
|
|
be formatted as expected. The most essential frame types are Block and Inline,
|
2002-05-23 01:07:29 +04:00
|
|
|
and these correspond to the most important Layout concepts, the Block and
|
|
|
|
Line.<br>
|
|
|
|
<br>
|
|
|
|
A block is a rectangular region that is composed of one or more lines. A
|
|
|
|
line is a single row of text or other presentational elements. All layout
|
|
|
|
happens in the context of a block, and all of the contents of a block are
|
|
|
|
formatted into lines within that block. As the width of a block is changed,
|
|
|
|
the contents of the lines must be reformatted. consider for example a large
|
|
|
|
paragraph of text sitting in paragraph:<br>
|
|
|
|
<br>
|
|
|
|
<pre><p><br> We need documentation for users, web developers, and developers working
|
|
|
|
on Mozilla. If you write your own code, document it. Much of the
|
|
|
|
existing code <b>isn’t very well documented</b>. In the process of figuring
|
|
|
|
things out, try and document your discoveries.
|
|
|
|
If you’d like to contribute, let us know.<br></p></pre>
|
2002-11-16 13:46:53 +03:00
|
|
|
There is one block that corresponds to the <p> element, and then a number
|
2002-05-23 01:07:29 +04:00
|
|
|
of lines of text that correspond to the text. As the width of the block changes
|
|
|
|
(due to the window being resized, for example) the length of the lines within
|
|
|
|
it changes, and thus more or less text appears on each line. The block is
|
|
|
|
responsible for managing the lines. Note that lines may contain only inline
|
|
|
|
elements, whereas block may contain both inline elements and other blocks.<br>
|
|
|
|
<h3>Other Layout Models: XUL</h3>
|
|
|
|
In addition to managing CSS-defined formatting, the layout system provides
|
|
|
|
a way to integrate other layout schemes into the presentation. Currently
|
|
|
|
layout supports the formatting of XUL elements, which utilize a constraint-based
|
2002-11-16 13:46:53 +03:00
|
|
|
layout language. The Box is introduced into the layout system's frame model
|
2002-05-23 01:07:29 +04:00
|
|
|
via an adapter (BoxToBlockAdapter) that translates the normal layout model
|
|
|
|
into the box formatting model. Conceptually, this could be used to introduce
|
|
|
|
other layout systems, but it might be worth noting that there was no specific
|
|
|
|
facility designed into the layout system to accommodate this. Layout deals
|
|
|
|
with frames, but as long as the layout system being considered has no need
|
|
|
|
to influence presentational elements from other layout systems, it can be
|
|
|
|
adapted using a frame-based adapter, ala XUL.<br>
|
|
|
|
<br>
|
|
|
|
<h2>Core Classes</h2>
|
|
|
|
At the highest level, the layout system is a group of classes that manages
|
|
|
|
the presentation within a fixed width and either unlimited height (galley
|
|
|
|
presentation) or discrete page heights (paged presentation). Digging just
|
2002-11-16 13:46:53 +03:00
|
|
|
a tiny bit deeper into the system we find that the complexity (and interest)
|
2002-05-23 01:07:29 +04:00
|
|
|
mushrooms very rapidly. The idea of formatting text and graphics to fit within
|
|
|
|
a given screen area sounds simple, but the interaction of in-flow and out-of-flow
|
|
|
|
elements, the considerations of incremental page rendering, and the performance
|
|
|
|
concerns of dynamic content changes makes for a system that has a lot of
|
|
|
|
work to do, and a lot of data to manage. Here are the high-level classes
|
|
|
|
that make up the layout system. Of course this is a small percentage of the
|
|
|
|
total clases in layout (see the detailed design documents for the details
|
|
|
|
on all of the classes, in the context of their actual role).<br>
|
|
|
|
<h3>Presentation Shell / Presentation Context</h3>
|
|
|
|
Together the presentation shell and the presentation context provide the
|
|
|
|
root of the current presentation. The original design provided for a single
|
|
|
|
Presentation Shell to manage multiple Presentation Contexts, to allow a single
|
|
|
|
shell to handle multiple presentations. It is unclear if this is really possible,
|
2002-11-16 13:46:53 +03:00
|
|
|
however, and in general it is assumed that there is a one-to-one correspondence
|
2002-05-23 01:07:29 +04:00
|
|
|
between a presentation shell and a presentation context. The two classes
|
|
|
|
should probably be folded into one, or the distinction between them formalized
|
|
|
|
and utilized in the code. The Presentation Shell currently owns a controlling
|
|
|
|
reference to the Presentation Context. Further references to the Presentation
|
|
|
|
Shell and Presentation Context will be made by using the term Presentation
|
|
|
|
Shell.<br>
|
|
|
|
<br>
|
|
|
|
The Presentation Shell is the root of the presentation, and as such it owns
|
|
|
|
and manges a lot of layout objects that are used to create and maintain a
|
|
|
|
presentation (<font color="#990000">note that the DocumentViewer is the owner
|
2002-11-16 13:46:53 +03:00
|
|
|
of the Presentation Shell, and in some cases the creator of the objects
|
|
|
|
used by the Presentation Shell to manage the presentation. More details
|
2002-05-23 01:07:29 +04:00
|
|
|
of the Document Viewer are needed here...</font>). The Presentation Shell,
|
|
|
|
or PresShell, is first and foremost the owner of the formatting objects,
|
|
|
|
the frames. Management of the frames is facilitated by the Frame Manager,
|
|
|
|
an instance of which the PresShell owns. Additionally, the PresShell provides
|
|
|
|
a specialized storage heap for frames, called an Arena, that is used to make
|
|
|
|
allocation and deallocation of frames faster and less likely to fragment
|
|
|
|
the global heap. <br>
|
|
|
|
<br>
|
|
|
|
The Presentation Shell also owns the root of the Style System, the Style
|
|
|
|
Set. In many cases the Presentation Shell provides pass-through methods to
|
|
|
|
the Style Set, and generally uses the Style Set to do style resolution and
|
|
|
|
Style Sheet management.<br>
|
|
|
|
<br>
|
|
|
|
One of the critical aspects of the Presentation Shell is the handling of
|
|
|
|
frame formatting, or reflow. The Presentation Shell owns and maintains a
|
|
|
|
Reflow Queue where requests for reflow are held until it is time to perform
|
|
|
|
a reflow, and then pulled out and executed.<br>
|
|
|
|
<br>
|
|
|
|
It is also important to see the Presentation Shell as an observer of many
|
|
|
|
kinds of events in the system. For example, the Presentation Shell receives
|
|
|
|
notifications of document load events, which are used to trigger updates
|
|
|
|
to the formatting of the frames in some cases. The Presentation Shell also
|
|
|
|
receives notifications about changes in cursor and focus states, whereby
|
2002-11-16 13:46:53 +03:00
|
|
|
the selection and caret updates can be made visible.<br>
|
2002-05-23 01:07:29 +04:00
|
|
|
<br>
|
|
|
|
There are dozens of other data objects managed by the Presentation Shell
|
|
|
|
and Presentation Context, all necessary for the internal implementation.
|
|
|
|
These data members and their roles will be discussed in the Presentation
|
|
|
|
Shell design documents. For this overview, the Frames, Style Set, and Reflow
|
|
|
|
Queue are the most important high-level parts of the Presentation Shell.<br>
|
|
|
|
<h3>Frame Manager</h3>
|
2002-11-16 13:46:53 +03:00
|
|
|
The Frame Manager is used to, well, manage frames. Frames are basic formatting
|
2002-05-23 01:07:29 +04:00
|
|
|
objects used in layout, and the Frame Manager is responsible for making frames
|
|
|
|
available to clients. There are several collections of frames maintained
|
|
|
|
by the Frame Manager. The most basic is a list of all of the frames starting
|
|
|
|
at the root frame. Clients generally do not want to incur the expense of
|
|
|
|
traversing all of the frames from the root to find the frame they are interested
|
2002-11-16 13:46:53 +03:00
|
|
|
in, so the Frame Manager provides some other mappings based on the needs of
|
2002-05-23 01:07:29 +04:00
|
|
|
the clients.<br>
|
|
|
|
<br>
|
2002-11-16 13:46:53 +03:00
|
|
|
The most crucial mapping is the Primary Frame Map. This collection provides
|
2002-05-23 01:07:29 +04:00
|
|
|
access to a frame that is designated as the primary frame for a piece of
|
|
|
|
content. When a frame is created for a piece of content, it may be the 'primary
|
2002-11-16 13:46:53 +03:00
|
|
|
frame' for that content element (content elements that require multiple
|
2002-05-23 01:07:29 +04:00
|
|
|
frames have primary and secondary frames; only the primary frame is mapped).
|
|
|
|
The Frame Manager is then instructed to store the mapping from a content
|
|
|
|
element to the primary frame. This mapping facilitates updates to frames
|
|
|
|
that result in changes to content (see <a href="#DHTML_interaction">discussion
|
|
|
|
above</a>).<br>
|
|
|
|
<br>
|
|
|
|
Another important mapping maintained by the Frame Manager is that of the
|
|
|
|
undisplayed content. When a content element is defined as having no display
|
|
|
|
(via the CSS property 'display:none') it is noted by a special entry in the
|
|
|
|
undisplayed map. This is important because no frame is generated for these
|
|
|
|
elements yet changes to their style values and to the content elements still
|
|
|
|
need to be handled by layout, in case their display state changes from 'none'
|
2002-11-16 13:46:53 +03:00
|
|
|
to something else. The Undisplayed Map keeps track of all content and style
|
2002-05-23 01:07:29 +04:00
|
|
|
data for elements that currently have no frames. (<font color="#990000">note:
|
|
|
|
the original architecture of the layout system included the creation of frames
|
|
|
|
for elements with no display. This changed somewhere along the line, but
|
|
|
|
there is no indication of why the change was made. Presumably it is more
|
|
|
|
time and space-efficient to prevent frame creation for elements with no display.)</font><br>
|
|
|
|
<br>
|
|
|
|
The Frame Manager also maintains a list of Forms and Form Controls, as <i>content
|
|
|
|
nodes</i>. This is presumably related to the fact that layout is responsible
|
|
|
|
for form submission, but this is a design flaw that is being corrected by
|
|
|
|
moving form submission into the content world. These collections of Forms
|
|
|
|
and Form Controls should be removed eventually.<br>
|
|
|
|
<br>
|
|
|
|
<h3>CSS Frame Constructor</h3>
|
|
|
|
The Frame Constructor is responsible for resolving style values for content
|
|
|
|
elements and creating the appropriate frames corresponding to that element.
|
|
|
|
In addition to managing the creation of frames, the Frame Constructor is
|
|
|
|
responsible for managing changes to the frames. Frame Construction is generally
|
|
|
|
achieved by the use of stateless methods, but in some cases there is the
|
2002-11-16 13:46:53 +03:00
|
|
|
need to provide context to frames created as children of a container. The
|
2002-05-23 01:07:29 +04:00
|
|
|
Frame Manager uses the Frame Constructor State class to manage the important
|
|
|
|
information about the container of a frame being created (<font
|
|
|
|
color="#990000">and lots of other state-stuff too - need to describe more
|
|
|
|
fully</font>).<br>
|
|
|
|
<h3>Frame</h3>
|
|
|
|
The Frame is the most fundamental layout object. The class nsFrame is the
|
2002-11-16 13:46:53 +03:00
|
|
|
base class for all frames, and it inherits from the base class nsIFrame (note:
|
2002-05-23 01:07:29 +04:00
|
|
|
nsIFrame is NOT an interface, it is an abstract base class. It was once an
|
|
|
|
interface but was changed to be a base class when the Style System was modified
|
|
|
|
- the name was not changed to reflect that it is not an interface). The Frame
|
|
|
|
provides generic functionality that can be used by subclasses but cannot
|
|
|
|
itself be instantiated.<br>
|
|
|
|
<br>
|
|
|
|
nsFrame:<br>
|
|
|
|
The Frame provides a mechanism to navigate to a parent frame as well as child
|
|
|
|
frames. All frames have a parent except for the root frame. The Frame is
|
|
|
|
able to provide a reference to its parent and to its children upon request.
|
|
|
|
The basic data that all frames maintain include: a rectangle describing the
|
2002-11-16 13:46:53 +03:00
|
|
|
dimensions of the frame, a pointer to the content that the frame is representing,
|
2002-05-23 01:07:29 +04:00
|
|
|
the style context representing all of the stylistic data corresponding to
|
|
|
|
the frame, a parent frame pointer, a sibling frame pointer, and a series
|
|
|
|
of state bits.<br>
|
|
|
|
<br>
|
|
|
|
Frames are chained primarily by the sibling links. Given a frame, one can
|
|
|
|
walk the sibling of that frame, and can also navigate back up to the parent
|
|
|
|
frame. Specializations of the frame also allow for the management of child
|
|
|
|
frames; this functionality is provided by the Container Frame.<br>
|
|
|
|
<br>
|
|
|
|
Container Frames:<br>
|
2002-11-16 13:46:53 +03:00
|
|
|
The Container Frame is a specialization of the base frame class that introduces
|
2002-05-23 01:07:29 +04:00
|
|
|
the ability to manage a list of child frames. All frames that need to manage
|
2002-11-16 13:46:53 +03:00
|
|
|
child frames (e.g. frames that are not themselves leaf frames) derive from
|
2002-05-23 01:07:29 +04:00
|
|
|
Container Frame.<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<h3>Block Frame<br>
|
|
|
|
</h3>
|
|
|
|
<h3>Reflow State</h3>
|
|
|
|
<h3>Reflow Metrics<br>
|
|
|
|
</h3>
|
|
|
|
<h3>Space Manager<br>
|
|
|
|
</h3>
|
|
|
|
<h3>StyleSet</h3>
|
|
|
|
<h3>StyleContext</h3>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<hr width="100%" size="2"><br>
|
|
|
|
<b>Document History:<br>
|
|
|
|
</b>
|
|
|
|
<ul>
|
2002-11-16 13:46:53 +03:00
|
|
|
<li>05/20/2002 - Marc Attinasi: created, wrote highest level introduction
|
2002-05-23 01:07:29 +04:00
|
|
|
to general layout concepts, links to relevant specs and existing documents.<br>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</body>
|
|
|
|
</html>
|