4873 - Support the image map processing for <img ismap/> inside an <a/>

This commit is contained in:
Shing Lyu 2015-03-12 20:46:16 +08:00
parent 07520de970
commit 7a65b95ae5
7 changed files with 65 additions and 20 deletions

View file

@ -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