servo: Merge #9352 - Convert private types to public (from mattkuo:cleanup-private-types); r=nox

fixes #9347

Source-Repo: https://github.com/servo/servo
Source-Revision: 380541bd48bb7ce0b36a8be90f756734e531ca5f
This commit is contained in:
Matthew Kuo 2016-01-18 01:29:01 +05:01
Родитель 79a9a23449
Коммит 0e37316f1a
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -54,14 +54,14 @@ use util::print_tree::PrintTree;
use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg};
#[derive(Debug, PartialEq)]
enum UnableToComposite {
pub enum UnableToComposite {
NoContext,
WindowUnprepared,
NotReadyToPaintImage(NotReadyToPaint),
}
#[derive(Debug, PartialEq)]
enum NotReadyToPaint {
pub enum NotReadyToPaint {
LayerHasOutstandingPaintMessages,
MissingRoot,
PendingSubpages(usize),
@ -225,7 +225,7 @@ struct HitTestResult {
point: TypedPoint2D<LayerPixel, f32>,
}
struct PipelineDetails {
pub struct PipelineDetails {
/// The pipeline associated with this PipelineDetails object.
pipeline: Option<CompositionPipeline>,
@ -251,7 +251,7 @@ impl PipelineDetails {
}
#[derive(Clone, Copy, PartialEq, Debug)]
enum CompositeTarget {
pub enum CompositeTarget {
/// Normal composition to a window
Window,

Просмотреть файл

@ -31,7 +31,7 @@ pub trait Actor: Any + ActorAsAny {
fn name(&self) -> String;
}
trait ActorAsAny {
pub trait ActorAsAny {
fn actor_as_any(&self) -> &Any;
fn actor_as_any_mut(&mut self) -> &mut Any;
}

Просмотреть файл

@ -35,7 +35,7 @@ struct ListTabsReply {
}
#[derive(RustcEncodable)]
struct RootActorMsg {
pub struct RootActorMsg {
from: String,
applicationType: String,
traits: ActorTraits,

Просмотреть файл

@ -18,7 +18,7 @@ use util::mem::{HeapSizeOf, heap_size_of};
// We pass a |User| struct -- via an opaque |void*| -- to FreeType each time a new instance is
// created. FreeType passes it back to the ft_alloc/ft_realloc/ft_free callbacks. We use it to
// record the memory usage of each FreeType instance.
struct User {
pub struct User {
size: usize,
}