Bug 1937785: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
@@ -11419,7 +11419,8 @@ void PresShell::MaybeRecreateMobileViewportManager(bool aAfterInitialization) {
|
|||||||
(int)*mvmType, uri ? uri->GetSpecOrDefault().get() : "(null)"));
|
(int)*mvmType, uri ? uri->GetSpecOrDefault().get() : "(null)"));
|
||||||
}
|
}
|
||||||
if (BrowserChild* browserChild = BrowserChild::GetFrom(this)) {
|
if (BrowserChild* browserChild = BrowserChild::GetFrom(this)) {
|
||||||
mMobileViewportManager->UpdateKeyboardHeight(browserChild->GetKeyboardHeight());
|
mMobileViewportManager->UpdateKeyboardHeight(
|
||||||
|
browserChild->GetKeyboardHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,12 +128,8 @@ class ScrollAnchorContainer;
|
|||||||
} // namespace layout
|
} // namespace layout
|
||||||
|
|
||||||
// 039d8ffc-fa55-42d7-a53a-388cb129b052
|
// 039d8ffc-fa55-42d7-a53a-388cb129b052
|
||||||
#define NS_PRESSHELL_IID \
|
#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
|
#undef NOISY_INTERRUPTIBLE_REFLOW
|
||||||
|
|
||||||
|
|||||||
@@ -8174,9 +8174,9 @@ bool nsLayoutUtils::UpdateCompositionBoundsForRCDRSF(
|
|||||||
if (shouldSubtractDynamicToolbar == SubtractDynamicToolbar::Yes &&
|
if (shouldSubtractDynamicToolbar == SubtractDynamicToolbar::Yes &&
|
||||||
// In `overlays-content` mode with the software keyboard visible, avoid
|
// In `overlays-content` mode with the software keyboard visible, avoid
|
||||||
// flipping `shouldSubtractDynamicToolbar` below. We want to exclude
|
// flipping `shouldSubtractDynamicToolbar` below. We want to exclude
|
||||||
// the dynamic toolbar height from the visual viewport (composition bounds)
|
// the dynamic toolbar height from the visual viewport (composition
|
||||||
// height in this case to be consistent with the handling of the layout
|
// bounds) height in this case to be consistent with the handling of the
|
||||||
// viewport height in ExpandHeightForDynamicToolbar(). Otherwise,
|
// layout viewport height in ExpandHeightForDynamicToolbar(). Otherwise,
|
||||||
// the visual viewport will be taller than the layout viewport which can
|
// the visual viewport will be taller than the layout viewport which can
|
||||||
// lead to rendering problems.
|
// lead to rendering problems.
|
||||||
!isKeyboardVisibleOnOverlaysContent) {
|
!isKeyboardVisibleOnOverlaysContent) {
|
||||||
|
|||||||
@@ -1773,7 +1773,7 @@ void nsPresContext::RecordInteractionTime(InteractionType aType,
|
|||||||
|
|
||||||
// Array of references to the member variable of each time stamp
|
// Array of references to the member variable of each time stamp
|
||||||
// for the different interaction types, keyed by InteractionType.
|
// for the different interaction types, keyed by InteractionType.
|
||||||
TimeStamp nsPresContext::*interactionTimes[] = {
|
TimeStamp nsPresContext::* interactionTimes[] = {
|
||||||
&nsPresContext::mFirstClickTime, &nsPresContext::mFirstKeyTime,
|
&nsPresContext::mFirstClickTime, &nsPresContext::mFirstKeyTime,
|
||||||
&nsPresContext::mFirstMouseMoveTime, &nsPresContext::mFirstScrollTime};
|
&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.
|
// Check if we are recording the first of any of the interaction types.
|
||||||
bool isFirstInteraction = true;
|
bool isFirstInteraction = true;
|
||||||
for (TimeStamp nsPresContext::*memberPtr : interactionTimes) {
|
for (TimeStamp nsPresContext::* memberPtr : interactionTimes) {
|
||||||
TimeStamp& timeStamp = this->*(memberPtr);
|
TimeStamp& timeStamp = this->*(memberPtr);
|
||||||
if (!timeStamp.IsNull()) {
|
if (!timeStamp.IsNull()) {
|
||||||
isFirstInteraction = false;
|
isFirstInteraction = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user