Bug 675669 - Ignore paint suppression for hit testing. r=ehsan
authorJosh Matthews <josh@joshmatthews.net>
Mon, 08 Aug 2011 19:05:50 -0400
changeset 74163 6835028a54e874f815c1a14615a9c115c3064019
parent 74162 ad7544a6078bb8d9215766ce87f522545ece27e9
child 74164 b391327ee19af7438cc6b4d70f3ad1c9a9d8e634
push id20955
push usereakhgari@mozilla.com
push dateWed, 10 Aug 2011 14:22:13 +0000
treeherdermozilla-central@93328efd3d77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs675669
milestone8.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 675669 - Ignore paint suppression for hit testing. r=ehsan
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -6657,17 +6657,17 @@ PresShell::HandleEvent(nsIView         *
       nsPoint eventPoint
           = nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, frame);
       {
         PRBool ignoreRootScrollFrame = PR_FALSE;
         if (aEvent->eventStructType == NS_MOUSE_EVENT) {
           ignoreRootScrollFrame = static_cast<nsMouseEvent*>(aEvent)->ignoreRootScrollFrame;
         }
         nsIFrame* target = nsLayoutUtils::GetFrameForPoint(frame, eventPoint,
-                                                           PR_FALSE, ignoreRootScrollFrame);
+                                                           PR_TRUE, ignoreRootScrollFrame);
         if (target) {
           frame = target;
         }
       }
     }
 
     // if a node is capturing the mouse, check if the event needs to be
     // retargeted at the capturing content instead. This will be the case when