Title: [119983] trunk/Source/WebKit/blackberry
Revision
119983
Author
[email protected]
Date
2012-06-11 09:57:27 -0700 (Mon, 11 Jun 2012)

Log Message

Make media (<video> and <audio>) slide draggable again https://bugs.webkit.org/show_bug.cgi?id=88742 PR #158199

Reviewed by George Staikos.
Patch by Antonio Gomes <[email protected]>

First check if the element is a range type then gets its
shadow DOM ancestor.

* WebKitSupport/TouchEventHandler.cpp:
(BlackBerry::WebKit::shouldConvertTouchToMouse):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (119982 => 119983)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-06-11 16:49:22 UTC (rev 119982)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-06-11 16:57:27 UTC (rev 119983)
@@ -1,3 +1,17 @@
+2012-06-10  Antonio Gomes  <[email protected]>
+
+        [BlackBerry] Make media (<video> and <audio>) slide draggable again
+        https://bugs.webkit.org/show_bug.cgi?id=88742
+        PR #158199
+
+        Reviewed by George Staikos.
+
+        First check if the element is a range type then gets its
+        shadow DOM ancestor.
+
+        * WebKitSupport/TouchEventHandler.cpp:
+        (BlackBerry::WebKit::shouldConvertTouchToMouse):
+
 2012-06-08  Crystal Zhang  <[email protected]>
 
         [BlackBerry] Fix crash on PagePopupChromeClient

Modified: trunk/Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp (119982 => 119983)


--- trunk/Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp	2012-06-11 16:49:22 UTC (rev 119982)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp	2012-06-11 16:57:27 UTC (rev 119983)
@@ -94,9 +94,9 @@
     // won't operate on the shadow node of other element type, because the webpages
     // aren't able to attach listeners to shadow content.
     do {
-        element = toElement(element->shadowAncestorNode()); // If an element is not in shadow tree, shadowAncestorNode returns itself.
         if (isRangeControlElement(element))
             return true;
+        element = toElement(element->shadowAncestorNode()); // If an element is not in shadow tree, shadowAncestorNode returns itself.
     } while (element->isInShadowTree());
 
     // Check if the element has a mouse listener and no touch listener. If so,
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to