What do web browsers use for rendering?

very fast, I was always wondering if Internet browsers use the OS API functions to create buttons, render magicians, etc., or do they do it all on their own?

At first I want him to use the api system, but there are some effects, for example, when the screen fades to gray and you see only a small window in the middle, you know, this effect is used in many photo albums on the Internet, and I don’t know how to achieve use, for example, only Win32 calls.

EDIT: More precisely, I know that the final image on the screen will always use the system API, but you can send the preview image as you want. Thanks.

+6
browser
source share
2 answers

Web browsers use their own rendering mechanisms, not the OS API. Using the OS API to render buttons completely depends on the design decision of a particular rendering engine. However, to run on a variety of operating systems, these engines prefer their own rendering to offer the same viewing experience across platforms.

  • Gecko , for Firefox
  • Trident , for Internet Explorer
  • Presto , for Opera
  • KHTML, for Konqueror
  • WebKit for Apple Safari and Google Chrome web browsers.

Link: http://en.wikipedia.org/wiki/Web_browser_engine

+5
source share

Do OsOs browser rendering mechanisms use buttons to create buttons, enter text, create boxes, etc., or do they all do it by themselves, using the OS API only to actually display the displayed image on the screen?

I implemented something from the browser rendering engine (see, for example, the Table of Supported Elements and the “Supported Properties” for a list of HTML elements and CSS properties that it supports).

I use the system APIs (.NET Framework APIs, which are thin shells around the underlying O / S GDI APIs):

  • Measuring words (lines of text)
  • Color words
  • Drawing lines and boxes
  • Fill the rectangles with solid color.

These are the API functions that are implemented by Windows GDI.

There are also some APIs (O / S or .NET) that I use to draw buttons and combo fields (see Rewrite standard controls, such as editing, combos, etc. ).

Becouse, all rendering of text, graphics, and so it seems quite difficult to completely write to yourself.

Yes, CSS implementation and all this takes some time. You saw how much time it took the developers of the browser commands: several calendar years, many man-years.

+1
source share

All Articles