commit | 36ab40d0bfb153e691873b892a98c0be34f083f7 | [log] [tgz] |
---|---|---|
author | Philip Rogers <[email protected]> | Mon Oct 28 22:04:01 2019 |
committer | Commit Bot <[email protected]> | Tue Oct 29 16:11:57 2019 |
tree | 8d07cbe0459d063b1ffdee5fe0f0e67fff73e0c9 | |
parent | b63ee70a8e5cf65967e0ce26cdfc72ce85004728 [diff] |
Add main-thread scrolling reasons to 3d layers view in the inspector This is the devtools-frontend patch of a two-patch series to add main- thread scrolling reasons to the 3d layers view in the inspector. The inspector has a feature for showing the 3d layers of the page under More tools > Layers. This 3d layer view includes an option for "Slow scroll rects", and this visualization did not include main-thread scrolling reasons such as background-attachment: fixed. This patch adds plumbing to add main-thread scrolling reasons to the "Slow scroll rects" visualization. This patch also fixes a bug in the string format used for the slow scroll rects. It was previously printed as: [x] x [y] (at [width], [height]) With this patch it is printed as: [width] x [height] (at [x], [y]) Bug: 1015918 Change-Id: I3cff6414c5f18bb9ed14a0705221d8012ccc18d1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1884529 Reviewed-by: Jan Scheffler <[email protected]> Commit-Queue: Philip Rogers <[email protected]>
The client-side of the Chrome DevTools, including all JS & CSS to run the DevTools webapp.
The frontend is available on chromium.googlesource.com.
As standalone project, Chrome DevTools front-end can be checked out and built independently from Chromium.
Get depot_tools first.
mkdir devtools cd devtools git clone https://chromium.googlesource.com/devtools/devtools-frontend gclient config https://chromium.googlesource.com/devtools/devtools-frontend --unmanaged
cd devtools-frontend gclient sync gn gen out/Default autoninja -C out/Default
To run the production build, use
<path-to-chrome>/chrome --custom-devtools-frontend=file://$(realpath out/Default/resources/inspector)
To run the debug build (directly symlinked to the original unminified source files), build both Chromium and DevTools frontend with the GN flag debug_devtools=true
, and use
<path-to-chrome>/chrome --custom-devtools-frontend=file://$(realpath out/Default/resources/inspector/debug)
DevTools frontend can also be developed as part of Chromium.
Follow instructions to check out Chromium. DevTools frontend can be found under chromium/src/third_party/devtools-frontend/src/
.
Refer to instructions to build Chromium. To only build DevTools frontend, use devtools_frontend_resources
as build target.
Change your working directory to the integrated DevTools frontend:
cd path/to/chromium/src/third_party/devtools-frontend/src
Add standalone DevTools frontend as remote:
git remote add standalone file://path/to/devtools/devtools-frontend/ git fetch standalone git checkout standalone/branch-of-your-choice
npm run format-py
Formats your Python code using yapf
Note: Yapf is a command line tool. You will have to install this manually, either from PyPi through
pip install yapf
or if you want to enable multiprocessing in Python 2.7,pip install futures
DevTools frontend is available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES2015 modules, so consuming this package in other tools may require some effort.
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.
@ChromeDevTools on Twitter
Chrome DevTools mailing list: groups.google.com/forum/google-chrome-developer-tools