Title: [247894] trunk/Source/WebCore
Revision
247894
Author
[email protected]
Date
2019-07-28 14:23:51 -0700 (Sun, 28 Jul 2019)

Log Message

[iOS] Touch regions overlay needs to show touch-action:none
https://bugs.webkit.org/show_bug.cgi?id=200203

Reviewed by Wenson Hsieh.

When I added touch-action overlay painting, I didn't realize that touch-action:none
was an important value to display. But it is, so fix that.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (247893 => 247894)


--- trunk/Source/WebCore/ChangeLog	2019-07-28 01:31:48 UTC (rev 247893)
+++ trunk/Source/WebCore/ChangeLog	2019-07-28 21:23:51 UTC (rev 247894)
@@ -1,3 +1,16 @@
+2019-07-28  Simon Fraser  <[email protected]>
+
+        [iOS] Touch regions overlay needs to show touch-action:none
+        https://bugs.webkit.org/show_bug.cgi?id=200203
+
+        Reviewed by Wenson Hsieh.
+
+        When I added touch-action overlay painting, I didn't realize that touch-action:none
+        was an important value to display. But it is, so fix that.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::patternForTouchAction):
+
 2019-07-27  Saam Barati  <[email protected]>
 
         [WHLSL] Remove UnnamedType copy/move constructors and mark classes as final

Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (247893 => 247894)


--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2019-07-28 01:31:48 UTC (rev 247893)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2019-07-28 21:23:51 UTC (rev 247894)
@@ -2839,15 +2839,16 @@
 {
     auto toIndex = [](TouchAction touchAction) -> unsigned {
         switch (touchAction) {
+        case TouchAction::None:
+            return 1;
         case TouchAction::Manipulation:
-            return 1;
+            return 2;
         case TouchAction::PanX:
-            return 2;
+            return 3;
         case TouchAction::PanY:
-            return 3;
+            return 4;
         case TouchAction::PinchZoom:
-            return 4;
-        case TouchAction::None:
+            return 5;
         case TouchAction::Auto:
             break;
         }
@@ -2860,6 +2861,7 @@
         FloatSize phase;
     };
     static const TouchActionAndRGB actionsAndColors[] = {
+        { TouchAction::Auto, "auto"_s, { } },
         { TouchAction::None, "none"_s, { } },
         { TouchAction::Manipulation, "manip"_s, { } },
         { TouchAction::PanX, "pan-x"_s, { } },
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to