mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix match_refs and let_returns in layout, address review changes
This commit is contained in:
parent
5c24da3e2d
commit
8e2c37a542
12 changed files with 54 additions and 62 deletions
|
@ -13,9 +13,8 @@ use dom::node::Node;
|
|||
use dom::virtualmethods::vtable_for;
|
||||
|
||||
// See https://dom.spec.whatwg.org/#concept-event-dispatch for the full dispatch algorithm
|
||||
pub fn dispatch_event(target: &EventTarget,
|
||||
pseudo_target: Option<&EventTarget>,
|
||||
event: &Event) -> bool {
|
||||
pub fn dispatch_event(target: &EventTarget, pseudo_target: Option<&EventTarget>,
|
||||
event: &Event) -> bool {
|
||||
assert!(!event.dispatching());
|
||||
assert!(event.initialized());
|
||||
|
||||
|
|
|
@ -356,9 +356,8 @@ fn broadcast_radio_checked(broadcaster: &HTMLInputElement, group: Option<&str>)
|
|||
do_broadcast(doc_node, broadcaster, owner.r(), group)
|
||||
}
|
||||
|
||||
fn in_same_group(other: &HTMLInputElement,
|
||||
owner: Option<&HTMLFormElement>,
|
||||
group: Option<&str>) -> bool {
|
||||
fn in_same_group(other: &HTMLInputElement, owner: Option<&HTMLFormElement>,
|
||||
group: Option<&str>) -> bool {
|
||||
let other_owner = other.form_owner();
|
||||
let other_owner = other_owner.r();
|
||||
other.input_type.get() == InputType::InputRadio &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue