mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
style: Rustfmt servo/. r=zrhoffman
$ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
This commit is contained in:
parent
68cbe6833d
commit
ad72081ac8
70 changed files with 665 additions and 448 deletions
|
@ -42,6 +42,8 @@ pub use self::align::{
|
|||
#[cfg(feature = "gecko")]
|
||||
pub use self::align::{AlignSelf, JustifySelf};
|
||||
pub use self::angle::Angle;
|
||||
pub use self::animation::{AnimationIterationCount, AnimationName, AnimationTimeline};
|
||||
pub use self::animation::{ScrollAxis, ScrollTimelineName, TransitionProperty, ViewTimelineInset};
|
||||
pub use self::background::{BackgroundRepeat, BackgroundSize};
|
||||
pub use self::basic_shape::FillRule;
|
||||
pub use self::border::{BorderCornerRadius, BorderRadius, BorderSpacing};
|
||||
|
@ -50,6 +52,7 @@ pub use self::border::{BorderImageSlice, BorderImageWidth};
|
|||
pub use self::box_::{
|
||||
Appearance, BreakBetween, BreakWithin, Clear, ContainIntrinsicSize, ContentVisibility, Float,
|
||||
};
|
||||
pub use self::box_::{BaselineSource, TouchAction, VerticalAlign, WillChange};
|
||||
pub use self::box_::{
|
||||
Contain, ContainerName, ContainerType, Display, LineClamp, Overflow, OverflowAnchor,
|
||||
};
|
||||
|
@ -57,7 +60,6 @@ pub use self::box_::{OverflowClipBox, OverscrollBehavior, Perspective, Resize, S
|
|||
pub use self::box_::{
|
||||
ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop, ScrollSnapStrictness, ScrollSnapType,
|
||||
};
|
||||
pub use self::box_::{BaselineSource, TouchAction, VerticalAlign, WillChange};
|
||||
pub use self::color::{
|
||||
Color, ColorOrAuto, ColorPropertyValue, ColorScheme, ForcedColorAdjust, PrintColorAdjust,
|
||||
};
|
||||
|
@ -106,8 +108,6 @@ pub use self::transform::{TransformOrigin, TransformStyle, Translate};
|
|||
#[cfg(feature = "gecko")]
|
||||
pub use self::ui::CursorImage;
|
||||
pub use self::ui::{BoolInteger, Cursor, UserSelect};
|
||||
pub use self::animation::{AnimationIterationCount, AnimationName, AnimationTimeline};
|
||||
pub use self::animation::{ScrollAxis, ScrollTimelineName, TransitionProperty, ViewTimelineInset};
|
||||
pub use super::specified::TextTransform;
|
||||
pub use super::specified::ViewportVariant;
|
||||
pub use super::specified::{BorderStyle, TextDecorationLine};
|
||||
|
@ -390,7 +390,12 @@ impl<'a> Context<'a> {
|
|||
/// Apply text-zoom if enabled.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn maybe_zoom_text(&self, size: CSSPixelLength) -> CSSPixelLength {
|
||||
if self.style().get_font().clone__x_text_scale().text_zoom_enabled() {
|
||||
if self
|
||||
.style()
|
||||
.get_font()
|
||||
.clone__x_text_scale()
|
||||
.text_zoom_enabled()
|
||||
{
|
||||
self.device().zoom_text(size)
|
||||
} else {
|
||||
size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue