作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (9): 44-46,50. doi: 10.3969/j.issn.1000-3428.2011.09.015

所属专题: “核高基”专题

• “核高基”专题 • 上一篇    下一篇

嵌入式浏览器CSS引擎的研究与改进

刘 剑,桑 楠,郭文生   

  1. (电子科技大学计算机科学与工程学院,成都 611731)
  • 出版日期:2011-05-05 发布日期:2011-05-12
  • 作者简介:刘 剑(1985-),男,硕士研究生,主研方向:嵌入式浏览器,Linux操作系统;桑 楠,教授;郭文生,讲师
  • 基金资助:
    “核高基”重大专项(2009ZX01039-003-001-002)

Research and Improvement of CSS Engine in Embedded Browser

LIU Jian, SANG Nan, GUO Wen-sheng   

  1. (Institute of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China)
  • Online:2011-05-05 Published:2011-05-12

摘要: 层叠样式表(CSS)引擎的效率提升是嵌入式浏览器的性能瓶颈。为此,提出提升CSS引擎效率样式管理的改进和设计方法。该方法增加对用户操作相关伪类样式规则的分类,以减少对非必要的伪类样式规则匹配,匹配完全失效节点的记忆能够为兄弟节点提供样式规则匹配的指示,并减少样式规则匹配次数。实验结果表明,对于不同网页的样式规则匹配总时间消耗减少3%~15%左右。

关键词: 层叠样式表引擎, 样式规则, 样式管理, 伪类样式, 样式匹配

Abstract: The efficiency of Cascading Style Sheet(CSS) engine is the bottleneck of embedded browser, this paper puts forward two methods of style management improvement and design for efficiency promotion of CSS engine. Adding classification of user operation related pseudo-class style rules, it can reduce unnecessary match of pseudo-class style rules; The memory of node for matching absolutely can provide brother nodes with instruction of suiting for the style rule, and reduce the times of style match. Experimental result shows that the total time consumption of style rules match reduces 3% ~15% or so for different Web page.

Key words: Cascading Style Sheet(CSS) engine, style rules, style management, pseudo-class style, style match

中图分类号: