aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-03-20 08:00:53 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-03-20 08:00:53 +0530
commit8c92e3f32b9aa6a75dc8980da49359ea63f9d67a (patch)
tree3e2cb68508bced56881aef01bd21d0a8164ebf19 /components/gfx
parent8e95f54501efd74007bb19009b6d2b7522872d57 (diff)
parent08083f1c9d08de0e19e16efb9e6923612706032c (diff)
downloadservo-8c92e3f32b9aa6a75dc8980da49359ea63f9d67a.tar.gz
servo-8c92e3f32b9aa6a75dc8980da49359ea63f9d67a.zip
Auto merge of #10075 - Ms2ger:deny-unsafe, r=jdm
Deny unsafe code in more crates. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10075) <!-- Reviewable:end -->
Diffstat (limited to 'components/gfx')
-rw-r--r--components/gfx/lib.rs7
-rw-r--r--components/gfx/paint_context.rs1
-rw-r--r--components/gfx/paint_thread.rs1
3 files changed, 6 insertions, 3 deletions
diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs
index 74db34a03d3..45b164cbe88 100644
--- a/components/gfx/lib.rs
+++ b/components/gfx/lib.rs
@@ -18,6 +18,8 @@
#![plugin(plugins)]
#![plugin(serde_macros)]
+#![deny(unsafe_code)]
+
extern crate alloc;
extern crate app_units;
extern crate azure;
@@ -87,7 +89,6 @@ mod filters;
mod paint_context;
#[deny(unsafe_code)]
-#[path = "display_list/mod.rs"]
pub mod display_list;
// Fonts
@@ -99,9 +100,9 @@ pub mod font_template;
pub mod paint_thread;
// Platform-specific implementations.
-#[path = "platform/mod.rs"]
+#[allow(unsafe_code)]
pub mod platform;
// Text
-#[path = "text/mod.rs"]
+#[allow(unsafe_code)]
pub mod text;
diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs
index e020336429d..9fded4e8651 100644
--- a/components/gfx/paint_context.rs
+++ b/components/gfx/paint_context.rs
@@ -1774,6 +1774,7 @@ trait ScaledFontExtensionMethods {
}
impl ScaledFontExtensionMethods for ScaledFont {
+ #[allow(unsafe_code)]
fn draw_text(&self,
draw_target: &DrawTarget,
run: &TextRun,
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs
index b427ae70ea3..a0088fe5313 100644
--- a/components/gfx/paint_thread.rs
+++ b/components/gfx/paint_thread.rs
@@ -450,6 +450,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
}, ConstellationMsg::Failure(failure_msg), c);
}
+ #[allow(unsafe_code)]
fn start(&mut self) {
debug!("PaintThread: beginning painting loop");