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 [Frame](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/Frame.h
) | 16 [Frame](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/Frame.h
) |
17 interface where the main implementation is | 17 interface where the main implementation is |
18 [LocalFrame](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/Lo
calFrame.h). | 18 [LocalFrame](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/Lo
calFrame.h). |
19 | 19 |
20 ### [Window object](https://html.spec.whatwg.org/#window) | 20 ### [Window object](https://html.spec.whatwg.org/#window) |
21 | 21 |
22 A Window object corresponds to the | 22 A Window object corresponds to the |
23 [DOMWindow](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/DOM
Window.h) | 23 [DOMWindow](https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/DOM
Window.h) |
24 interface where the main implementation is | 24 interface where the main implementation is |
25 [LocalDOMWindow](https://cs.chromium.org/src/third_party/WebKit/Source/core/fram
e/LocalDOMWindow.h). | 25 [LocalDOMWindow](https://cs.chromium.org/src/third_party/WebKit/Source/core/fram
e/LocalDOMWindow.h). |
26 | 26 |
27 ### [WindowProxy](https://html.spec.whatwg.org/#windowproxy) | 27 ### [WindowProxy](https://html.spec.whatwg.org/#windowproxy) |
28 | 28 |
29 The WindowProxy is part of the bindings implemented by a class of the [same | 29 The WindowProxy is part of the bindings implemented by a class of the [same |
30 name](https://cs.chromium.org/Source/bindings/core/v8/WindowProxy.h). | 30 name](https://cs.chromium.org/Source/bindings/core/v8/WindowProxy.h). |
| 31 |
| 32 ### [canvas](https://html.spec.whatwg.org/multipage/scripting.html#the-canvas-el
ement) |
| 33 |
| 34 An HTML element into which drawing can be performed imperatively via |
| 35 JavaScript. Multiple |
| 36 [context types](https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas
-getcontext) |
| 37 are supported for different use cases. |
| 38 |
| 39 The main element's sources are in |
| 40 [HTMLCanvasElement](https://cs.chromium.org/chromium/src/third_party/WebKit/Sour
ce/core/html/HTMLCanvasElement.h). Contexts |
| 41 are implemented via modules. The top-level module is |
| 42 [HTMLCanvasElementModule](https://cs.chromium.org/chromium/src/third_party/WebKi
t/Source/modules/canvas/HTMLCanvasElementModule.h). |
| 43 |
| 44 The |
| 45 [2D canvas context](https://html.spec.whatwg.org/multipage/scripting.html#canvas
renderingcontext2d) |
| 46 is implemented in |
| 47 [modules/canvas2d](https://cs.chromium.org/chromium/src/third_party/WebKit/Sourc
e/modules/canvas2d/). |
| 48 |
| 49 The |
| 50 [WebGL 1.0](https://www.khronos.org/registry/webgl/specs/latest/1.0/) |
| 51 and |
| 52 [WebGL 2.0](https://www.khronos.org/registry/webgl/specs/latest/2.0/) |
| 53 contexts ([Github repo](https://github.com/KhronosGroup/WebGL)) are |
| 54 implemented in [modules/webgl](https://cs.chromium.org/chromium/src/third_party/
WebKit/Source/modules/webgl/). |
OLD | NEW |