mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
4873 - Support the image map processing for <img ismap/> inside an <a/>
This commit is contained in:
parent
07520de970
commit
7a65b95ae5
7 changed files with 65 additions and 20 deletions
|
@ -27,7 +27,7 @@ pub trait Activatable : Copy {
|
|||
fn canceled_activation(&self);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#run-post-click-activation-steps
|
||||
fn activation_behavior(&self);
|
||||
fn activation_behavior(&self, event: JSRef<Event>, target: JSRef<EventTarget>);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#implicit-submission
|
||||
fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool);
|
||||
|
@ -60,7 +60,7 @@ pub trait Activatable : Copy {
|
|||
self.canceled_activation();
|
||||
} else {
|
||||
// post click activation
|
||||
self.activation_behavior();
|
||||
self.activation_behavior(event, target);
|
||||
}
|
||||
|
||||
// Step 6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue