Bug 1937785: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd
2025-01-21 06:53:01 +00:00
parent fe66f9ebc6
commit 92768a27aa
4 changed files with 9 additions and 12 deletions

View File

@@ -11419,7 +11419,8 @@ void PresShell::MaybeRecreateMobileViewportManager(bool aAfterInitialization) {
(int)*mvmType, uri ? uri->GetSpecOrDefault().get() : "(null)"));
}
if (BrowserChild* browserChild = BrowserChild::GetFrom(this)) {
mMobileViewportManager->UpdateKeyboardHeight(browserChild->GetKeyboardHeight());
mMobileViewportManager->UpdateKeyboardHeight(
browserChild->GetKeyboardHeight());
}
}

View File

@@ -129,11 +129,7 @@ class ScrollAnchorContainer;
// 039d8ffc-fa55-42d7-a53a-388cb129b052
#define NS_PRESSHELL_IID \
{ \
0x039d8ffc, 0xfa55, 0x42d7, { \
0xa5, 0x3a, 0x38, 0x8c, 0xb1, 0x29, 0xb0, 0x52 \
} \
}
{0x039d8ffc, 0xfa55, 0x42d7, {0xa5, 0x3a, 0x38, 0x8c, 0xb1, 0x29, 0xb0, 0x52}}
#undef NOISY_INTERRUPTIBLE_REFLOW

View File

@@ -8174,9 +8174,9 @@ bool nsLayoutUtils::UpdateCompositionBoundsForRCDRSF(
if (shouldSubtractDynamicToolbar == SubtractDynamicToolbar::Yes &&
// In `overlays-content` mode with the software keyboard visible, avoid
// flipping `shouldSubtractDynamicToolbar` below. We want to exclude
// the dynamic toolbar height from the visual viewport (composition bounds)
// height in this case to be consistent with the handling of the layout
// viewport height in ExpandHeightForDynamicToolbar(). Otherwise,
// the dynamic toolbar height from the visual viewport (composition
// bounds) height in this case to be consistent with the handling of the
// layout viewport height in ExpandHeightForDynamicToolbar(). Otherwise,
// the visual viewport will be taller than the layout viewport which can
// lead to rendering problems.
!isKeyboardVisibleOnOverlaysContent) {

View File

@@ -1773,7 +1773,7 @@ void nsPresContext::RecordInteractionTime(InteractionType aType,
// Array of references to the member variable of each time stamp
// for the different interaction types, keyed by InteractionType.
TimeStamp nsPresContext::*interactionTimes[] = {
TimeStamp nsPresContext::* interactionTimes[] = {
&nsPresContext::mFirstClickTime, &nsPresContext::mFirstKeyTime,
&nsPresContext::mFirstMouseMoveTime, &nsPresContext::mFirstScrollTime};
@@ -1809,7 +1809,7 @@ void nsPresContext::RecordInteractionTime(InteractionType aType,
// Check if we are recording the first of any of the interaction types.
bool isFirstInteraction = true;
for (TimeStamp nsPresContext::*memberPtr : interactionTimes) {
for (TimeStamp nsPresContext::* memberPtr : interactionTimes) {
TimeStamp& timeStamp = this->*(memberPtr);
if (!timeStamp.IsNull()) {
isFirstInteraction = false;