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

Webpage element drawing method and device

A webpage element and element type technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of high kernel overhead of mobile browsers, achieve the effect of reducing kernel overhead and improving kernel performance

Active Publication Date: 2015-06-24
深圳市雅阅科技有限公司
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method for drawing webpage elements, so as to solve the problem that the mobile phone browser kernel has a large overhead when drawing webpage elements that do not define CSS

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
  • Webpage element drawing method and device
  • Webpage element drawing method and device
  • Webpage element drawing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] In the embodiment of the present invention, for a web page element whose CSS is not defined by the web page, the browser directly draws a matching appearance style for the web page element by calling the rendering interface of its kernel, thereby avoiding Frequent and repeated CSS parsing occurs, which effectively reduces the browser's kernel overhead and improves the browser's kernel performance.

[0024] In the embodiment of the present invention, the browser includes but is not limited to a browser running on a computer and a browser running on a mobile terminal, and the kernel used by th...

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 is applicable to the technical field of browsers and provides a webpage element drawing method and device. The webpage element drawing method includes steps of judging whether or not to add appearance patterns to currently analyzed webpage elements; extracting the appearance patterns matched with the types of the webpage elements from a local database when in need of adding the appearance patterns to the currently analyzed webpage elements; extracting the appearance patterns to the currently analyzed webpage elements by rendering interfaces of browser cores. In the present invention, for undefined webpage elements of CSS by the webpages, the browsers directly draw the appearance patterns matched with the webpage elements by calling the rendering interfaces of the cores, so that frequent and repeated analysis of CSS during the webpage rendering process is avoided, core expense of the browsers is effectively reduced, and core performance of the browsers is improved.

Description

technical field [0001] The invention belongs to the technical field of browsers, in particular to a method and device for drawing web page elements. Background technique [0002] At present, mobile browsers use the cascading style sheet (Cascading Style Sheet, CSS) defined by the webpage to complete the drawing of webpage elements. For webpage elements that do not define CSS, mobile browsers usually match a CSS for the webpage element. to complete the drawing of the webpage element. [0003] However, the above method increases the parsing process of the webpage by the mobile browser: when the mobile browser parses a webpage element that does not define CSS, it needs to match a CSS for the webpage element, and then perform CSS parsing on the webpage element again. In the future, once the number of webpage elements without CSS defined in the webpage is large, the mobile browser needs to repeat the above process to parse too much CSS, thereby increasing the kernel overhead of ...

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
IPC IPC(8): G06F17/30
Inventor 方敏
Owner 深圳市雅阅科技有限公司
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