Title: [282957] trunk/Source/WebCore
Revision
282957
Author
[email protected]
Date
2021-09-23 04:55:27 -0700 (Thu, 23 Sep 2021)

Log Message

Use visibleToHitTesting() in RenderLayerBacking::updateAfterDescendants() instead of pointer-events check
https://bugs.webkit.org/show_bug.cgi?id=230681

Reviewed by Antti Koivisto.

The new check should account for inert as well once we implement it in RenderStyle.

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateAfterDescendants):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (282956 => 282957)


--- trunk/Source/WebCore/ChangeLog	2021-09-23 11:54:55 UTC (rev 282956)
+++ trunk/Source/WebCore/ChangeLog	2021-09-23 11:55:27 UTC (rev 282957)
@@ -1,5 +1,17 @@
 2021-09-23  Tim Nguyen  <[email protected]>
 
+        Use visibleToHitTesting() in RenderLayerBacking::updateAfterDescendants() instead of pointer-events check
+        https://bugs.webkit.org/show_bug.cgi?id=230681
+
+        Reviewed by Antti Koivisto.
+
+        The new check should account for inert as well once we implement it in RenderStyle.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::updateAfterDescendants):
+
+2021-09-23  Tim Nguyen  <[email protected]>
+
         AX: Split out isInert from isAXHidden on AccessibilityObject
         https://bugs.webkit.org/show_bug.cgi?id=230680
 

Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (282956 => 282957)


--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2021-09-23 11:54:55 UTC (rev 282956)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2021-09-23 11:55:27 UTC (rev 282957)
@@ -1590,7 +1590,7 @@
     if (m_scrollContainerLayer) {
         m_scrollContainerLayer->setContentsVisible(renderer().style().visibility() == Visibility::Visible);
 
-        bool userInteractive = renderer().style().pointerEvents() != PointerEvents::None;
+        bool userInteractive = renderer().visibleToHitTesting();
         m_scrollContainerLayer->setUserInteractionEnabled(userInteractive);
         if (m_layerForHorizontalScrollbar)
             m_layerForHorizontalScrollbar->setUserInteractionEnabled(userInteractive);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to