Skip to content

Commit

Permalink
<attachment> should get an interaction region
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=251654
rdar://104976178

Reviewed by Wenson Hsieh.

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::shouldAllowNonPointerCursorForElement):

Canonical link: https://commits.webkit.org/259799@main
  • Loading branch information
hortont424 committed Feb 3, 2023
1 parent 2064be2 commit b24ce8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/WebCore/page/InteractionRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "FrameView.h"
#include "GeometryUtilities.h"
#include "HTMLAnchorElement.h"
#include "HTMLAttachmentElement.h"
#include "HTMLButtonElement.h"
#include "HTMLFieldSetElement.h"
#include "HTMLFormControlElement.h"
Expand Down Expand Up @@ -85,6 +86,11 @@ static bool shouldAllowElement(const Element& element)

static bool shouldAllowNonPointerCursorForElement(const Element& element)
{
#if ENABLE(ATTACHMENT_ELEMENT)
if (is<HTMLAttachmentElement>(element))
return true;
#endif

if (is<HTMLFormControlElement>(element))
return true;

Expand Down

0 comments on commit b24ce8d

Please sign in to comment.