Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.

This commit is contained in:
bryner@brianryner.com
2004-02-11 04:57:07 +00:00
parent e4b9f42173
commit 4b3323b7b2
94 changed files with 230 additions and 283 deletions

View File

@@ -332,7 +332,7 @@ nsImageControlFrame::HandleEvent(nsIPresContext* aPresContext,
// Store click point for GetNamesValues
// Do this on MouseUp because the specs don't say and that's what IE does.
float t2p;
aPresContext->GetTwipsToPixels(&t2p);
t2p = aPresContext->TwipsToPixels();
mLastClickPoint.x = NSTwipsToIntPixels(aEvent->point.x, t2p);
mLastClickPoint.y = NSTwipsToIntPixels(aEvent->point.y, t2p);