浏览器功能
展示各种应用的资源(HTML、XML、CSS、JS、JSON、PDF 等),资源的位置在URI(Uniform Resource Indentifier)中。
浏览器组成
一、 User Interface
除了主窗口显示请求的页面,其他任何显示部分都是User Inteface。比如地址栏、前进/后退、书签、刷新、主页等
二、Browser engine
marshals actions between the UI and the rendering engine.
在UI与rendering engine间传递命令
marshal英文意思:If you marshal people or things, you gather them together and arrange them for a particular purpose. 召集; 安排
三、Rendering Engine
主流程main flow
- Process HTML markup and bulid the DOM tree
- Process CSS markup and bulid the CSSOM tree
- Combine the DOM and CSSOM into a render tree
- Run layout on the render tree to compute geometry of each node
- Paint the individual nodes to the screen
主流浏览器Chrome(Wekit)、FireFox(Gecko)的流程图
1.render tree
树中每个圆圈都是Node(比如Image、Text block、Button、Ordered List、Horizontal reference)
DOM树构建参考:https://blog.csdn.net/jiangshangchunjiezi/article/d