OLD | NEW |
---|---|
1 # Mapping of spec concepts to code | 1 # Mapping of spec concepts to code |
2 | 2 |
3 Blink is Chromium's implementation of the open web platform. This document | 3 Blink is Chromium's implementation of the open web platform. This document |
4 attempts to map terms and concepts found in the specification of the open web | 4 attempts to map terms and concepts found in the specification of the open web |
5 platfrom to classes and files found in Blink's source tree. | 5 platform to classes and files found in Blink's source tree. |
6 | 6 |
7 [TOC] | 7 [TOC] |
8 | 8 |
9 ## HTML | 9 ## HTML |
10 | 10 |
11 Concepts found in the [HTML spec](https://html.spec.whatwg.org/). | 11 Concepts found in the [HTML spec](https://html.spec.whatwg.org/). |
12 | 12 |
13 ### [browsing context](https://html.spec.whatwg.org/#browsing-context) | 13 ### [browsing context](https://html.spec.whatwg.org/#browsing-context) |
14 | 14 |
15 A browsing context corresponds to the | 15 A browsing context corresponds to the |
16 [DOMWindow](https://cs.chromium.org/Source/core/frame/DOMWindow.h) interface | 16 [DOMWindow](https://cs.chromium.org/Source/core/frame/DOMWindow.h) interface |
17 where the main implementation is | 17 where the main implementation is |
18 [LocalDOMWindow](https://cs.chromium.org/Source/core/frame/LocalDOMWindow.h). | 18 [LocalDOMWindow](https://cs.chromium.org/Source/core/frame/LocalDOMWindow.h). |
19 | |
20 ### [canvas](https://html.spec.whatwg.org/multipage/scripting.html#the-canvas-el ement) | |
21 | |
22 An HTML element into which drawing can be performed imperatively via | |
23 JavaScript. Multiple | |
24 [context types](https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas -getcontext) | |
25 are supported for different use cases. | |
26 | |
27 The main element's sources are in | |
28 [HTMLCanvasElement](https://cs.chromium.org/chromium/src/third_party/WebKit/Sour ce/core/html/HTMLCanvasElement.h). Contexts | |
29 are implemented via modules. The top-level module is | |
30 [HTMLCanvasElementModule](https://cs.chromium.org/chromium/src/third_party/WebKi t/Source/modules/canvas/HTMLCanvasElementModule.h). | |
31 | |
32 The | |
33 [2D canvas context](https://html.spec.whatwg.org/multipage/scripting.html#canvas renderingcontext2d) | |
34 is implemented in | |
35 [modules/canvas2d](https://cs.chromium.org/chromium/src/third_party/WebKit/Sourc e/modules/canvas2d/). | |
Justin Novosad
2016/09/22 20:40:45
There is also the bitmap renderer context that liv
| |
36 | |
37 The | |
38 [WebGL 1.0](https://www.khronos.org/registry/webgl/specs/latest/1.0/) | |
39 and | |
40 [WebGL 2.0](https://www.khronos.org/registry/webgl/specs/latest/2.0/) | |
41 contexts ([Github repo](https://github.com/KhronosGroup/WebGL)) are | |
42 implemented in [modules/webgl](https://cs.chromium.org/chromium/src/third_party/ WebKit/Source/modules/webgl/). | |
OLD | NEW |