docs: fix spelling errors in code comments (#45842)

chore: Fix typos
This commit is contained in:
co63oc 2025-02-28 19:24:00 +08:00 committed by GitHub
parent 3041fd66cd
commit 36ec9d7236
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -195,7 +195,7 @@ void ThemeDataSource::SendColorsCss(
css_selector = ":host";
} else {
// This selector requires more specificity than other existing CSS
// selectors that define variables. We increase the specifity by adding
// selectors that define variables. We increase the specificity by adding
// a pseudoselector.
css_selector = "html:not(#z)";
}

View file

@ -23,7 +23,7 @@ SubmenuButton::SubmenuButton(PressedCallback callback,
: views::MenuButton(std::move(callback), gfx::RemoveAccelerator(title)),
background_color_(background_color) {
#if BUILDFLAG(IS_LINUX)
// Dont' use native style border.
// Don't use native style border.
SetBorder(CreateDefaultBorder());
#endif
SetAccessibleRole(ax::mojom::Role::kPopUpButton);

View file

@ -99,7 +99,7 @@ bool ElectronDesktopWindowTreeHostWin::HandleMouseEventForCaption(
// Chromium lets the OS handle caption buttons for FrameMode::SYSTEM_DRAWN but
// again this does not generate the SC_MINIMIZE, SC_MAXIMIZE, SC_RESTORE
// commands when Non-client mouse events are generated for HTCLOSE,
// HTMINBUTTON, HTMAXBUTTON. To workaround this issue, wit this delegate we
// HTMINBUTTON, HTMAXBUTTON. To workaround this issue, with this delegate we
// let chromium handle the mouse events via
// HWNDMessageHandler::HandleMouseInputForCaption instead of the OS and this
// will generate the necessary system commands to perform caption button