зеркало из https://github.com/mozilla/gecko-dev.git
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 : 580f72faf7b748644b7d2e25872eb57b929a6be1
This commit is contained in:
Родитель
beec09dd81
Коммит
6c5f60148b
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче