зеркало из https://github.com/mozilla/gecko-dev.git
don't draw when not visible
This commit is contained in:
Родитель
38ef58f9a1
Коммит
7b7acedec8
|
@ -86,7 +86,7 @@ nsMacControl::~nsMacControl()
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
PRBool nsMacControl::OnPaint(nsPaintEvent &aEvent)
|
PRBool nsMacControl::OnPaint(nsPaintEvent &aEvent)
|
||||||
{
|
{
|
||||||
if (mControl)
|
if (mControl && mVisible)
|
||||||
{
|
{
|
||||||
// set the control text attributes
|
// set the control text attributes
|
||||||
// (the rendering context has already set these attributes for
|
// (the rendering context has already set these attributes for
|
||||||
|
|
Загрузка…
Ссылка в новой задаче