mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix warnings.
This commit is contained in:
parent
39a36a0098
commit
208c05f944
4 changed files with 3 additions and 5 deletions
|
@ -617,13 +617,13 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
||||||
pipeline_id, event_type, button, point)) => {
|
pipeline_id, event_type, button, point)) => {
|
||||||
if let Some(pipeline) = self.pipelines.get(&pipeline_id) {
|
if let Some(pipeline) = self.pipelines.get(&pipeline_id) {
|
||||||
pipeline.script_chan.send(ConstellationControlMsg::SendEvent(pipeline_id,
|
pipeline.script_chan.send(ConstellationControlMsg::SendEvent(pipeline_id,
|
||||||
CompositorEvent::MouseButtonEvent(event_type, button, point)));
|
CompositorEvent::MouseButtonEvent(event_type, button, point))).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Request::Script(FromScriptMsg::ForwardMouseMoveEvent(pipeline_id, point)) => {
|
Request::Script(FromScriptMsg::ForwardMouseMoveEvent(pipeline_id, point)) => {
|
||||||
if let Some(pipeline) = self.pipelines.get(&pipeline_id) {
|
if let Some(pipeline) = self.pipelines.get(&pipeline_id) {
|
||||||
pipeline.script_chan.send(ConstellationControlMsg::SendEvent(pipeline_id,
|
pipeline.script_chan.send(ConstellationControlMsg::SendEvent(pipeline_id,
|
||||||
CompositorEvent::MouseMoveEvent(Some(point))));
|
CompositorEvent::MouseMoveEvent(Some(point)))).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Request::Script(FromScriptMsg::GetClipboardContents(sender)) => {
|
Request::Script(FromScriptMsg::GetClipboardContents(sender)) => {
|
||||||
|
|
|
@ -43,7 +43,7 @@ use style::properties::ComputedValues;
|
||||||
use text::TextRun;
|
use text::TextRun;
|
||||||
use text::glyph::CharIndex;
|
use text::glyph::CharIndex;
|
||||||
use util::cursor::Cursor;
|
use util::cursor::Cursor;
|
||||||
use util::geometry::{self, MAX_RECT};
|
use util::geometry::MAX_RECT;
|
||||||
use util::linked_list::prepend_from;
|
use util::linked_list::prepend_from;
|
||||||
use util::mem::HeapSizeOf;
|
use util::mem::HeapSizeOf;
|
||||||
use util::opts;
|
use util::opts;
|
||||||
|
|
|
@ -13,7 +13,6 @@ use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnErrorEventHandlerNonNull;
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnErrorEventHandlerNonNull;
|
||||||
use dom::bindings::codegen::Bindings::EventTargetBinding::EventTargetMethods;
|
use dom::bindings::codegen::Bindings::EventTargetBinding::EventTargetMethods;
|
||||||
use dom::bindings::codegen::Bindings::HTMLIFrameElementBinding::HTMLIFrameElementMethods;
|
|
||||||
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
|
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
|
||||||
use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilter;
|
use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilter;
|
||||||
use dom::bindings::codegen::Bindings::PerformanceBinding::PerformanceMethods;
|
use dom::bindings::codegen::Bindings::PerformanceBinding::PerformanceMethods;
|
||||||
|
|
|
@ -7,7 +7,6 @@ use euclid::point::Point2D;
|
||||||
use euclid::rect::Rect;
|
use euclid::rect::Rect;
|
||||||
use euclid::size::Size2D;
|
use euclid::size::Size2D;
|
||||||
use std::i32;
|
use std::i32;
|
||||||
use std::ops::Add;
|
|
||||||
|
|
||||||
// Units for use with euclid::length and euclid::scale_factor.
|
// Units for use with euclid::length and euclid::scale_factor.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue