mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
script: Limit public exports. (#34915)
* script: Restrict reexport visibility of DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Mass pub->pub(crate) conversion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Hide existing dead code warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix unit tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * More formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
f220d6d3a5
commit
c94d909a86
585 changed files with 5411 additions and 5013 deletions
|
@ -15,7 +15,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct ANGLEInstancedArrays {
|
||||
pub(crate) struct ANGLEInstancedArrays {
|
||||
reflector_: Reflector,
|
||||
ctx: Dom<WebGLRenderingContext>,
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct EXTBlendMinmax {
|
||||
pub(crate) struct EXTBlendMinmax {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct EXTColorBufferHalfFloat {
|
||||
pub(crate) struct EXTColorBufferHalfFloat {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct EXTFragDepth {
|
||||
pub(crate) struct EXTFragDepth {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct EXTShaderTextureLod {
|
||||
pub(crate) struct EXTShaderTextureLod {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct EXTTextureFilterAnisotropic {
|
||||
pub(crate) struct EXTTextureFilterAnisotropic {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
use super::{WebGLExtension, WebGLExtensionSpec, WebGLExtensions};
|
||||
use crate::dom::bindings::codegen::Bindings::WebGLRenderingContextBinding::WebGLRenderingContextConstants as constants;
|
||||
|
||||
pub mod angleinstancedarrays;
|
||||
pub mod extblendminmax;
|
||||
pub mod extcolorbufferhalffloat;
|
||||
pub mod extfragdepth;
|
||||
pub mod extshadertexturelod;
|
||||
pub mod exttexturefilteranisotropic;
|
||||
pub mod oeselementindexuint;
|
||||
pub mod oesstandardderivatives;
|
||||
pub mod oestexturefloat;
|
||||
pub mod oestexturefloatlinear;
|
||||
pub mod oestexturehalffloat;
|
||||
pub mod oestexturehalffloatlinear;
|
||||
pub mod oesvertexarrayobject;
|
||||
pub mod webglcolorbufferfloat;
|
||||
pub mod webglcompressedtextureetc1;
|
||||
pub mod webglcompressedtextures3tc;
|
||||
pub(crate) mod angleinstancedarrays;
|
||||
pub(crate) mod extblendminmax;
|
||||
pub(crate) mod extcolorbufferhalffloat;
|
||||
pub(crate) mod extfragdepth;
|
||||
pub(crate) mod extshadertexturelod;
|
||||
pub(crate) mod exttexturefilteranisotropic;
|
||||
pub(crate) mod oeselementindexuint;
|
||||
pub(crate) mod oesstandardderivatives;
|
||||
pub(crate) mod oestexturefloat;
|
||||
pub(crate) mod oestexturefloatlinear;
|
||||
pub(crate) mod oestexturehalffloat;
|
||||
pub(crate) mod oestexturehalffloatlinear;
|
||||
pub(crate) mod oesvertexarrayobject;
|
||||
pub(crate) mod webglcolorbufferfloat;
|
||||
pub(crate) mod webglcompressedtextureetc1;
|
||||
pub(crate) mod webglcompressedtextures3tc;
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESElementIndexUint {
|
||||
pub(crate) struct OESElementIndexUint {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESStandardDerivatives {
|
||||
pub(crate) struct OESStandardDerivatives {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESTextureFloat {
|
||||
pub(crate) struct OESTextureFloat {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESTextureFloatLinear {
|
||||
pub(crate) struct OESTextureFloatLinear {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESTextureHalfFloat {
|
||||
pub(crate) struct OESTextureHalfFloat {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESTextureHalfFloatLinear {
|
||||
pub(crate) struct OESTextureHalfFloatLinear {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ use crate::dom::webglvertexarrayobjectoes::WebGLVertexArrayObjectOES;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OESVertexArrayObject {
|
||||
pub(crate) struct OESVertexArrayObject {
|
||||
reflector_: Reflector,
|
||||
ctx: Dom<WebGLRenderingContext>,
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct WEBGLColorBufferFloat {
|
||||
pub(crate) struct WEBGLColorBufferFloat {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webgltexture::{TexCompression, TexCompressionValidation};
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct WEBGLCompressedTextureETC1 {
|
||||
pub(crate) struct WEBGLCompressedTextureETC1 {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ use crate::dom::webgltexture::{TexCompression, TexCompressionValidation};
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct WEBGLCompressedTextureS3TC {
|
||||
pub(crate) struct WEBGLCompressedTextureS3TC {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue