mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Warning police.
This commit is contained in:
parent
1eea39a808
commit
ece8791c26
8 changed files with 16 additions and 19 deletions
|
@ -24,7 +24,6 @@ use geom::{Point2D, Rect, Size2D};
|
|||
use servo_net::image::base::Image;
|
||||
use servo_util::range::Range;
|
||||
use std::arc::ARC;
|
||||
use std::arc;
|
||||
|
||||
/// A list of rendering operations to be performed.
|
||||
pub struct DisplayList<E> {
|
||||
|
|
|
@ -3,15 +3,12 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use platform::{Application, Window};
|
||||
use script::dom::event::{Event, ClickEvent, MouseDownEvent, MouseUpEvent, ResizeEvent};
|
||||
use script::script_task::{LoadMsg, SendEventMsg};
|
||||
use script::layout_interface::{LayoutChan, RouteScriptMsg};
|
||||
use script::compositor_interface::{ReadyState, ScriptListener};
|
||||
use windowing::{ApplicationMethods, WindowMethods, WindowMouseEvent, WindowClickEvent};
|
||||
use windowing::{WindowMouseDownEvent, WindowMouseUpEvent};
|
||||
|
||||
use script::dom::event::{Event, ClickEvent, MouseDownEvent, MouseUpEvent, ResizeEvent};
|
||||
use script::compositor_interface::{ReadyState, ScriptListener};
|
||||
use script::script_task::{ScriptChan, SendEventMsg};
|
||||
use script::layout_interface::{LayoutChan, RouteScriptMsg};
|
||||
|
||||
use azure::azure_hl::{DataSourceSurface, DrawTarget, SourceSurfaceMethods, current_gl_context};
|
||||
use azure::azure::AzGLContext;
|
||||
use core::cell::Cell;
|
||||
|
|
|
@ -42,19 +42,19 @@ pub trait LayoutAuxMethods {
|
|||
impl LayoutAuxMethods for AbstractNode<LayoutView> {
|
||||
// FIXME (Rust #3080): These unsafe blocks are *not* unused!
|
||||
pub fn layout_data(self) -> @mut LayoutData {
|
||||
unsafe {
|
||||
/*unsafe {*/
|
||||
self.unsafe_layout_data()
|
||||
}
|
||||
/*}*/
|
||||
}
|
||||
pub fn has_layout_data(self) -> bool {
|
||||
unsafe {
|
||||
/*unsafe {*/
|
||||
self.unsafe_has_layout_data()
|
||||
}
|
||||
/*}*/
|
||||
}
|
||||
pub fn set_layout_data(self, data: @mut LayoutData) {
|
||||
unsafe {
|
||||
/*unsafe {*/
|
||||
self.unsafe_set_layout_data(data)
|
||||
}
|
||||
/*}*/
|
||||
}
|
||||
|
||||
/// If none exists, creates empty layout data for the node (the reader-auxiliary
|
||||
|
|
|
@ -59,7 +59,8 @@ impl WindowMethods<Application> for Window {
|
|||
/// Creates a new window.
|
||||
pub fn new(_: &Application) -> @mut Window {
|
||||
// Create the GLUT window.
|
||||
unsafe { glut::bindgen::glutInitWindowSize(800, 600); }
|
||||
// FIXME (Rust #3080): These unsafe blocks are *not* unused!
|
||||
/*unsafe { */glut::bindgen::glutInitWindowSize(800, 600);/* }*/
|
||||
let glut_window = glut::create_window(~"Servo");
|
||||
|
||||
// Create our window object.
|
||||
|
@ -117,7 +118,7 @@ impl WindowMethods<Application> for Window {
|
|||
window.handle_mouse(button, state, x, y);
|
||||
}
|
||||
}
|
||||
do glut::mouse_wheel_func |wheel, direction, x, y| {
|
||||
do glut::mouse_wheel_func |wheel, direction, _x, _y| {
|
||||
let delta = if HAVE_PRECISE_MOUSE_WHEEL {
|
||||
(direction as f32) / 10000.0
|
||||
} else {
|
||||
|
|
|
@ -546,7 +546,7 @@ impl ScriptContext {
|
|||
}
|
||||
}
|
||||
|
||||
ClickEvent(button, point) => {
|
||||
ClickEvent(_button, point) => {
|
||||
debug!("ClickEvent: clicked at %?", point);
|
||||
let root = match self.root_frame {
|
||||
Some(ref frame) => frame.document.root,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 04976e3fae0ef0332036082ab8770fb1ad2c10ca
|
||||
Subproject commit b754fd3d16f6acc80ae2252a310f8c71070366c3
|
|
@ -1 +1 @@
|
|||
Subproject commit d722188de3876ed748382965eb4f300fc1b78bf8
|
||||
Subproject commit da248d3f5b3ed6d9e804c543563be8e34baf1673
|
|
@ -1 +1 @@
|
|||
Subproject commit 7415c2829e77812411a2ae9cf448c0e288035463
|
||||
Subproject commit 5c00e2b7f471e70a892aeae36b4c77b78227823f
|
Loading…
Add table
Add a link
Reference in a new issue