Declare GetShadowRoot and IsInUserAgentShadowRoot as inline. They are defined as inline in shadow_root.h, and I got surprised by some linking errors when attempting to move code that called IsInUserAgentShadowRoot(). Let's have compile errors instead! Also move some inlined shadow root related functions from element.h into shadow_root.h. They didn't cause any trouble as it was (since every compilation unit actually calling them apparently were lucky enough to include shadow_root.h), but would cause trouble now. Change-Id: Ib4f356571dc737f59e0fca7751da1fece94d0592 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6243240 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Cr-Commit-Position: refs/heads/main@{#1418026}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.