mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
This is implement Hover Event. If over element, currently full reflow. after PR, will make partial reflow.
This commit is contained in:
parent
d2f8b593a9
commit
c8d503898a
14 changed files with 171 additions and 20 deletions
|
@ -57,6 +57,7 @@ pub enum LayoutQuery {
|
|||
ContentBoxesQuery(AbstractNode, Chan<ContentBoxesResponse>),
|
||||
/// Requests the node containing the point of interest
|
||||
HitTestQuery(AbstractNode, Point2D<f32>, Chan<Result<HitTestResponse, ()>>),
|
||||
MouseOverQuery(AbstractNode, Point2D<f32>, Chan<Result<MouseOverResponse, ()>>),
|
||||
}
|
||||
|
||||
/// The address of a node. Layout sends these back. They must be validated via
|
||||
|
@ -66,6 +67,7 @@ pub type UntrustedNodeAddress = *c_void;
|
|||
pub struct ContentBoxResponse(Rect<Au>);
|
||||
pub struct ContentBoxesResponse(~[Rect<Au>]);
|
||||
pub struct HitTestResponse(UntrustedNodeAddress);
|
||||
pub struct MouseOverResponse(~[UntrustedNodeAddress]);
|
||||
|
||||
/// Determines which part of the
|
||||
#[deriving(Eq, Ord)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue