Warning police.

This commit is contained in:
Jack Moffitt 2013-06-17 13:54:42 -06:00
parent 1eea39a808
commit ece8791c26
8 changed files with 16 additions and 19 deletions

View file

@ -24,7 +24,6 @@ use geom::{Point2D, Rect, Size2D};
use servo_net::image::base::Image; use servo_net::image::base::Image;
use servo_util::range::Range; use servo_util::range::Range;
use std::arc::ARC; use std::arc::ARC;
use std::arc;
/// A list of rendering operations to be performed. /// A list of rendering operations to be performed.
pub struct DisplayList<E> { pub struct DisplayList<E> {

View file

@ -3,15 +3,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use platform::{Application, Window}; use platform::{Application, Window};
use script::dom::event::{Event, ClickEvent, MouseDownEvent, MouseUpEvent, ResizeEvent};
use script::script_task::{LoadMsg, SendEventMsg}; 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::{ApplicationMethods, WindowMethods, WindowMouseEvent, WindowClickEvent};
use windowing::{WindowMouseDownEvent, WindowMouseUpEvent}; 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_hl::{DataSourceSurface, DrawTarget, SourceSurfaceMethods, current_gl_context};
use azure::azure::AzGLContext; use azure::azure::AzGLContext;
use core::cell::Cell; use core::cell::Cell;

View file

@ -42,19 +42,19 @@ pub trait LayoutAuxMethods {
impl LayoutAuxMethods for AbstractNode<LayoutView> { impl LayoutAuxMethods for AbstractNode<LayoutView> {
// FIXME (Rust #3080): These unsafe blocks are *not* unused! // FIXME (Rust #3080): These unsafe blocks are *not* unused!
pub fn layout_data(self) -> @mut LayoutData { pub fn layout_data(self) -> @mut LayoutData {
unsafe { /*unsafe {*/
self.unsafe_layout_data() self.unsafe_layout_data()
} /*}*/
} }
pub fn has_layout_data(self) -> bool { pub fn has_layout_data(self) -> bool {
unsafe { /*unsafe {*/
self.unsafe_has_layout_data() self.unsafe_has_layout_data()
} /*}*/
} }
pub fn set_layout_data(self, data: @mut LayoutData) { pub fn set_layout_data(self, data: @mut LayoutData) {
unsafe { /*unsafe {*/
self.unsafe_set_layout_data(data) self.unsafe_set_layout_data(data)
} /*}*/
} }
/// If none exists, creates empty layout data for the node (the reader-auxiliary /// If none exists, creates empty layout data for the node (the reader-auxiliary

View file

@ -59,7 +59,8 @@ impl WindowMethods<Application> for Window {
/// Creates a new window. /// Creates a new window.
pub fn new(_: &Application) -> @mut Window { pub fn new(_: &Application) -> @mut Window {
// Create the GLUT 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"); let glut_window = glut::create_window(~"Servo");
// Create our window object. // Create our window object.
@ -117,7 +118,7 @@ impl WindowMethods<Application> for Window {
window.handle_mouse(button, state, x, y); 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 { let delta = if HAVE_PRECISE_MOUSE_WHEEL {
(direction as f32) / 10000.0 (direction as f32) / 10000.0
} else { } else {

View file

@ -546,7 +546,7 @@ impl ScriptContext {
} }
} }
ClickEvent(button, point) => { ClickEvent(_button, point) => {
debug!("ClickEvent: clicked at %?", point); debug!("ClickEvent: clicked at %?", point);
let root = match self.root_frame { let root = match self.root_frame {
Some(ref frame) => frame.document.root, 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