From 1619a5f70088e69bac82e51d2d7b77d264c68688 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Fri, 25 Sep 2020 09:24:50 +0000 Subject: [PATCH] Bug 1666617 - Fix a typo in the word viewport. r=smaug Depends on D91379 Differential Revision: https://phabricator.services.mozilla.com/D91380 --- layout/base/nsRefreshDriver.cpp | 6 +++--- layout/base/nsRefreshDriver.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index df9759ed70b9..05e2300a3818 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -1631,7 +1631,7 @@ auto nsRefreshDriver::GetReasonsToTick() const -> TickReasons { reasons |= TickReasons::eHasScrollEvents; } if (!mVisualViewportScrollEvents.IsEmpty()) { - reasons |= TickReasons::eHasVisualVieportScrollEvents; + reasons |= TickReasons::eHasVisualViewportScrollEvents; } return reasons; } @@ -1660,8 +1660,8 @@ void nsRefreshDriver::AppendTickReasonsToString(TickReasons aReasons, if (aReasons & TickReasons::eHasScrollEvents) { aStr.AppendLiteral(" HasScrollEvents"); } - if (aReasons & TickReasons::eHasVisualVieportScrollEvents) { - aStr.AppendLiteral(" HasVisualVieportScrollEvents"); + if (aReasons & TickReasons::eHasVisualViewportScrollEvents) { + aStr.AppendLiteral(" HasVisualViewportScrollEvents"); } } diff --git a/layout/base/nsRefreshDriver.h b/layout/base/nsRefreshDriver.h index cc58cae21342..eeeee19335d9 100644 --- a/layout/base/nsRefreshDriver.h +++ b/layout/base/nsRefreshDriver.h @@ -415,7 +415,7 @@ class nsRefreshDriver final : public mozilla::layers::TransactionIdAllocator, eNeedsToUpdateIntersectionObservations = 1 << 2, eHasVisualViewportResizeEvents = 1 << 3, eHasScrollEvents = 1 << 4, - eHasVisualVieportScrollEvents = 1 << 5, + eHasVisualViewportScrollEvents = 1 << 5, }; private: