[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

benm at google.com benm at google.com
Wed Dec 22 11:24:37 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 7de9eabcd2d04cb024185cb9dabb126c5b48fb77
Author: benm at google.com <benm at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jul 22 14:07:18 2010 +0000

    2010-07-22  Ben Murdoch  <benm at google.com>
    
            Reviewed by Simon Fraser.
    
            Touch events do not affect the :active CSS state
            https://bugs.webkit.org/show_bug.cgi?id=39493
    
            Clean the code up by using a typedef based on comments
            post landing of the original patch.
    
            No change in functionality so no new tests.
    
            * rendering/HitTestRequest.h: Typedef the HitTestRequestType to unsigned.
            * WebCore.exp.in: Update export signature.
            * WebCore.order: Ditto.
            * page/EventHandler.cpp: use the new typedef.
            * page/EventHandler.h: ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63888 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 181eb34..a20d4ad 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,22 @@
+2010-07-22  Ben Murdoch  <benm at google.com>
+
+        Reviewed by Simon Fraser.
+
+        Touch events do not affect the :active CSS state
+        https://bugs.webkit.org/show_bug.cgi?id=39493
+
+        Clean the code up by using a typedef based on comments
+        post landing of the original patch.
+
+        No change in functionality so no new tests.
+
+        * rendering/HitTestRequest.h: Typedef the HitTestRequestType to unsigned.
+        * WebCore.exp.in: Update export signature.
+        * WebCore.order: Ditto.
+        * page/EventHandler.cpp: use the new typedef.
+        * page/EventHandler.h: ditto.
+
+
 2010-07-22  Alexander Pavlov  <apavlov at chromium.org>
 
         Reviewed by Pavel Feldman.
diff --git a/WebCore/WebCore.exp.in b/WebCore/WebCore.exp.in
index a8c0a49..904cf6e 100644
--- a/WebCore/WebCore.exp.in
+++ b/WebCore/WebCore.exp.in
@@ -216,7 +216,7 @@ __ZN7WebCore12EventHandler14scrollOverflowENS_15ScrollDirectionENS_17ScrollGranu
 __ZN7WebCore12EventHandler15sendScrollEventEv
 __ZN7WebCore12EventHandler16handleWheelEventERNS_18PlatformWheelEventE
 __ZN7WebCore12EventHandler20handleTextInputEventERKNS_6StringEPNS_5EventEbb
-__ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_8IntPointEbbNS_17HitTestScrollbarsEi
+__ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_8IntPointEbbNS_17HitTestScrollbarsEj
 __ZN7WebCore12EventHandler21handleMousePressEventERKNS_18PlatformMouseEventE
 __ZN7WebCore12EventHandler23handleMouseReleaseEventERKNS_18PlatformMouseEventE
 __ZN7WebCore12EventHandler27capsLockStateMayHaveChangedEv
diff --git a/WebCore/WebCore.order b/WebCore/WebCore.order
index 8fa6586..0ac5610 100644
--- a/WebCore/WebCore.order
+++ b/WebCore/WebCore.order
@@ -2999,7 +2999,7 @@ __ZN7WebCore24StringWrapperCFAllocatorL22deallocateOnMainThreadEPv
 __ZNK7WebCore12RenderObject5themeEv
 __ZNK7WebCore14RenderThemeMac20supportsControlTintsEv
 __ZN7WebCore15GraphicsContext23setUpdatingControlTintsEb
-__ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_8IntPointEbbNS_17HitTestScrollbarsEi
+__ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_8IntPointEbbNS_17HitTestScrollbarsEj
 __ZNK7WebCore13HitTestResult10isSelectedEv
 __ZN7WebCore19SelectionController8containsERKNS_8IntPointE
 __ZN7WebCore13InlineTextBox11nodeAtPointERKNS_14HitTestRequestERNS_13HitTestResultEiiii
diff --git a/WebCore/page/EventHandler.cpp b/WebCore/page/EventHandler.cpp
index 7184268..cfc9f56 100644
--- a/WebCore/page/EventHandler.cpp
+++ b/WebCore/page/EventHandler.cpp
@@ -862,7 +862,7 @@ void EventHandler::allowDHTMLDrag(bool& flagDHTML, bool& flagUA) const
 }
 #endif // ENABLE(DRAG_SUPPORT)
     
