Title: [289102] trunk/Source/WebCore
Revision
289102
Author
megan_gard...@apple.com
Date
2022-02-03 19:13:53 -0800 (Thu, 03 Feb 2022)

Log Message

Add pen type for HitTestRequest.
https://bugs.webkit.org/show_bug.cgi?id=236112

Reviewed by Tim Horton.

* rendering/HitTestRequest.h:
(WebCore::HitTestRequest::mouseEvent const):
(WebCore::HitTestRequest::penEvent const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (289101 => 289102)


--- trunk/Source/WebCore/ChangeLog	2022-02-04 02:53:09 UTC (rev 289101)
+++ trunk/Source/WebCore/ChangeLog	2022-02-04 03:13:53 UTC (rev 289102)
@@ -1,3 +1,14 @@
+2022-02-03  Megan Gardner  <megan_gard...@apple.com>
+
+        Add pen type for HitTestRequest.
+        https://bugs.webkit.org/show_bug.cgi?id=236112
+
+        Reviewed by Tim Horton.
+
+        * rendering/HitTestRequest.h:
+        (WebCore::HitTestRequest::mouseEvent const):
+        (WebCore::HitTestRequest::penEvent const):
+
 2022-02-03  Myles C. Maxfield  <mmaxfi...@apple.com>
 
         Two bopomofo tone marks are not moved to the correct place in vertical text with a particular bopomofo font

Modified: trunk/Source/WebCore/rendering/HitTestRequest.h (289101 => 289102)


--- trunk/Source/WebCore/rendering/HitTestRequest.h	2022-02-04 02:53:09 UTC (rev 289101)
+++ trunk/Source/WebCore/rendering/HitTestRequest.h	2022-02-04 03:13:53 UTC (rev 289102)
@@ -49,6 +49,7 @@
         CollectMultipleElements = 1 << 15,
         // When using list-based testing, continue hit testing even after a hit has been found.
         IncludeAllElementsUnderPoint = 1 << 16,
+        PenEvent = 1 << 17,
     };
 
     HitTestRequest(OptionSet<Type> type = { Type::ReadOnly, Type::Active, Type::DisallowUserAgentShadowContent })
@@ -66,7 +67,8 @@
     bool ignoreClipping() const { return m_type.contains(Type::IgnoreClipping); }
     bool svgClipContent() const { return m_type.contains(Type::SVGClipContent); }
     bool touchEvent() const { return m_type.contains(Type::TouchEvent); }
-    bool mouseEvent() const { return !touchEvent(); }
+    bool mouseEvent() const { return !touchEvent() && !penEvent(); }
+    bool penEvent() const { return m_type.contains(Type::PenEvent); }
     bool disallowsUserAgentShadowContent() const { return m_type.contains(Type::DisallowUserAgentShadowContent); }
     bool disallowsUserAgentShadowContentExceptForImageOverlays() const { return m_type.contains(Type::DisallowUserAgentShadowContentExceptForImageOverlays); }
     bool allowsFrameScrollbars() const { return m_type.contains(Type::AllowFrameScrollbars); }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to