Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot

MozReview-Commit-ID: HXWhggOMIEK
This commit is contained in:
Milan Sreckovic
2018-02-19 12:56:10 -05:00
parent 190cfa25ca
commit 2aa2530441
37 changed files with 226 additions and 242 deletions

View File

@@ -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;