Title: [281525] trunk/Source/WebCore
Revision
281525
Author
[email protected]
Date
2021-08-24 16:22:16 -0700 (Tue, 24 Aug 2021)

Log Message

Use RefPtr instead of auto* in EventHandler::defaultKeyboardEventHandler.
https://bugs.webkit.org/show_bug.cgi?id=229475

Unreviewed.

* page/EventHandler.cpp:
(WebCore::EventHandler::defaultKeyboardEventHandler):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (281524 => 281525)


--- trunk/Source/WebCore/ChangeLog	2021-08-24 23:12:08 UTC (rev 281524)
+++ trunk/Source/WebCore/ChangeLog	2021-08-24 23:22:16 UTC (rev 281525)
@@ -1,3 +1,13 @@
+2021-08-24  Tim Nguyen  <[email protected]>
+
+        Use RefPtr instead of auto* in EventHandler::defaultKeyboardEventHandler.
+        https://bugs.webkit.org/show_bug.cgi?id=229475
+
+        Unreviewed.
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::defaultKeyboardEventHandler):
+
 2021-08-24  Chris Dumez  <[email protected]>
 
         Geolocation API should callback with error if doc is not fully active

Modified: trunk/Source/WebCore/page/EventHandler.cpp (281524 => 281525)


--- trunk/Source/WebCore/page/EventHandler.cpp	2021-08-24 23:12:08 UTC (rev 281524)
+++ trunk/Source/WebCore/page/EventHandler.cpp	2021-08-24 23:22:16 UTC (rev 281525)
@@ -3801,7 +3801,7 @@
         if (event.defaultHandled())
             return;
         if (event.key() == "Escape") {
-            if (auto* activeModalDialog = m_frame.document()->activeModalDialog())
+            if (RefPtr activeModalDialog = m_frame.document()->activeModalDialog())
                 activeModalDialog->queueCancelTask();
         } else if (event.keyIdentifier() == "U+0009")
             defaultTabEventHandler(event);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to