Commit 6943cf79 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Replace third_party/WebKit with third_party/blink in *.md

Also, apply snake_case to file basenames.

TBR=jam@chromium.org

Bug: 768828
Change-Id: I28bead32daf1adbf15033b778c633b034a743562
Reviewed-on: https://chromium-review.googlesource.com/1001436Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549110}
parent 206e196f
...@@ -157,5 +157,5 @@ base. [Smooth Scrolling in Chromium](https://goo.gl/XXwAwk) provides ...@@ -157,5 +157,5 @@ base. [Smooth Scrolling in Chromium](https://goo.gl/XXwAwk) provides
an overview of smooth scrolling. There is further class header an overview of smooth scrolling. There is further class header
documentation in documentation in
Blink's Blink's
[platform/scroll](https://codesearch.chromium.org/chromium/src/third_party/WebKit/Source/platform/scroll/) [platform/scroll](https://codesearch.chromium.org/chromium/src/third_party/blink/renderer/platform/scroll/)
directory. directory.
...@@ -7,7 +7,7 @@ This service is exposed to the web in the [blink bluetooth module]. ...@@ -7,7 +7,7 @@ This service is exposed to the web in the [blink bluetooth module].
[Web Bluetooth specification]: https://webbluetoothcg.github.io/web-bluetooth/ [Web Bluetooth specification]: https://webbluetoothcg.github.io/web-bluetooth/
[/device/bluetooth]: /device/bluetooth [/device/bluetooth]: /device/bluetooth
[blink bluetooth module]: /third_party/WebKit/Source/modules/bluetooth/ [blink bluetooth module]: /third_party/blink/renderer/modules/bluetooth/
## Testing ## Testing
......
...@@ -130,11 +130,11 @@ Pointers to related code outside of `//content/browser/download`: ...@@ -130,11 +130,11 @@ Pointers to related code outside of `//content/browser/download`:
* `//content/renderer/savable_resources...` * `//content/renderer/savable_resources...`
* Blink: * Blink:
* `//third_party/WebKit/public/web/WebFrameSerializer...` * `//third_party/blink/public/web/web_frame_serializer...`
* `//third_party/WebKit/Source/web/WebFrameSerializerImpl...` * `//third_party/blink/renderere/core/frame/web_frame_serializer_impl...`
(used for Complete HTML today; should use `FrameSerializer` instead in (used for Complete HTML today; should use `FrameSerializer` instead in
the long-term - see https://crbug.com/328354). the long-term - see https://crbug.com/328354).
* `//third_party/WebKit/Source/core/frame/FrameSerializer...` * `//third_party/blink/renderer/core/frame/frame_serializer...`
(used for MHTML today) (used for MHTML today)
* `//third_party/WebKit/Source/platform/mhtml/MHTMLArchive...` * `//third_party/blink/renderer/platform/mhtml/mhtml_archive...`
...@@ -6,7 +6,7 @@ the Bluetooth component. ...@@ -6,7 +6,7 @@ the Bluetooth component.
There are also notable higher level bluetooth tests: There are also notable higher level bluetooth tests:
* [Extensions](/extensions/browser/api/bluetooth/) * [Extensions](/extensions/browser/api/bluetooth/)
* [Web Bluetooth](/third_party/WebKit/Source/modules/bluetooth/README.md) * [Web Bluetooth](/third_party/blink/renderer/modules/bluetooth/README.md)
## Client Testing ## Client Testing
......
...@@ -510,23 +510,23 @@ is defined by [automation.idl], which must be kept synchronized with ...@@ -510,23 +510,23 @@ is defined by [automation.idl], which must be kept synchronized with
[AccessibilityHostMsg_EventParams]: https://cs.chromium.org/chromium/src/content/common/accessibility_messages.h?sq=package:chromium&l=75 [AccessibilityHostMsg_EventParams]: https://cs.chromium.org/chromium/src/content/common/accessibility_messages.h?sq=package:chromium&l=75
[AutomationInternalCustomBindings]: https://cs.chromium.org/chromium/src/chrome/renderer/extensions/automation_internal_custom_bindings.h [AutomationInternalCustomBindings]: https://cs.chromium.org/chromium/src/chrome/renderer/extensions/automation_internal_custom_bindings.h
[AXContentNodeData]: https://cs.chromium.org/chromium/src/content/common/ax_content_node_data.h [AXContentNodeData]: https://cs.chromium.org/chromium/src/content/common/ax_content_node_data.h
[AXLayoutObject]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h [AXLayoutObject]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/accessibility/ax_layout_object.h
[AXNodeObject]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXNodeObject.h [AXNodeObject]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/accessibility/ax_node_object.h
[AXObjectImpl]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h [AXObjectImpl]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/accessibility/ax_object_impl.h
[AXObjectCacheImpl]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h [AXObjectCacheImpl]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/accessibility/ax_object_cache_impl.h
[AXPlatformNode]: https://cs.chromium.org/chromium/src/ui/accessibility/platform/ax_platform_node.h [AXPlatformNode]: https://cs.chromium.org/chromium/src/ui/accessibility/platform/ax_platform_node.h
[AXTreeSerializer]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_tree_serializer.h [AXTreeSerializer]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_tree_serializer.h
[BlinkAXTreeSource]: https://cs.chromium.org/chromium/src/content/renderer/accessibility/blink_ax_tree_source.h [BlinkAXTreeSource]: https://cs.chromium.org/chromium/src/content/renderer/accessibility/blink_ax_tree_source.h
[BrowserAccessibility]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility.h [BrowserAccessibility]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility.h
[BrowserAccessibilityDelegate]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility_manager.h?sq=package:chromium&l=64 [BrowserAccessibilityDelegate]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility_manager.h?sq=package:chromium&l=64
[BrowserAccessibilityManager]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility_manager.h [BrowserAccessibilityManager]: https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility_manager.h
[LayoutObject]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutObject.h [LayoutObject]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/layout_object.h
[NativeViewAccessibility]: https://cs.chromium.org/chromium/src/ui/views/accessibility/native_view_accessibility.h [NativeViewAccessibility]: https://cs.chromium.org/chromium/src/ui/views/accessibility/native_view_accessibility.h
[Node]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/Node.h [Node]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/dom/Node.h
[RenderAccessibilityImpl]: https://cs.chromium.org/chromium/src/content/renderer/accessibility/render_accessibility_impl.h [RenderAccessibilityImpl]: https://cs.chromium.org/chromium/src/content/renderer/accessibility/render_accessibility_impl.h
[RenderFrameHostImpl]: https://cs.chromium.org/chromium/src/content/browser/frame_host/render_frame_host_impl.h [RenderFrameHostImpl]: https://cs.chromium.org/chromium/src/content/browser/frame_host/render_frame_host_impl.h
[ui::AXNodeData]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_node_data.h [ui::AXNodeData]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_node_data.h
[WebAXObject]: https://cs.chromium.org/chromium/src/third_party/WebKit/public/web/WebAXObject.h [WebAXObject]: https://cs.chromium.org/chromium/src/third_party/blink/public/web/web_ax_object.h
[automation API]: https://cs.chromium.org/chromium/src/chrome/renderer/resources/extensions/automation [automation API]: https://cs.chromium.org/chromium/src/chrome/renderer/resources/extensions/automation
[automation.idl]: https://cs.chromium.org/chromium/src/chrome/common/extensions/api/automation.idl [automation.idl]: https://cs.chromium.org/chromium/src/chrome/common/extensions/api/automation.idl
[ax_enums.idl]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_enums.idl [ax_enums.idl]: https://cs.chromium.org/chromium/src/ui/accessibility/ax_enums.idl
......
...@@ -79,8 +79,8 @@ display log messages to the `LogCat` pane. ...@@ -79,8 +79,8 @@ display log messages to the `LogCat` pane.
<classpathentry kind="src" path="remoting/android/java/src"/> <classpathentry kind="src" path="remoting/android/java/src"/>
<classpathentry kind="src" path="remoting/android/apk/src"/> <classpathentry kind="src" path="remoting/android/apk/src"/>
<classpathentry kind="src" path="remoting/android/javatests/src"/> <classpathentry kind="src" path="remoting/android/javatests/src"/>
<classpathentry kind="src" path="third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src"/> <classpathentry kind="src" path="third_party/blink/renderer/devtools/scripts/jsdoc-validator/src"/>
<classpathentry kind="src" path="third_party/WebKit/Source/devtools/scripts/compiler-runner/src"/> <classpathentry kind="src" path="third_party/blink/renderer/devtools/scripts/compiler-runner/src"/>
<classpathentry kind="src" path="third_party/webrtc/voice_engine/test/android/android_test/src"/> <classpathentry kind="src" path="third_party/webrtc/voice_engine/test/android/android_test/src"/>
<classpathentry kind="src" path="third_party/webrtc/modules/video_capture/android/java/src"/> <classpathentry kind="src" path="third_party/webrtc/modules/video_capture/android/java/src"/>
<classpathentry kind="src" path="third_party/webrtc/modules/video_render/android/java/src"/> <classpathentry kind="src" path="third_party/webrtc/modules/video_render/android/java/src"/>
......
...@@ -22,11 +22,11 @@ to see ...@@ -22,11 +22,11 @@ to see
[[1](https://chromium-review.googlesource.com/c/554510/8/content/common/service_worker/service_worker_utils.cc#153)] [[1](https://chromium-review.googlesource.com/c/554510/8/content/common/service_worker/service_worker_utils.cc#153)]
3. how to wire the base::Feature to WebRuntimeFeatures 3. how to wire the base::Feature to WebRuntimeFeatures
[[1](https://chromium-review.googlesource.com/c/554510/8/content/child/runtime_features.cc)] [[1](https://chromium-review.googlesource.com/c/554510/8/content/child/runtime_features.cc)]
[[2](https://chromium-review.googlesource.com/c/554510/8/third_party/WebKit/public/platform/WebRuntimeFeatures.h)] [[2](https://chromium-review.googlesource.com/c/554510/8/third_party/blink/public/platform/web_runtime_features.h)]
[[3](https://chromium-review.googlesource.com/c/554510/third_party/WebKit/Source/platform/exported/WebRuntimeFeatures.cpp)] [[3](https://chromium-review.googlesource.com/c/554510/third_party/blink/Source/platform/exported/web_runtime_features.cc)]
[[4](https://chromium-review.googlesource.com/c/554510/8/third_party/WebKit/Source/platform/runtime_enabled_features.json5)] [[4](https://chromium-review.googlesource.com/c/554510/8/third_party/blink/renderer/platform/runtime_enabled_features.json5)]
4. how to use it in blink 4. how to use it in blink
[[1](https://chromium-review.googlesource.com/c/554510/8/third_party/WebKit/Source/core/workers/WorkerThread.cpp)] [[1](https://chromium-review.googlesource.com/c/554510/8/third_party/blnk/renderere/core/workers/worker_thread.cc)]
Also, this patch added a virtual test for running layout tests with the flag. Also, this patch added a virtual test for running layout tests with the flag.
When you add a flag, you can consider to use that. When you add a flag, you can consider to use that.
......
...@@ -91,7 +91,7 @@ and it is discounted from malloc and the blue columns. ...@@ -91,7 +91,7 @@ and it is discounted from malloc and the blue columns.
<!-- TODO(primiano): Improve this. https://crbug.com/??? --> <!-- TODO(primiano): Improve this. https://crbug.com/??? -->
[oilpan]: /third_party/WebKit/Source/platform/heap/BlinkGCDesign.md [oilpan]: /third_party/blink/renderer/platform/heap/BlinkGCDesign.md
[discardable]:base/memory/discardable_memory.h [discardable]:base/memory/discardable_memory.h
[cc-memory]: probe-cc.md [cc-memory]: probe-cc.md
[gpu-memory]: probe-gpu.md [gpu-memory]: probe-gpu.md
......
...@@ -134,7 +134,7 @@ as tests for script-added tokens. For examples, refer to the existing tests in ...@@ -134,7 +134,7 @@ as tests for script-added tokens. For examples, refer to the existing tests in
[chrome_origin_trial_policy.cc]: /chrome/common/origin_trials/chrome_origin_trial_policy.cc [chrome_origin_trial_policy.cc]: /chrome/common/origin_trials/chrome_origin_trial_policy.cc
[generate_token.py]: /tools/origin_trials/generate_token.py [generate_token.py]: /tools/origin_trials/generate_token.py
[Developer Guide]: https://github.com/jpchase/OriginTrials/blob/gh-pages/developer-guide.md [Developer Guide]: https://github.com/jpchase/OriginTrials/blob/gh-pages/developer-guide.md
[OriginTrialEnabled]: /third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#_OriginTrialEnabled_i_m_a_c_ [OriginTrialEnabled]: /third_party/blink/renderer/bindings/IDLExtendedAttributes.md#_OriginTrialEnabled_i_m_a_c_
[origin_trials/webexposed]: /third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/ [origin_trials/webexposed]: /third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/
[runtime\_enabled\_features.json5]: /third_party/WebKit/Source/platform/runtime_enabled_features.json5 [runtime\_enabled\_features.json5]: /third_party/blink/renderer/platform/runtime_enabled_features.json5
[trial_token_unittest.cc]: /content/common/origin_trials/trial_token_unittest.cc [trial_token_unittest.cc]: /content/common/origin_trials/trial_token_unittest.cc
...@@ -21,7 +21,7 @@ Layout tests should be used to accomplish one of the following goals: ...@@ -21,7 +21,7 @@ Layout tests should be used to accomplish one of the following goals:
get better. This is very much in line with our goal to move the Web forward. get better. This is very much in line with our goal to move the Web forward.
2. When a Blink feature cannot be tested using the tools provided by WPT, and 2. When a Blink feature cannot be tested using the tools provided by WPT, and
cannot be easily covered by cannot be easily covered by
[C++ unit tests](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/web/tests/?q=webframetest&sq=package:chromium&type=cs), [C++ unit tests](https://cs.chromium.org/chromium/src/third_party/blink/renderer/web/tests/?q=webframetest&sq=package:chromium&type=cs),
the feature must be covered by layout tests, to avoid unexpected regressions. the feature must be covered by layout tests, to avoid unexpected regressions.
These tests will use Blink-specific testing APIs that are only available in These tests will use Blink-specific testing APIs that are only available in
[content_shell](./layout_tests_in_content_shell.md). [content_shell](./layout_tests_in_content_shell.md).
......
...@@ -67,7 +67,7 @@ wrapping and unwrapping helpers, common handle operations, and utilities for ...@@ -67,7 +67,7 @@ wrapping and unwrapping helpers, common handle operations, and utilities for
more easily watching handle state changes. more easily watching handle state changes.
### JavaScript ### JavaScript
The [**JavaScript System API**](/third_party/WebKit/Source/core/mojo) exposes The [**JavaScript System API**](/third_party/blink/renderer/core/mojo) exposes
the Mojo primitives to JavaScript, covering all basic functionality of the the Mojo primitives to JavaScript, covering all basic functionality of the
low-level C API. low-level C API.
......
...@@ -9,7 +9,7 @@ Sensors Mojo interfaces are defined in the `services/device/public/mojom` subdir ...@@ -9,7 +9,7 @@ Sensors Mojo interfaces are defined in the `services/device/public/mojom` subdir
### [Generic Sensors](https://www.w3.org/TR/generic-sensor/) ### [Generic Sensors](https://www.w3.org/TR/generic-sensor/)
The Generic Sensors API is implemented in `third_party/WebKit/Source/modules/sensor` and exposes the following sensor types as JavaScript objects: The Generic Sensors API is implemented in `third_party/blink/renderer/modules/sensor` and exposes the following sensor types as JavaScript objects:
* [AbsoluteOrientationSensor] &rarr; ABSOLUTE_ORIENTATION_QUATERNION * [AbsoluteOrientationSensor] &rarr; ABSOLUTE_ORIENTATION_QUATERNION
* [Accelerometer] &rarr; ACCELEROMETER * [Accelerometer] &rarr; ACCELEROMETER
...@@ -19,17 +19,17 @@ The Generic Sensors API is implemented in `third_party/WebKit/Source/modules/sen ...@@ -19,17 +19,17 @@ The Generic Sensors API is implemented in `third_party/WebKit/Source/modules/sen
* [Magnetometer] &rarr; MAGNETOMETER * [Magnetometer] &rarr; MAGNETOMETER
* [RelativeOrientationSensor] &rarr; RELATIVE_ORIENTATION_QUATERNION * [RelativeOrientationSensor] &rarr; RELATIVE_ORIENTATION_QUATERNION
[AbsoluteOrientationSensor]: ../../../third_party/WebKit/Source/modules/sensor/AbsoluteOrientationSensor.idl [AbsoluteOrientationSensor]: ../../../third_party/blink/renderer/modules/sensor/absolute_orientation_sensor.idl
[Accelerometer]: ../../../third_party/WebKit/Source/modules/sensor/Accelerometer.idl [Accelerometer]: ../../../third_party/blink/renderer/modules/sensor/accelerometer.idl
[AmbientLightSensor]: ../../../third_party/WebKit/Source/modules/sensor/AmbientLightSensor.idl [AmbientLightSensor]: ../../../third_party/blink/renderer/modules/sensor/ambient_light_sensor.idl
[Gyroscope]: ../../../third_party/WebKit/Source/modules/sensor/Gyroscope.idl [Gyroscope]: ../../../third_party/blink/renderer/modules/sensor/gyroscope.idl
[LinearAccelerationSensor]: ../../../third_party/WebKit/Source/modules/sensor/LinearAccelerationSensor.idl [LinearAccelerationSensor]: ../../../third_party/blink/renderer/modules/sensor/linear_acceleration_sensor.idl
[Magnetometer]: ../../../third_party/WebKit/Source/modules/sensor/Magnetometer.idl [Magnetometer]: ../../../third_party/blink/renderer/modules/sensor/magnetometer.idl
[RelativeOrientationSensor]: ../../../third_party/WebKit/Source/modules/sensor/RelativeOrientationSensor.idl [RelativeOrientationSensor]: ../../../third_party/blink/renderer/modules/sensor/relative_orientation_sensor.idl
### [DeviceOrientation Events](https://www.w3.org/TR/orientation-event/) ### [DeviceOrientation Events](https://www.w3.org/TR/orientation-event/)
The DeviceOrientation Events API is implemented in `third_party/WebKit/Source/modules/device_orientation` and exposes two events based on the following sensors: The DeviceOrientation Events API is implemented in `third_party/blink/renderer/modules/device_orientation` and exposes two events based on the following sensors:
* [DeviceMotionEvent] * [DeviceMotionEvent]
* ACCELEROMETER: populates the `accelerationIncludingGravity` field * ACCELEROMETER: populates the `accelerationIncludingGravity` field
...@@ -39,8 +39,8 @@ The DeviceOrientation Events API is implemented in `third_party/WebKit/Source/mo ...@@ -39,8 +39,8 @@ The DeviceOrientation Events API is implemented in `third_party/WebKit/Source/mo
* ABSOLUTE_ORIENTATION_EULER_ANGLES (when a listener for the `'deviceorientationabsolute'` event is added) * ABSOLUTE_ORIENTATION_EULER_ANGLES (when a listener for the `'deviceorientationabsolute'` event is added)
* RELATIVE_ORIENTATION_EULER_ANGLES (when a listener for the `'deviceorientation'` event is added) * RELATIVE_ORIENTATION_EULER_ANGLES (when a listener for the `'deviceorientation'` event is added)
[DeviceMotionEvent]: ../../../third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl [DeviceMotionEvent]: ../../../third_party/blink/renderer/modules/device_orientation/device_motion_event.idl
[DeviceOrientationEvent]: ../../../third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl [DeviceOrientationEvent]: ../../../third_party/blink/renderer/modules/device_orientation/device_orientation_event.idl
The content renderer layer is located in `content/renderer/device_sensors`. The content renderer layer is located in `content/renderer/device_sensors`.
......
...@@ -3,24 +3,19 @@ ...@@ -3,24 +3,19 @@
This directory contains the common Web Platform stuff that needs to be shared This directory contains the common Web Platform stuff that needs to be shared
by renderer-side and browser-side code. by renderer-side and browser-side code.
Things that live in `third_party/WebKit` can directly depend on this directory, Things that live in `third_party/blink` can directly depend on this directory,
while the code outside the WebKit directory (e.g. `//content` and `//chrome`) while the code outside the Blink directory (e.g. `//content` and `//chrome`)
can only depend on the common stuff via the public headers exposed in can only depend on the common stuff via the public headers exposed in
`WebKit/public/common`. `blink/public/common`.
Anything in this directory should **NOT** depend on the non-common stuff Anything in this directory should **NOT** depend on the non-common stuff
in the WebKit directory. See `DEPS` and `BUILD.gn` files for more details. in the Blink directory. See `DEPS` and `BUILD.gn` files for more details.
Code in this directory would normally use `blink` namespace. Code in this directory would normally use `blink` namespace.
Unlike other directories in WebKit, code in this directory should: Unlike other directories in Blink, code in this directory should:
* Use Chromium's common types (e.g. //base ones) rather than Blink's ones * Use Chromium's common types (e.g. //base ones) rather than Blink's ones
(e.g. WTF types) (e.g. WTF types)
* Use underscore_separated_file_names.cc style rather than CamelCase.cpp.
* Follow [Chromium's common coding style guide](https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md) * Follow [Chromium's common coding style guide](https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md)
* Use full-path from src/ for includes (e.g. `third_party/WebKit/common/foo.h`
rather than `common/foo.h`).
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Feature policy (see [spec](https://wicg.github.io/feature-policy/)) is a Feature policy (see [spec](https://wicg.github.io/feature-policy/)) is a
mechanism that allows developers to selectively enable and disable various mechanism that allows developers to selectively enable and disable various
[browser features and [browser features and
APIs](https://cs.chromium.org/chromium/src/third_party/WebKit/public/mojom/feature_policy/feature_policy.mojom) APIs](https://cs.chromium.org/chromium/src/third_party/blink/public/mojom/feature_policy/feature_policy.mojom)
(e.g, "vibrate", "fullscreen", "usb", etc.). A feature policy can be defined (e.g, "vibrate", "fullscreen", "usb", etc.). A feature policy can be defined
via a HTTP header and/or an iframe "allow" attribute. via a HTTP header and/or an iframe "allow" attribute.
...@@ -51,17 +51,17 @@ policy is undetermined, consider shipping the feature behind a flag (i.e., ...@@ -51,17 +51,17 @@ policy is undetermined, consider shipping the feature behind a flag (i.e.,
##### Define new feature ##### Define new feature
1. Feature policy features are defined in 1. Feature policy features are defined in
`third_party/WebKit/public/common/feature_policy/feature_policy_feature.h`. Add the new feature `third_party/blink/public/common/feature_policy/feature_policy_feature.h`. Add the new feature
enum with a brief decription about what the feature does in the comment, right enum with a brief decription about what the feature does in the comment, right
above `LAST_FEATURE` above `LAST_FEATURE`
2. Append the new feature enum with a brief description as well in 2. Append the new feature enum with a brief description as well in
`third_party/WebKit/public/mojom/feature_policy/feature_policy.mojom` `third_party/blink/public/mojom/feature_policy/feature_policy.mojom`
3. Update `third_party/WebKit/public/mojom/feature_policy/feature_policy.mojom_traits.h` 3. Update `third_party/blink/public/mojom/feature_policy/feature_policy.mojom_traits.h`
to include the new feature to include the new feature
4. Update `third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp`: 4. Update `third_party/blink/renderer/platform/feature_policy/feature_policy.cc`:
Add your `("feature-name", FeatureEnumValue)` mapping to Add your `("feature-name", FeatureEnumValue)` mapping to
`GetDefaultFeatureNameMap()` (note: "feature-name" is the string web `GetDefaultFeatureNameMap()` (note: "feature-name" is the string web
developers will be using to define the policy in the HTTP header and iframe developers will be using to define the policy in the HTTP header and iframe
......
...@@ -15,8 +15,8 @@ Concepts found in the [HTML spec](https://html.spec.whatwg.org/). ...@@ -15,8 +15,8 @@ Concepts found in the [HTML spec](https://html.spec.whatwg.org/).
A browsing context corresponds to the [Frame] interface where the main A browsing context corresponds to the [Frame] interface where the main
implementation is [LocalFrame]. implementation is [LocalFrame].
[Frame]: https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/Frame.h [Frame]: https://cs.chromium.org/src/third_party/blink/renderer/core/frame/frame.h
[LocalFrame]: https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/LocalFrame.h [LocalFrame]: https://cs.chromium.org/src/third_party/blink/renderer/core/frame/local_frame.h
### [origins](https://html.spec.whatwg.org/multipage/browsers.html#concept-origin) ### [origins](https://html.spec.whatwg.org/multipage/browsers.html#concept-origin)
...@@ -24,7 +24,7 @@ An origin corresponds to the [SecurityOrigin]. You can test for [same-origin] ...@@ -24,7 +24,7 @@ An origin corresponds to the [SecurityOrigin]. You can test for [same-origin]
using `SecurityOrigin::canAccess` and for [same-origin domain] using using `SecurityOrigin::canAccess` and for [same-origin domain] using
`SecurityOrigin::isSameSchemeHostPort`. `SecurityOrigin::isSameSchemeHostPort`.
[SecurityOrigin]: https://cs.chromium.org/src/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h [SecurityOrigin]: https://cs.chromium.org/src/third_party/blink/renderer/platform/weborigin/security_origin.h
[same-origin]: https://html.spec.whatwg.org/multipage/browsers.html#same-origin [same-origin]: https://html.spec.whatwg.org/multipage/browsers.html#same-origin
[same-origin domain]: https://html.spec.whatwg.org/multipage/browsers.html#same-origin-domain [same-origin domain]: https://html.spec.whatwg.org/multipage/browsers.html#same-origin-domain
...@@ -34,8 +34,8 @@ using `SecurityOrigin::canAccess` and for [same-origin domain] using ...@@ -34,8 +34,8 @@ using `SecurityOrigin::canAccess` and for [same-origin domain] using
A Window object corresponds to the [DOMWindow] interface where the main A Window object corresponds to the [DOMWindow] interface where the main
implementation is [LocalDOMWindow]. implementation is [LocalDOMWindow].
[DOMWindow]: https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/DOMWindow.h [DOMWindow]: https://cs.chromium.org/src/third_party/blink/renderer/core/frame/dom_window.h
[LocalDOMWindow]: https://cs.chromium.org/src/third_party/WebKit/Source/core/frame/LocalDOMWindow.h [LocalDOMWindow]: https://cs.chromium.org/src/third_party/blink/renderer/core/frame/local_dom_window.h
### [WindowProxy](https://html.spec.whatwg.org/#windowproxy) ### [WindowProxy](https://html.spec.whatwg.org/#windowproxy)
...@@ -52,14 +52,14 @@ are supported for different use cases. ...@@ -52,14 +52,14 @@ are supported for different use cases.
The main element's sources are in [HTMLCanvasElement]. Contexts are implemented The main element's sources are in [HTMLCanvasElement]. Contexts are implemented
via modules. The top-level module is [HTMLCanvasElementModule]. via modules. The top-level module is [HTMLCanvasElementModule].
[HTMLCanvasElement]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/HTMLCanvasElement.h [HTMLCanvasElement]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/html_canvas_element.h
[HTMLCanvasElementModule]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h [HTMLCanvasElementModule]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/canvas/html_canvas_element_module.h
The [2D canvas context] is implemented in [modules/canvas2d]. The [2D canvas context] is implemented in [modules/canvas2d].
[2D canvas context]: https://html.spec.whatwg.org/multipage/scripting.html#canvasrenderingcontext2d [2D canvas context]: https://html.spec.whatwg.org/multipage/scripting.html#canvasrenderingcontext2d
[modules/canvas2d]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/canvas2d/ [modules/canvas2d]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/canvas2d/
The [WebGL 1.0] and [WebGL 2.0] contexts ([WebGL Github repo]) are implemented The [WebGL 1.0] and [WebGL 2.0] contexts ([WebGL Github repo]) are implemented
...@@ -68,4 +68,4 @@ in [modules/webgl]. ...@@ -68,4 +68,4 @@ in [modules/webgl].
[WebGL 1.0]: https://www.khronos.org/registry/webgl/specs/latest/1.0/ [WebGL 1.0]: https://www.khronos.org/registry/webgl/specs/latest/1.0/
[WebGL 2.0]: https://www.khronos.org/registry/webgl/specs/latest/2.0/ [WebGL 2.0]: https://www.khronos.org/registry/webgl/specs/latest/2.0/
[WebGL Github repo]: https://github.com/KhronosGroup/WebGL [WebGL Github repo]: https://github.com/KhronosGroup/WebGL
[modules/webgl]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/webgl/ [modules/webgl]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/webgl/
...@@ -108,12 +108,12 @@ The Blink animation engine interacts with Blink/Chrome in the following ways: ...@@ -108,12 +108,12 @@ The Blink animation engine interacts with Blink/Chrome in the following ways:
* ### Javascript * ### Javascript
[EffectInput](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/animation/EffectInput.cpp) [EffectInput](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/animation/effect_input.cc)
contains the helper functions that are used to contains the helper functions that are used to
[process a keyframe argument](https://drafts.csswg.org/web-animations/#processing-a-keyframes-argument) [process a keyframe argument](https://drafts.csswg.org/web-animations/#processing-a-keyframes-argument)
which can take an argument of either object or array form. which can take an argument of either object or array form.
[PlayStateUpdateScope](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/animation/Animation.h?l=323): [PlayStateUpdateScope](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/animation/animation.h?l=323):
whenever there is a mutation to the animation engine from JS level, this whenever there is a mutation to the animation engine from JS level, this
gets created and the destructor has the logic that handles everything. It gets created and the destructor has the logic that handles everything. It
keeps the old and new state of the animation, checks the difference and keeps the old and new state of the animation, checks the difference and
...@@ -135,7 +135,7 @@ The Blink animation engine interacts with Blink/Chrome in the following ways: ...@@ -135,7 +135,7 @@ The Blink animation engine interacts with Blink/Chrome in the following ways:
animation without having any effect on the underlying animation or its animation without having any effect on the underlying animation or its
listeners. listeners.
[InspectorAnimationAgent]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.h [InspectorAnimationAgent]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/inspector/InspectorAnimationAgent.h
* ### SVG * ### SVG
...@@ -360,7 +360,7 @@ about the state. ...@@ -360,7 +360,7 @@ about the state.
[extending Test]: https://cs.chromium.org/search/?q=public%5C+testing::Test+file:core%5C/Animation&sq=package:chromium&type=cs [extending Test]: https://cs.chromium.org/search/?q=public%5C+testing::Test+file:core%5C/Animation&sq=package:chromium&type=cs
[extending RenderingTest]: https://cs.chromium.org/search/?q=public%5C+RenderingTest+file:core%5C/animation&type=cs [extending RenderingTest]: https://cs.chromium.org/search/?q=public%5C+RenderingTest+file:core%5C/animation&type=cs
[enable compositing]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp?type=cs&sq=package:chromium&q=file:core%5C/animation%5C/.*Test%5C.cpp+EnableCompositing [enable compositing]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/animation/compositor_animations_test.cc?type=cs&sq=package:chromium&q=file:core%5C/animation%5C/.*Test%5C.cpp+EnableCompositing
## Ongoing work ## Ongoing work
......
# CSS # CSS
[Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/css/README.md) [Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/css/README.md)
The `Source/core/css` directory contains the implementation of CSS. The `Source/core/css` directory contains the implementation of CSS.
......
# CSS Typed OM # CSS Typed OM
[Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/css/cssom/README.md) [Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/css/cssom/README.md)
The `Source/core/css/cssom` directory contains the implementation of [CSS Typed OM](https://drafts.css-houdini.org/css-typed-om). The `Source/core/css/cssom` directory contains the implementation of [CSS Typed OM](https://drafts.css-houdini.org/css-typed-om).
......
...@@ -47,7 +47,7 @@ Aliases are properties that share most of their logic with another property, ...@@ -47,7 +47,7 @@ Aliases are properties that share most of their logic with another property,
somtimes with the exception of some minor differences in parsing logic due to somtimes with the exception of some minor differences in parsing logic due to
legacy reasons. Many aliases are -webit prefixed properties that have since legacy reasons. Many aliases are -webit prefixed properties that have since
been implemented without the prefix. Aliases define the alias_for member in been implemented without the prefix. Aliases define the alias_for member in
[CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/CSSProperties.json5)). [CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/CSSProperties.json5)).
Alias classes implement a small subset of functions of properties, only those Alias classes implement a small subset of functions of properties, only those
that do not share an implementation with the resolved property that they are an that do not share an implementation with the resolved property that they are an
...@@ -89,18 +89,18 @@ headers are in this directory. ...@@ -89,18 +89,18 @@ headers are in this directory.
2. Implement the required methods on the property class. 2. Implement the required methods on the property class.
3. If logic is required by multiple property classes you may need to create a 3. If logic is required by multiple property classes you may need to create a
new Utils file. These utils methods are grouped by pipeline function (e.g. new Utils file. These utils methods are grouped by pipeline function (e.g.
[CSSParsingUtils](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/properties/CSSParsingUtils.h)). [CSSParsingUtils](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/properties/css_parsing_utils.h)).
4. Add the new property to `core/css/CSSProperties.json5`. Ensure that you 4. Add the new property to `core/css/CSSProperties.json5`. Ensure that you
include all the methods implemented on the property in the include all the methods implemented on the property in the
'property_methods' flag so that the header file is generated correctly (see 'property_methods' flag so that the header file is generated correctly (see
[CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/CSSProperties.json5) [CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/CSSProperties.json5)
for more details) for more details)
5. Add new files to BUILD files 5. Add new files to BUILD files
1. Add the new .cpp file to 1. Add the new .cpp file to
[core/css/BUILD.gn](https://codesearch.chromium.org/chromium/src/third_party/WebKit/Source/core/css/BUILD.gn) [core/css/BUILD.gn](https://codesearch.chromium.org/chromium/src/third_party/blink/renderer/core/css/BUILD.gn)
in the `blink_core_sources` target's `sources` parameter in the `blink_core_sources` target's `sources` parameter
2. Add the generated .h file to 2. Add the generated .h file to
[core/BUILD.gn](https://codesearch.chromium.org/chromium/src/third_party/WebKit/Source/core/BUILD.gn) [core/BUILD.gn](https://codesearch.chromium.org/chromium/src/third_party/blink/renderer/core/BUILD.gn)
in the `css_properties` target's `outputs` parameter. This step is often in the `css_properties` target's `outputs` parameter. This step is often
forgotten and may not immediately caues an error but can cause linking forgotten and may not immediately caues an error but can cause linking
errors in certain situations. errors in certain situations.
......
[Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/css/style-calculation.md) [Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/css/style-calculation.md)
# About this document # About this document
...@@ -31,13 +31,13 @@ The process of calculating styles for the elements is broken into 3 phases: ...@@ -31,13 +31,13 @@ The process of calculating styles for the elements is broken into 3 phases:
A catalogue of the classes involved. Read their class docs. A catalogue of the classes involved. Read their class docs.
* [`Element`](https://cs.chromium.org/?q=symbol:%5Eblink::Element$) See also * [`Element`](https://cs.chromium.org/?q=symbol:%5Eblink::Element$) See also
[dom/README.md](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/dom/README.md) [dom/README.md](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/dom/README.md)
* [`TreeScope`](https://cs.chromium.org/?q=symbol:%5Eblink::TreeScope$) * [`TreeScope`](https://cs.chromium.org/?q=symbol:%5Eblink::TreeScope$)
Represents a tree of elements for a document or shadow root. Gives fast access Represents a tree of elements for a document or shadow root. Gives fast access
to various things inside the tree of elements. Holds a to various things inside the tree of elements. Holds a
[`ScopedStyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::ScopedStyleResolver$) [`ScopedStyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::ScopedStyleResolver$)
for this scope. See for this scope. See
[dom/README.md](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/dom/README.md#treescope) [dom/README.md](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/dom/README.md#treescope)
* [`StyleEngine`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleEngine$) * [`StyleEngine`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleEngine$)
* [`StyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleResolver$) * [`StyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleResolver$)
* [`ScopedStyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::ScopedStyleResolver$) * [`ScopedStyleResolver`](https://cs.chromium.org/?q=symbol:%5Eblink::ScopedStyleResolver$)
...@@ -209,7 +209,7 @@ The tree is traversed in [shadow-including tree ...@@ -209,7 +209,7 @@ The tree is traversed in [shadow-including tree
oreder](https://www.w3.org/TR/shadow-dom/#concept-shadow-including-tree-order). There oreder](https://www.w3.org/TR/shadow-dom/#concept-shadow-including-tree-order). There
are 2 recursive paths that can be taken. The simpler one is in the case where are 2 recursive paths that can be taken. The simpler one is in the case where
the the
[change](https://chromium.googlesource.com/chromium/src/+/lkcr/third_party/WebKit/Source/core/style/stylerecalc.md) [change](https://chromium.googlesource.com/chromium/src/+/lkcr/third_party/blink/renderer/core/style/stylerecalc.md)
being applied is being applied is
[`ComputedStyleConstants::kReattach`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleRecalcChange::kReattach$). It [`ComputedStyleConstants::kReattach`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleRecalcChange::kReattach$). It
recurses through recurses through
...@@ -228,13 +228,13 @@ calculation is performed by ...@@ -228,13 +228,13 @@ calculation is performed by
# Omissions # Omissions
* Caching, fast reject, * Caching, fast reject,
[`NthIndexCache`](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/NthIndexCache.h?l=36&gsn=NthIndexCache) [`NthIndexCache`](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/dom/nth_index_cache.h?l=36&gsn=NthIndexCache)
* Ordering, e.g. the comment at the start of * Ordering, e.g. the comment at the start of
[`MatchScopedRules`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleResolver::MatchScopedRules$) [`MatchScopedRules`](https://cs.chromium.org/?q=symbol:%5Eblink::StyleResolver::MatchScopedRules$)
* How the collected set of rules that match an element are combined with * How the collected set of rules that match an element are combined with
inline style and parent style to get computed-style. inline style and parent style to get computed-style.
* How the [various types of * How the [various types of
failure](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/SelectorChecker.h?l=153) failure](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/selector_checker.h?l=153)
are used to optimize application of `MatchSelector` are used to optimize application of `MatchSelector`
* Other entry points that lead into rule collection. * Other entry points that lead into rule collection.
* Animation. * Animation.
......
# DOM # DOM
[Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/dom/README.md) [Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/dom/README.md)
Author: hayato@chromium.org Author: hayato@chromium.org
......
# DOM experimental # DOM experimental
[Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/dom/ng/README.md) [Rendered](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/dom/ng/README.md)
Author: hayato@chromium.org Author: hayato@chromium.org
......
...@@ -74,7 +74,7 @@ Custom elements have small C++ unit tests and medium ...@@ -74,7 +74,7 @@ Custom elements have small C++ unit tests and medium
###### C++ Unit Tests ###### C++ Unit Tests
These are in third_party/WebKit/Source/core/dom/*Test.cpp and are These are in third_party/blink/renderer/core/dom/*_test.cc and are
built as part of the webkit_unit_tests target. The test names start built as part of the webkit_unit_tests target. The test names start
with CustomElement so you can run them with: with CustomElement so you can run them with:
......
# Block Layout # # Block Layout #
This document can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/layout/ng/BlockLayout.md). This document can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/layout/ng/BlockLayout.md).
## BFC & BFC Offsets ## ## BFC & BFC Offsets ##
...@@ -13,7 +13,7 @@ below) and floats do not intrude, the exclusion space is completely separate. ...@@ -13,7 +13,7 @@ below) and floats do not intrude, the exclusion space is completely separate.
Our block layout implementation is based on the principle that children place Our block layout implementation is based on the principle that children place
*themselves* within the block formatting context. This information is *themselves* within the block formatting context. This information is
communicated with the optional [NGLayoutResult::BfcOffset](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/ng/ng_layout_result.h). communicated with the optional [NGLayoutResult::BfcOffset](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/ng/ng_layout_result.h).
A child's BFCOffset is optional as empty blocks cannot place themselves within A child's BFCOffset is optional as empty blocks cannot place themselves within
the BFC. They may be affected by siblings. the BFC. They may be affected by siblings.
...@@ -69,7 +69,7 @@ FloatsBFCOffset. ...@@ -69,7 +69,7 @@ FloatsBFCOffset.
--- ---
Once a float is positioned, everything else float related is handled by the Once a float is positioned, everything else float related is handled by the
[ExclusionSpace](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/ng/ng_exclusion_space.h). [ExclusionSpace](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/ng/ng_exclusion_space.h).
Mutating the exclusion space only happens by adding additional exclusions. Mutating the exclusion space only happens by adding additional exclusions.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
This directory contains the implementation of Blink's new layout engine This directory contains the implementation of Blink's new layout engine
"LayoutNG". "LayoutNG".
This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/layout/ng/README.md). This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/layout/ng/README.md).
The original design document can be seen [here](https://docs.google.com/document/d/1uxbDh4uONFQOiGuiumlJBLGgO4KDWB8ZEkp7Rd47fw4/edit). The original design document can be seen [here](https://docs.google.com/document/d/1uxbDh4uONFQOiGuiumlJBLGgO4KDWB8ZEkp7Rd47fw4/edit).
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
This directory contains the inline layout implementation This directory contains the inline layout implementation
of Blink's new layout engine "LayoutNG". of Blink's new layout engine "LayoutNG".
This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/layout/ng/inline/README.md). This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/layout/ng/inline/README.md).
Other parts of LayoutNG is explained [here](../README.md). Other parts of LayoutNG is explained [here](../README.md).
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
This directory contains the list implementation This directory contains the list implementation
of Blink's new layout engine "LayoutNG". of Blink's new layout engine "LayoutNG".
This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/layout/ng/list/README.md). This README can be viewed in formatted form [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/layout/ng/list/README.md).
Other parts of LayoutNG is explained [here](../README.md). Other parts of LayoutNG is explained [here](../README.md).
......
...@@ -3,7 +3,7 @@ This document is a subset of the [Mojo documentation](/mojo). ...@@ -3,7 +3,7 @@ This document is a subset of the [Mojo documentation](/mojo).
The JavaScript system API exposes the capabilities to create message pipes, data The JavaScript system API exposes the capabilities to create message pipes, data
pipes, shared buffers and watchers. The API is defined using Web IDL. You could pipes, shared buffers and watchers. The API is defined using Web IDL. You could
find the IDL files [here](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/mojo/). find the IDL files [here](https://cs.chromium.org/chromium/src/third_party/blink/Source/core/mojo/).
Please refer to the low-level [C system API](/mojo/public/c/system) for more Please refer to the low-level [C system API](/mojo/public/c/system) for more
detailed documentation of equivalent methods. detailed documentation of equivalent methods.
......
...@@ -4,7 +4,7 @@ This directory contains the paint system to work with ...@@ -4,7 +4,7 @@ This directory contains the paint system to work with
the Blink's new layout engine [LayoutNG]. the Blink's new layout engine [LayoutNG].
This README can be viewed in formatted form This README can be viewed in formatted form
[here](https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/paint/ng/README.md). [here](https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/core/paint/ng/README.md).
## NGPaintFragment ## ## NGPaintFragment ##
......
# Files: # Files:
Currently the C++ code for ComputedStyle lies in the following sets of files: Currently the C++ code for ComputedStyle lies in the following sets of files:
* ComputedStyleBase.{h,cpp} - This is the generated base class for ComputedStyle. All groups and fields are initialized here. * computed_style_base.{h,cc} - This is the generated base class for ComputedStyle. All groups and fields are initialized here.
* ComputedStyle.{h,cpp} - These files add the following things on top of ComputedStyleBase: * computed_style.{h,cc} - These files add the following things on top of ComputedStyleBase:
* Handwritten public accessors that are not straightforward and hence not generated in ComputedStyleBase. * Handwritten public accessors that are not straightforward and hence not generated in ComputedStyleBase.
* Helper functions - e.g. functions that compare two ComputedStyle to check for equality across a set of fields. * Helper functions - e.g. functions that compare two ComputedStyle to check for equality across a set of fields.
...@@ -12,20 +12,20 @@ The files that generate the code in ComputedStyleBase.{h,cpp} include: ...@@ -12,20 +12,20 @@ The files that generate the code in ComputedStyleBase.{h,cpp} include:
## JSON files: ## JSON files:
These files are inputs to the generator and tell the generator what shape our fields and functions take. This is a list of all the relevant JSON files (more detailed documentation can be found in the files themselves): These files are inputs to the generator and tell the generator what shape our fields and functions take. This is a list of all the relevant JSON files (more detailed documentation can be found in the files themselves):
* [CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/CSSProperties.json5): Contains information for all the CSS properties we support. * [CSSProperties.json5](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/CSSProperties.json5): Contains information for all the CSS properties we support.
* [ComputedStyleExtraFields.json5](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5): Specifies fields in ComputedStyle that we would like to generate, but are not CSS properties. * [ComputedStyleExtraFields.json5](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/ComputedStyleExtraFields.json5): Specifies fields in ComputedStyle that we would like to generate, but are not CSS properties.
* [ComputedStyleDiffFunctions.json5](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5): Specifies the fields we want to diff in the various diff functions in ComputedStyle. It is used to generate the various diffing functions on ComputedStyle. * [ComputedStyleDiffFunctions.json5](https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/ComputedStyleDiffFunctions.json5): Specifies the fields we want to diff in the various diff functions in ComputedStyle. It is used to generate the various diffing functions on ComputedStyle.
## Generator files: ## Generator files:
These scripts generate the computed_style_base.{h,cc} files. This is a list of the relevant generator files (more detailed documentation can be found in the files themselves): These scripts generate the computed_style_base.{h,cc} files. This is a list of the relevant generator files (more detailed documentation can be found in the files themselves):
* [make_computed_style_base.py](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/build/scripts/make_computed_style_base.py): Main file that handles the code generation logic. It consumes the JSON inputs provided and outputs fields and groups that encapsulate the structure of ComputedStyle. * [make_computed_style_base.py](https://cs.chromium.org/chromium/src/third_party/blink/renderer/build/scripts/make_computed_style_base.py): Main file that handles the code generation logic. It consumes the JSON inputs provided and outputs fields and groups that encapsulate the structure of ComputedStyle.
## Template files: ## Template files:
For each generate file, the Python script uses a Jinja template file to format the output: For each generate file, the Python script uses a Jinja template file to format the output:
* [computed_style_base.h.tmpl](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/build/scripts/templates/computed_style_base.h.tmpl): Header file with the field and group declarations. * [computed_style_base.h.tmpl](https://cs.chromium.org/chromium/src/third_party/blink/renderer/build/scripts/templates/computed_style_base.h.tmpl): Header file with the field and group declarations.
* [computed_style_base.cc.tmpl](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/build/scripts/templates/computed_style_base.cc.tmpl): Implementation of various generated helper functions. Notably, contains implementation of functions that use ComputedStyle such as the diffing functions. * [computed_style_base.cc.tmpl](https://cs.chromium.org/chromium/src/third_party/blink/renderer/build/scripts/templates/computed_style_base.cc.tmpl): Implementation of various generated helper functions. Notably, contains implementation of functions that use ComputedStyle such as the diffing functions.
* [computed_style_base_constants.h.tmpl](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/build/scripts/templates/computed_style_base_constants.h.tmpl): Definitions of generated enums. * [computed_style_base_constants.h.tmpl](https://cs.chromium.org/chromium/src/third_party/blink/renderer/build/scripts/templates/computed_style_base_constants.h.tmpl): Definitions of generated enums.
* [fields/*.tmpl](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/build/scripts/templates/fields/): These files contain various macros that help us generate accessors for the fields depending on their field_template. * [fields/*.tmpl](https://cs.chromium.org/chromium/src/third_party/blink/renderer/build/scripts/templates/fields/): These files contain various macros that help us generate accessors for the fields depending on their field_template.
# Understanding where to make changes: # Understanding where to make changes:
When we want to generate something in ComputedStyle, it’s usually as simple as adding a new entry to the JSON file or modifying a particular value. However, there can be cases where the thing to generate does not fit the current framework and more drastic changes are required. These changes can be done in several different places, but some are more preferable than others (most preferable to least preferable): When we want to generate something in ComputedStyle, it’s usually as simple as adding a new entry to the JSON file or modifying a particular value. However, there can be cases where the thing to generate does not fit the current framework and more drastic changes are required. These changes can be done in several different places, but some are more preferable than others (most preferable to least preferable):
......
...@@ -8,7 +8,7 @@ It is available on NPM as the [chrome-devtools-frontend](https://www.npmjs.com/p ...@@ -8,7 +8,7 @@ It is available on NPM as the [chrome-devtools-frontend](https://www.npmjs.com/p
The version number of the npm package (e.g. `1.0.373466`) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily. The version number of the npm package (e.g. `1.0.373466`) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.
### Source code ### Source code
The frontend is available through a git subtree mirror on [chromium.googlesource.com](https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/devtools/), with a regularly updating GitHub mirror at [github.com/ChromeDevTools/devtools-frontend](https://github.com/ChromeDevTools/devtools-frontend). The codebase's true location is in `third_party/WebKit/Source/devtools/` in [Chromium's git repo](https://chromium.googlesource.com/chromium/src/). The frontend is available through a git subtree mirror on [chromium.googlesource.com](https://chromium.googlesource.com/chromium/src/third_party/blink/renderer/devtools/), with a regularly updating GitHub mirror at [github.com/ChromeDevTools/devtools-frontend](https://github.com/ChromeDevTools/devtools-frontend). The codebase's true location is in `third_party/blink/renderer/devtools/` in [Chromium's git repo](https://chromium.googlesource.com/chromium/src/).
### Getting Started ### Getting Started
...@@ -118,7 +118,7 @@ npm test -- --target=Default ...@@ -118,7 +118,7 @@ npm test -- --target=Default
[devtools-reviews@chromium.org]: https://groups.google.com/a/chromium.org/forum/#!forum/devtools-reviews [devtools-reviews@chromium.org]: https://groups.google.com/a/chromium.org/forum/#!forum/devtools-reviews
[RSS feed]: https://feeds.peter.sh/chrome-devtools/ [RSS feed]: https://feeds.peter.sh/chrome-devtools/
[View the log]: https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/devtools/+log/master [View the log]: https://chromium.googlesource.com/chromium/src/third_party/blink/renderer/devtools/+log/master
[@ChromeDevTools]: http://twitter.com/ChromeDevTools [@ChromeDevTools]: http://twitter.com/ChromeDevTools
[@DevToolsCommits]: http://twitter.com/DevToolsCommits [@DevToolsCommits]: http://twitter.com/DevToolsCommits
[all open DevTools tickets]: https://bugs.chromium.org/p/chromium/issues/list?can=2&q=component%3APlatform%3EDevTools&sort=&groupby=&colspec=ID+Stars+Owner+Summary+Modified+Opened [all open DevTools tickets]: https://bugs.chromium.org/p/chromium/issues/list?can=2&q=component%3APlatform%3EDevTools&sort=&groupby=&colspec=ID+Stars+Owner+Summary+Modified+Opened
...@@ -21,8 +21,8 @@ implementation. ...@@ -21,8 +21,8 @@ implementation.
Please add documents below as you write it. Please add documents below as you write it.
* [Overview for Database People](/third_party/WebKit/Source/modules/indexeddb/docs/idb_overview.md) * [Overview for Database People](/third_party/blink/renderer/modules/indexeddb/docs/idb_overview.md)
* [IndexedDB Data Path](/third_party/WebKit/Source/modules/indexeddb/docs/idb_data_path.md) * [IndexedDB Data Path](/third_party/blink/renderer/modules/indexeddb/docs/idb_data_path.md)
## Design Docs ## Design Docs
......
# Generic Sensor # Generic Sensor
`third_party/WebKit/Source/modules/sensor` implements the following concrete `third_party/blink/renderer/modules/sensor` implements the following concrete
sensor intrefaces based on the [Generic Sensor API] sensor intrefaces based on the [Generic Sensor API]
(https://w3c.github.io/sensors): (https://w3c.github.io/sensors):
1. [Ambient Light Sensor] (https://w3c.github.io/ambient-light) 1. [Ambient Light Sensor] (https://w3c.github.io/ambient-light)
......
...@@ -76,7 +76,7 @@ Note that *wrappables* have to be *on-heap objects* and thus all ...@@ -76,7 +76,7 @@ Note that *wrappables* have to be *on-heap objects* and thus all
[Oilpan-related rules][oilpan-docs] apply. [Oilpan-related rules][oilpan-docs] apply.
[object-grouping-slides]: https://docs.google.com/presentation/d/1I6leiRm0ysSTqy7QWh33Gfp7_y4ngygyM2tDAqdF0fI/ [object-grouping-slides]: https://docs.google.com/presentation/d/1I6leiRm0ysSTqy7QWh33Gfp7_y4ngygyM2tDAqdF0fI/
[oilpan-docs]: https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md [oilpan-docs]: https://chromium.googlesource.com/chromium/src/+/master/third_party/blink/renderer/platform/heap/BlinkGCAPIReference.md
## Basic usage ## Basic usage
...@@ -84,8 +84,8 @@ The annotations that are required can be found in the following header files. ...@@ -84,8 +84,8 @@ The annotations that are required can be found in the following header files.
Pick the header file depending on what types are needed. Pick the header file depending on what types are needed.
```c++ ```c++
#include "platform/bindings/ScriptWrappable.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "platform/bindings/TraceWrapperV8Reference.h" #include "third_party/blink/renderer/platform/bindings/trace_wrapper_v8_reference.h"
``` ```
The following example will guide through the modifications that are needed to The following example will guide through the modifications that are needed to
......
...@@ -92,30 +92,30 @@ but it moved to Source/WTF/wtf in 2011-2012, then to Source/wtf in 2013. ...@@ -92,30 +92,30 @@ but it moved to Source/WTF/wtf in 2011-2012, then to Source/wtf in 2013.
Blink forked WebKit in 2013. In 2017, the directory finally [moved to the Blink forked WebKit in 2013. In 2017, the directory finally [moved to the
current location][4] Source/platform/wtf. current location][4] Source/platform/wtf.
[the directory listing]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/ [the directory listing]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/
[base]: https://cs.chromium.org/chromium/src/base/ [base]: https://cs.chromium.org/chromium/src/base/
[Vector]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Vector.h [Vector]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/vector.h
[HashSet]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/HashSet.h [HashSet]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/hash_set.h
[HashMap]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/HashMap.h [HashMap]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/hash_map.h
[Deque]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Deque.h [Deque]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/deque.h
[String]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/text/WTFString.h [String]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/text/wtf_string.h
[AtomicString]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/text/AtomicString.h [AtomicString]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/text/atomic_string.h
[StringBuilder]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/text/StringBuilder.h [StringBuilder]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/text/string_builder.h
[CString]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/text/CString.h [CString]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/text/cstring.h
[RefCounted]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/RefCounted.h [RefCounted]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/ref_counted.h
[Allocator.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Allocator.h [Allocator.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/allocator.h
[Functional.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Functional.h [Functional.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/functional.h
[Threading.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Threading.h [Threading.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/threading.h
[ThreadingPrimitives.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/ThreadingPrimitives.h [ThreadingPrimitives.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/threading_primitives.h
[Compiler.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Compiler.h [Compiler.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/compiler.h
[CPU.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/CPU.h [CPU.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/cpu.h
[build_config.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/build_config.h [build_config.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/build_config.h
[Noncopyable.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Noncopyable.h [Noncopyable.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/noncopyable.h
[StdLibExtras.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/StdLibExtras.h [StdLibExtras.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/std_lib_extras.h
[Time.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Time.h [Time.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/time.h
[CryptographicallyRandomNumber.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/CryptographicallyRandomNumber.h [CryptographicallyRandomNumber.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/cryptographically_random_number.h
[AutoReset.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/AutoReset.h [AutoReset.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/auto_reset.h
[Optional.h]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/wtf/Optional.h [Optional.h]: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/wtf/optional.h
[1]: https://chromium.googlesource.com/chromium/src/+/e372c152fc6e57743ebc508fe17f6eb131b4ff8d [1]: https://chromium.googlesource.com/chromium/src/+/e372c152fc6e57743ebc508fe17f6eb131b4ff8d
[2]: https://chromium.googlesource.com/chromium/src/+/547a6ca360a56fbee3d5ea4a71ba18f91622455c [2]: https://chromium.googlesource.com/chromium/src/+/547a6ca360a56fbee3d5ea4a71ba18f91622455c
[3]: https://chromium.googlesource.com/chromium/src/+/478890427ee03fd88e6f0f58ee8220512044bed9/third_party/WebKit/WebCore/kwq/KWQAssertions.h [3]: https://chromium.googlesource.com/chromium/src/+/478890427ee03fd88e6f0f58ee8220512044bed9/third_party/WebKit/WebCore/kwq/KWQAssertions.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment