зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1896516: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
Родитель
9e63f43a87
Коммит
8b065c2f1c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче