Gecko (layout engine)
From Wikipedia, the free encyclopedia
| Gecko | |
|---|---|
Epiphany using Gecko to render the Wikipedia main page |
|
| Developer | Mozilla Foundation / Mozilla Corporation |
| Latest release | 1.8.1.11 / November 30, 2007 |
| Preview release | 1.9 beta 2 / December 18, 2007 |
| OS | Cross-platform |
| Genre | Layout engine |
| License | Mozilla tri-license |
| Website | http://www.mozilla.org/newlayout/ |
Gecko is the open source, free software web browser layout engine used in all Mozilla-branded software and its derivatives, including later Netscape releases. Written in C++ and licensed under MPL/GPL/LGPL tri-license, Gecko is designed to support open Internet standards. Originally created by Netscape Communications Corporation, its development is now overseen by the Mozilla Foundation.
Gecko offers a rich programming API that makes it suitable for a wide variety of roles in Internet-enabled applications, such as web browsers, content presentation, and client/server[1]. Primarily it is used by Mozilla browser derivatives, such as Firefox, Camino, Flock, SeaMonkey, K-Meleon, and Netscape, to render websites and, in some cases, the application user interface written in XUL. Gecko is cross-platform and works on a number of different operating systems, including Microsoft Windows, BSDs, Linux, and Mac OS X.
Gecko is the second most-popular layout engine on the Web, after Trident (used by Internet Explorer for Windows since version 4), and followed by WebCore (used by Safari) and Presto (used by Opera).
Contents |
From the outset, Gecko was designed to support open Internet standards. Some of the standards Gecko supports include:
- HTML 4.0
- CSS Level 1 (partial support for CSS 2 and 3, see Mozilla CSS support chart for details)
- JavaScript 1.7 (ECMAScript)
- DOM Level 1 and 2 (partial support for DOM 3)
- XML 1.0
- XHTML 1.1
- MathML
- XForms (via an official extension)
- SVG (Partial SVG 1.1 support)
- RDF
- ^ The SVG font, color profile, animation, view, and cursor modules are yet to be implemented and the filter and text modules are only partially implemented. The extensibility module is also implemented but is currently disabled[2]
In order to support web pages designed for legacy versions of Netscape and Internet Explorer, Gecko supports DOCTYPE switching. Documents with a modern DOCTYPE are rendered in standards compliance mode, which follows the W3C standards strictly. Documents that have no DOCTYPE or an older DOCTYPE are rendered in quirks mode, which emulates some of the non-standard oddities of Netscape Communicator 4.x, however, some of the 4.x features (such as layers) are not supported.
Gecko also has limited support for some non-standard Internet Explorer features, such as the
Development of the layout engine now known as Gecko began at Netscape in 1997, following the company's purchase of DigitalStyle. The existing Netscape rendering engine, originally written for Netscape Navigator 1.0 and upgraded through the years, was widely considered to be inferior to the one used in Microsoft Internet Explorer. It was slow, did not comply well with W3C standards, had limited support for dynamic HTML and lacked features such as incremental reflow (when the layout engine rearranges elements on the screen as new data is downloaded and added to the page). The new layout engine was developed in parallel with the old, with the intention being to integrate it into Netscape Communicator when it was mature and stable. At least one more major revision of Netscape was expected to be released with the old layout engine before the switch.
After the launch of the Mozilla project in early 1998, the new layout engine code was released under an open-source license. Originally unveiled as Raptor, the name had to be changed to NGLayout (next generation layout) due to trademark problems. Netscape later rebranded NGLayout as Gecko. While Mozilla Organization (the forerunner of the Mozilla Foundation) initially continued to use the NGLayout name (Gecko was a Netscape trademark)[3], eventually the Gecko branding won out. For a time, Gecko was used to refer to both the old NGLayout layout engine and XPFE (cross-platform front-end)—the new XML-based Mozilla user interface, rendered by NGLayout—but it is now used solely to refer to the layout engine.
In October 1998, Netscape announced that its next browser would use Gecko (which was still called NGLayout at the time) rather than the old layout engine, requiring large parts of the application to be rewritten. While this decision was popular with web standards advocates, it was largely unpopular with Netscape developers, who were unhappy with the six months given for the rewrite[4]. It also meant that most of the work done for Netscape Communicator 5.0 (including development on the Mariner improvements to the old layout engine) had to be abandoned. Netscape 6, the first Netscape release to incorporate Gecko, was released in November 2000 (the name Netscape 5 was never used).
As Gecko development continued, other applications and embedders began to make use of it. America Online, by this time Netscape's parent company, eventually adopted it for use in CompuServe 7.0 and AOL for Mac OS X (these products had previously embedded Internet Explorer). However, with the exception of a few betas, Gecko was never used in the main Microsoft Windows AOL client.
On July 15, 2003, AOL laid off the remaining Gecko developers and the Mozilla Foundation (formed on the same day) became the main steward of Gecko development. Today, Gecko is developed by employees of the Mozilla Corporation, employees of companies that contribute to the Mozilla project, and volunteers.
| This article or section contains information about scheduled or expected future events. It may contain tentative information; the content may change as the event approaches and more information becomes available. |
Some information on the work being done for the next version of Gecko is available in the Gecko 1.9 roadmap.[5]
One of the main initiatives in 1.9 is an overhaul of the graphics infrastructure.[6][7] Instead of using the platforms' API, cairo will be used for all graphics outputs. This is expected to result in improved 2D graphics capabilities and, via glitz, acceleration using 3D graphics hardware. It also results in a single rendering pipeline for HTML and CSS, canvas and SVG, so that SVG effects can be applied to HTML content. Using cairo, it will also be possible to output the graphics to formats such as PNG and PDF, allowing users to export Web content in these formats.
Another major change in Gecko 1.9 is refactoring of reflow code [8], which fixed many layout bugs, in particular some of the bugs leading to incorrect rendering of the Acid2 standards-compliance test.
- List of layout engines
- Comparison of layout engines
- Comparison of layout engines (HTML)
- Comparison of layout engines (XML)
- Comparison of layout engines (XHTML)
- Comparison of layout engines (graphics)
- Comparison of layout engines (CSS)
- Comparison of layout engines (DOM)
- Comparison of layout engines (HTML5)
- Comparison of layout engines (ECMAScript)
- Comparison of layout engines (SVG)
- ^ Embedding Mozilla
- ^ Mozilla SVG Status
- ^ nglayout project: identity crisis
- ^ Ars Technica interviews Scott Collins
- ^ DRAFT Gecko 1.9 Roadmap
- ^ Mozilla2:GraphicsPlan
- ^ Glimpse Of The Future
- ^ Gecko:Reflow Refactoring
- Mozilla Layout Engine
- Gecko development wiki (wiki.mozilla.org)
- Mozilla Product Strategy Proposal (DRAFT)
- Web Browser Standards Support
- JRex (Java API for Gecko)
|
|
|
|---|---|
| Browser related projects | Camino · Firefox · Minimo · SeaMonkey |
| Other projects | Bugzilla · ChatZilla · Lightning · Penelope · Sunbird · Thunderbird |
| Obsolete projects | Mozilla Suite · Calendar Project |
| Infrastructure | Gecko · Necko · XBL · XPCOM · XPConnect · XPInstall · XUL · XULRunner |
| Components | Composer · NSPR · Rhino · SpiderMonkey · Tamarin · Venkman |
|
|
|
|---|---|
| Browsing software | Netscape Navigator · Netscape Communicator · Netscape 6 · Netscape 7 · Netscape Browser · Netscape Navigator 9 |
| E-mail clients | Netscape Messenger 9 · Netscape Mail & Newsgroups |
| Other components | Netscape Composer |
| Server software | Netscape Enterprise Server · Netscape Application Server · Netscape Server Application Programming Interface |
| Web services | Netscape.com · Propeller · Open Directory Project · Netscape ISP |
| See also | Gecko · Mariner · Netscape 5 · Netscape Public License · Mozilla · AOL |
|
|
|
|---|---|
| List of layout engines | Trident · Presto · Gecko · Tasman · WebCore · KHTML · iCab · Prince · GtkHTML · Gzilla · Boxely · Tkhtml · Robin |
| Comparison of layout engines | HTML · XML · XHTML · Graphics · CSS · DOM · HTML 5 · ECMAScript · SVG |