Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Style list processing system and method

A processing system and processing method technology, applied in the field of style sheet processing systems, can solve the problems of high memory usage and CPU usage, and achieve the effects of reducing memory usage, improving user experience, and reducing memory usage

Active Publication Date: 2008-05-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a style sheet processing system and method for the problem of high memory and CPU usage when parsing the above style sheet

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Style list processing system and method
  • Style list processing system and method

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0040] Example 1: select, input {

[0041] vertical-align: middle;

[0042] padding: 0;

[0043] margin: 0;

[0044]}

[0045] Among them, Select and input are the name of the style host; the content between "{" and "}" is the style block; each line in the style block is a style rule. A style rule is represented by two character strings, the attribute description name (name) and the value (value), where the character ":" is the attribute description name, and the latter is the value. A style block is equivalent to a list of style rules, and is used to store one or more style rules. The style host name list is a simple list used to store the corresponding style host names. Style document is a document tool for unified management of all style blocks and the list of corresponding style host names.

[0046] Secondly, the style document creating unit 11 completes the parsing of the style sheet through a state machine to generate the style document. The state machine sets the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a processing system of style sheet, comprising a creating element of style document, a creating element of style attribute type and a depositing element. The creating element of style document is used for obtaining the parasitifer name list of the style and the style block from the source code document of web page and then creating the style document, wherein, the style document comprises the corresponding relationship of the parasitifer name list of the style and the style block, the style block comprises one or more style rules described by texts and each style rule comprises the described name and the value of the attribute. The creating element of style attribute type is used for converting the style rules described by texts of the style text into the style rules described by values and then creating the style attribute type which comprises the style rules described by values. The depositing element is used for depositing the style attribute type to the corresponding node elements of the HTML tree. The invention also discloses a corresponding method. The invention is suitable for equipment with scarce system resources, such as mobile phone, and can reduce the occupation of the system resources, therefore can improve the user experience greatly.

Description

technical field [0001] The present invention relates to the field of web browsers, and more specifically, to a style sheet processing system and method. Background technique [0002] A style sheet (Cascading Style Sheet, CSS) is a part of HTML, and as an extension to display effects of HTML elements (or logos), it has extremely powerful functions. By using style sheets, you can completely abandon the attributes of HTML elements, and you can achieve exquisite web page layout and layout. [0003] Style sheets can make the work of web page creators easier. For example, when each horizontal line statement needs to use <hr width="75%" size=5 align="center">, using a style sheet only needs to be in the HTML file Specify once in the page style, and the page style can be applied to the entire website. And when the above needs to be changed, it is only necessary to change the parameters in one place, without changing the HTML in all web pages. Not only that, when a file cont...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 纪宇赵斗斗
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products