Bug 1896516: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd 2024-05-30 06:36:30 +00:00
Родитель 9e63f43a87
Коммит 8b065c2f1c
3 изменённых файлов: 9 добавлений и 10 удалений

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

@ -786,12 +786,12 @@ class nsLayoutUtils {
float mVisibleThreshold;
FrameForPointOptions(Bits aBits, float aVisibleThreshold)
: mBits(aBits), mVisibleThreshold(aVisibleThreshold){};
: mBits(aBits), mVisibleThreshold(aVisibleThreshold) {};
MOZ_IMPLICIT FrameForPointOptions(Bits aBits)
: FrameForPointOptions(aBits, 1.0f) {}
FrameForPointOptions() : FrameForPointOptions(Bits()){};
FrameForPointOptions() : FrameForPointOptions(Bits()) {};
};
/**

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

@ -1151,10 +1151,9 @@ static nsIFrame* GetPageSequenceForCanvas(const nsIFrame* aCanvasFrame) {
return ps;
}
auto nsCSSRendering::FindEffectiveBackgroundColor(nsIFrame* aFrame,
bool aStopAtThemed,
bool aPreferBodyToCanvas)
-> EffectiveBackgroundColor {
auto nsCSSRendering::FindEffectiveBackgroundColor(
nsIFrame* aFrame, bool aStopAtThemed,
bool aPreferBodyToCanvas) -> EffectiveBackgroundColor {
MOZ_ASSERT(aFrame);
nsPresContext* pc = aFrame->PresContext();
auto BgColorIfNotTransparent = [&](nsIFrame* aFrame) -> Maybe<nscolor> {

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

@ -189,8 +189,8 @@ void Theme::LookAndFeelChanged() {
}
}
auto Theme::GetDPIRatio(nsPresContext* aPc, StyleAppearance aAppearance)
-> DPIRatio {
auto Theme::GetDPIRatio(nsPresContext* aPc,
StyleAppearance aAppearance) -> DPIRatio {
// Widgets react to zoom, except scrollbars.
if (IsWidgetScrollbarPart(aAppearance)) {
return GetScrollbarDrawing().GetDPIRatioForScrollbarPart(aPc);
@ -198,8 +198,8 @@ auto Theme::GetDPIRatio(nsPresContext* aPc, StyleAppearance aAppearance)
return DPIRatio(float(AppUnitsPerCSSPixel()) / aPc->AppUnitsPerDevPixel());
}
auto Theme::GetDPIRatio(nsIFrame* aFrame, StyleAppearance aAppearance)
-> DPIRatio {
auto Theme::GetDPIRatio(nsIFrame* aFrame,
StyleAppearance aAppearance) -> DPIRatio {
return GetDPIRatio(aFrame->PresContext(), aAppearance);
}