0

Remove some superfluous //ui/gfx includes from //components headers

With the exception of ui/gfx/color_utils.h, code in //ui/gfx use
namespace gfx, so if "gfx::" does not appear in a header, then it does
not need the //ui/gfx includes. The command below generated the list of
edited files:

git grep -l '^#include "ui/gfx' components|grep '\.h$'|xargs grep -L gfx::

Clean up those headers and then do IWYU to fix the build.

Bug: 40318405
Change-Id: I89122602c3aa7d09ac1490b48297bf09366f01e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6558849
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1462366}
This commit is contained in:
Lei Zhang
2025-05-19 11:59:38 -07:00
committed by Chromium LUCI CQ
parent e39e298e6e
commit cd98c2e633
23 changed files with 1 additions and 27 deletions

@ -27,7 +27,6 @@
#include "components/tab_groups/tab_group_visual_data.h"
#include "ui/base/ui_base_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/geometry/rect.h"
namespace sessions {