Get Started. It's Free
or sign up with your email address
Browser inside by Mind Map: Browser inside

1. 3. Render tree construction

1.1. Webkit

1.1.1. RenderObject createObject()

1.2. Create accordance of DOM element tree and CSS tree

1.2.1. Use tree rule

1.3. CSS cascade order

1.3.1. Browser declarations User normal declarations Author normal declarations Author important declarations User important declarations

2. Main thread is event loop

2.1. while (!mExiting) NS_ProcessNextEvent(thread);

3. 1. Rendering engine

3.1. Gecko

3.1.1. Firefox

3.2. Webkit

3.2.1. Chrome

3.2.2. Safari

3.3. Render process

3.3.1. Parse HTML to construct DOM tree

3.3.2. Render tree construction Inline style and external CSS informatio Contains rectangles with visual attr: color, dimensions etc

3.3.3. Tree layout Calculating coordinates for elements using render tree info

3.3.4. Painting the render tree

3.3.5. Flow examples Basic

3.3.6. Terms Gecko Frame tree Webkit Render tree

4. 2. Parsing

4.1. Parsing syntax

4.1.1. Syntax parsing trees

4.1.2. Algorithm Lexer (correct lexems of lang) Create syntax tree Translate to machine code

4.1.3. Calculation of trees is based on stacks

4.2. HTML

4.2.1. DTD

4.2.2. DOM

4.2.3. Parse using < and > as stop symbols

4.2.4. Are tags and vals correct Using regexps

4.3. CSS

4.3.1. Creates tree of accordance of selector elements and values

4.3.2. Gecko blocks script execution while CSS is being loaded

4.3.3. Webkit blocks scriptexecution only if needed CSS fragment is being downloaded

4.4. Scripts

4.4.1. The parsing of the document halts until the script was executed.

4.4.2. If the script is external then the resource must be first fetched from the network - this is also done synchronously, the parsing halts until the resource is fetched.

4.4.3. HTML5 mark script as asynchronous

4.4.4. Webkit and Gecko scan the document while running the script and find other resoucres which need data load