-HitTestResult EventHandler::hitTestResultAtPoint(const IntPoint& point, bool allowShadowContent, bool ignoreClipping, HitTestScrollbars testScrollbars, int hitType)
+HitTestResult EventHandler::hitTestResultAtPoint(const IntPoint& point, bool allowShadowContent, bool ignoreClipping, HitTestScrollbars testScrollbars, HitTestRequest::HitTestRequestType hitType)
 {
     HitTestResult result(point);
     if (!m_frame->contentRenderer())
@@ -1438,7 +1438,7 @@ bool EventHandler::handleMouseMoveEvent(const PlatformMouseEvent& mouseEvent, Hi
     // if we are allowed to select.
     // This means that :hover and :active freeze in the state they were in when the mouse
     // was pressed, rather than updating for nodes the mouse moves over as you hold the mouse down.
-    int hitType = HitTestRequest::MouseMove;
+    HitTestRequest::HitTestRequestType hitType = HitTestRequest::MouseMove;
     if (m_mousePressed && m_mouseDownMayStartSelect)
         hitType |= HitTestRequest::ReadOnly;
     if (m_mousePressed)
@@ -2847,7 +2847,7 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
         const PlatformTouchPoint& point = points[i];
         IntPoint pagePoint = documentPointForWindowPoint(m_frame, point.pos());
 
-        int hitType = HitTestRequest::Active | HitTestRequest::ReadOnly;
+        HitTestRequest::HitTestRequestType hitType = HitTestRequest::Active | HitTestRequest::ReadOnly;
         // The HitTestRequest types used for mouse events map quite adequately
         // to touch events. Note that in addition to meaning that the hit test
         // should affect the active state of the current node if necessary,
diff --git a/WebCore/page/EventHandler.h b/WebCore/page/EventHandler.h
index ec6b772..a4730bb 100644
--- a/WebCore/page/EventHandler.h
+++ b/WebCore/page/EventHandler.h
@@ -106,7 +106,7 @@ public:
 
     void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&);
 
-    HitTestResult hitTestResultAtPoint(const IntPoint&, bool allowShadowContent, bool ignoreClipping = false, HitTestScrollbars scrollbars = DontHitTestScrollbars, int hitType = HitTestRequest::ReadOnly | HitTestRequest::Active);
+    HitTestResult hitTestResultAtPoint(const IntPoint&, bool allowShadowContent, bool ignoreClipping = false, HitTestScrollbars scrollbars = DontHitTestScrollbars, HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active);
 
     bool mousePressed() const { return m_mousePressed; }
     void setMousePressed(bool pressed) { m_mousePressed = pressed; }
diff --git a/WebCore/rendering/HitTestRequest.h b/WebCore/rendering/HitTestRequest.h
index 97d8680..745791a 100644
--- a/WebCore/rendering/HitTestRequest.h
+++ b/WebCore/rendering/HitTestRequest.h
@@ -35,7 +35,9 @@ public:
         SVGClipContent = 1 << 6
     };
 
-    HitTestRequest(int requestType)
+    typedef unsigned HitTestRequestType;
+
+    HitTestRequest(HitTestRequestType requestType)
         : m_requestType(requestType)
     {
     }
@@ -48,7 +50,7 @@ public:
     bool svgClipContent() const { return m_requestType & SVGClipContent; }
 
 private:
-    int m_requestType;
+    HitTestRequestType m_requestType;
 };
 
 } // namespace WebCore

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list