1 Oct 2014

Webkitss css rendering appendix code and gpu process part 3

WebCore Rendering I – The Basics

Posted by Dave Hyatt on Wednesday, August 8th, 2007 at 5:34 pm
This is the first of a series of posts designed to help people interested in hacking on WebCore’s rendering system. I’ll be posting these articles as I finish them on this blog, and they will also be available in the documentation section of the Web site.

The DOM Tree

A Web page is parsed into a tree of nodes called the Document Object Model (DOM for short). The base class for all nodes in the tree is Node.
Nodes break down into several categories. The node types that are relevant to the rendering code are:
·         Document – The root of the tree is always the document. There are three document classes, Document, HTMLDocument and SVGDocument. The first is used for all XML documents other than SVG documents. The second applies only to HTML documents and inherits from Document.
The third applies to SVG documents and also inherits from
·         Elements – All of the tags that occur in HTML or XML source turn into elements. From a rendering perspective, an element is a node with a tag name that can be used to cast to a specific subclass that can be queried for data that the renderer needs.
·         Text Raw text that occurs in between elements gets turned into text nodes. Text nodes store this raw text, and the render tree can query the node for its character data.

1 comment:

  1. Before you make your ultimate decision in choosing your law firm
    make sure that besides the basics of law that you are selecting one that specializes in real estate and
    can assist you fully in buying or selling your home.
    There are many different ways that property in divorce can be divided.
    This is how the IP rights are protected by applicable state and federal law.

    Here is my homepage ... Metro Detroit Legal Issues