| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index ab643c9f17c894ddb04e088a97fdc0386aa955bf..3cecee2be8b4fbdafda459a24b8696c3f28c88e5 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -130,6 +130,7 @@
|
| #include "core/workers/WorkerThread.h"
|
| #include "platform/Cursor.h"
|
| #include "platform/Language.h"
|
| +#include "platform/PlatformKeyboardEvent.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/geometry/IntRect.h"
|
| @@ -218,6 +219,7 @@ void Internals::resetToConsistentState(Page* page)
|
| scrollingCoordinator->reset();
|
|
|
| page->deprecatedLocalMainFrame()->view()->clear();
|
| + PlatformKeyboardEvent::setCurrentCapsLockState(PlatformKeyboardEvent::OverrideCapsLockState::Default);
|
| }
|
|
|
| Internals::Internals(Document* document)
|
| @@ -2436,4 +2438,10 @@ ClientRectList* Internals::focusRingRects(Element* element)
|
| return ClientRectList::create(rects);
|
| }
|
|
|
| +void Internals::setCapsLockState(bool enabled)
|
| +{
|
| + PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
|
| + PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent::OverrideCapsLockState::Off);
|
| +}
|
| +
|
| } // namespace blink
|
|
|