Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt

MozReview-Commit-ID: ERsI916e7zf

--HG--
extra : rebase_source : 6e01cb852a05db87ebe7961773703ead9aee8a57
This commit is contained in:
Brad Werth 2017-10-10 14:12:47 -07:00
Родитель bcfec672a0
Коммит 6595065d11
2 изменённых файлов: 22 добавлений и 22 удалений

Просмотреть файл

@ -53,12 +53,6 @@ nsLookAndFeel::nsLookAndFeel()
{
}
void
nsLookAndFeel::NativeInit()
{
EnsureInit();
}
nsLookAndFeel::~nsLookAndFeel()
{
}
@ -220,6 +214,26 @@ GetBorderColors(GtkStyleContext* aContext,
return ret;
}
void
nsLookAndFeel::NativeInit()
{
EnsureInit();
}
void
nsLookAndFeel::RefreshImpl()
{
nsXPLookAndFeel::RefreshImpl();
moz_gtk_refresh();
mDefaultFontCached = false;
mButtonFontCached = false;
mFieldFontCached = false;
mMenuFontCached = false;
mInitialized = false;
}
nsresult
nsLookAndFeel::NativeGetColor(ColorID aID, nscolor& aColor)
{
@ -1099,20 +1113,6 @@ nsLookAndFeel::GetPasswordCharacterImpl()
return sInvisibleCharacter;
}
void
nsLookAndFeel::RefreshImpl()
{
nsXPLookAndFeel::RefreshImpl();
moz_gtk_refresh();
mDefaultFontCached = false;
mButtonFontCached = false;
mFieldFontCached = false;
mMenuFontCached = false;
mInitialized = false;
}
bool
nsLookAndFeel::GetEchoPasswordImpl() {
return false;

Просмотреть файл

@ -20,15 +20,15 @@ public:
nsLookAndFeel();
virtual ~nsLookAndFeel();
virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult);
virtual void NativeInit() final;
virtual void RefreshImpl();
virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult);
virtual nsresult GetIntImpl(IntID aID, int32_t &aResult);
virtual nsresult GetFloatImpl(FloatID aID, float &aResult);
virtual bool GetFontImpl(FontID aID, nsString& aFontName,
gfxFontStyle& aFontStyle,
float aDevPixPerCSSPixel);
virtual void RefreshImpl();
virtual char16_t GetPasswordCharacterImpl();
virtual bool GetEchoPasswordImpl();