Bug 1119106 - Add an explanatory comment. r=smichaud

--HG--
extra : rebase_source : df67c54a8f1702cfa065118473eb7cb232e1fd16
This commit is contained in:
Markus Stange 2015-06-08 16:17:41 -04:00
parent f06291ba8d
commit e11fa56d49

View File

@ -347,6 +347,10 @@ static BOOL IsToolbarStyleContainer(nsIFrame* aFrame)
[super drawWithFrame:rect inView:controlView];
if (FocusIsDrawnByDrawWithFrame(self)) {
// For some reason, -[NSSearchFieldCell drawWithFrame:inView] doesn't draw a
// focus ring in 64 bit mode, no matter what SDK is used or what OS X version
// we're running on. But if FocusIsDrawnByDrawWithFrame(self), then our
// caller expects us to draw a focus ring. So we just do that here.
DrawFocusRingForCellIfNeeded(self, rect, controlView);
}
}