Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot
MozReview-Commit-ID: HXWhggOMIEK
This commit is contained in:
@@ -617,8 +617,8 @@ nsresult HTMLCanvasElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
|
||||
nsPoint ptInRoot = nsLayoutUtils::GetEventCoordinatesRelativeTo(evt, frame);
|
||||
nsRect paddingRect = frame->GetContentRectRelativeToSelf();
|
||||
Point hitpoint;
|
||||
hitpoint.x = (ptInRoot.x - paddingRect.x) / AppUnitsPerCSSPixel();
|
||||
hitpoint.y = (ptInRoot.y - paddingRect.y) / AppUnitsPerCSSPixel();
|
||||
hitpoint.x = (ptInRoot.x - paddingRect.X()) / AppUnitsPerCSSPixel();
|
||||
hitpoint.y = (ptInRoot.y - paddingRect.Y()) / AppUnitsPerCSSPixel();
|
||||
|
||||
evt->region = mCurrentContext->GetHitRegion(hitpoint);
|
||||
aVisitor.mCanHandle = true;
|
||||
|
||||
Reference in New Issue
Block a user