mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
79a9a23449
commit
0e37316f1a
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user