Merge pull request #1543 from lightpanda-io/zig_fmt
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled

zig fmt
This commit is contained in:
Karl Seguin
2026-02-14 14:20:43 +08:00
committed by GitHub

View File

@@ -639,7 +639,7 @@ const ActivationState = struct {
const Input = Element.Html.Input; const Input = Element.Html.Input;
fn create(event: *const Event, target: *Node, page: *Page) ? ActivationState { fn create(event: *const Event, target: *Node, page: *Page) ?ActivationState {
if (event._type_string.eql(comptime .wrap("click")) == false) { if (event._type_string.eql(comptime .wrap("click")) == false) {
return null; return null;
} }
@@ -730,15 +730,15 @@ const ActivationState = struct {
} }
// Check if same form context // Check if same form context
const other_form = other_input.getForm(page); const other_form = other_input.getForm(page);
if (form) |f| { if (form) |f| {
const of = other_form orelse continue; const of = other_form orelse continue;
if (f != of) { if (f != of) {
continue; // Different forms continue; // Different forms
} }
} else if (other_form != null) { } else if (other_form != null) {
continue; // form is null but other has a form continue; // form is null but other has a form
} }
if (other_input._checked) { if (other_input._checked) {
return other_input; return other_input;