首页> 外国专利> METHOD AND SYSTEM FOR THE CASCADING STYLE SHEET RULE MATCH BY USING TWO KEY SELECTORS INDEXING FOR THE RULES WITH DESCENDANT SELECTORS

METHOD AND SYSTEM FOR THE CASCADING STYLE SHEET RULE MATCH BY USING TWO KEY SELECTORS INDEXING FOR THE RULES WITH DESCENDANT SELECTORS

机译:通过使用两个键选择器索引来选择具有后继选择器规则的级联样式表规则的方法和系统

摘要

A method for CSS rule match by using two selector key indexing for the rules with descendant selectors is disclosed. The method first parses various style sheets related to structured document and for each rule the rule information is stored with rightmost selector and its immediate ancestor selectors from left to right as two key�s indexes into hash table. Then the method constructs an internal document tree (DOM) representing all the elements to be displayed and creates an element pair list of the current and all its ancestor elements by traversing until root from the DOM tree. For each element in the DOM tree the CSS rule match queries the hash table to retrieve the associated style rules and then the CSS rule match searches through these styles rules to find a match or discard the rule. This reduces number of document traversal�s which improves the rendering performance. FIG. 2
机译:公开了一种用于CSS规则匹配的方法,该方法通过对具有后代选择器的规则使用两个选择器索引来进行索引。该方法首先解析与结构化文档相关的各种样式表,并且对于每个规则,规则信息使用最右边的选择器及其直接祖先选择器从左到右存储,作为哈希表中的两个关键索引。然后,该方法构造一个表示要显示的所有元素的内部文档树(DOM),并通过遍历DOM树的根来创建当前及其所有祖先元素的元素对列表。对于DOM树中的每个元素,CSS规则匹配查询哈希表以检索关联的样式规则,然后CSS规则匹配在这些样式规则中进行搜索以找到匹配项或放弃该规则。这样可以减少遍历文档的次数,从而提高渲染性能。图。 2

著录项

  • 公开/公告号IN2012CH02091A

    专利类型

  • 公开/公告日2016-04-01

    原文格式PDF

  • 申请/专利权人

    申请/专利号IN2091/CHE/2012

  • 发明设计人 NAVEEN KUMAR BUDDA;RAJASEKHARA MURAKONDA;

    申请日2012-05-25

  • 分类号

  • 国家 IN

  • 入库时间 2022-08-21 14:25:49

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号