Bug 1153829 - Don't use MOZ_ALWAYS_INLINE for non-inline functions. r=jimm

This commit is contained in:
Jacek Caban 2015-04-14 18:06:58 +02:00
parent 09194eb6ec
commit eec0326676
2 changed files with 12 additions and 15 deletions

View File

@ -371,12 +371,6 @@ ModifierKeyState::IsScrollLocked() const
return (mModifiers & MODIFIER_SCROLLLOCK) != 0;
}
Modifiers
ModifierKeyState::GetModifiers() const
{
return mModifiers;
}
void
ModifierKeyState::EnsureAltGr()
{

View File

@ -62,24 +62,27 @@ public:
ModifierKeyState(bool aIsShiftDown, bool aIsControlDown, bool aIsAltDown);
ModifierKeyState(Modifiers aModifiers);
MOZ_ALWAYS_INLINE void Update();
void Update();
MOZ_ALWAYS_INLINE void Unset(Modifiers aRemovingModifiers);
void Unset(Modifiers aRemovingModifiers);
void Set(Modifiers aAddingModifiers);
void InitInputEvent(WidgetInputEvent& aInputEvent) const;
bool IsShift() const;
bool IsControl() const;
MOZ_ALWAYS_INLINE bool IsAlt() const;
MOZ_ALWAYS_INLINE bool IsAltGr() const;
MOZ_ALWAYS_INLINE bool IsWin() const;
bool IsAlt() const;
bool IsAltGr() const;
bool IsWin() const;
MOZ_ALWAYS_INLINE bool IsCapsLocked() const;
MOZ_ALWAYS_INLINE bool IsNumLocked() const;
MOZ_ALWAYS_INLINE bool IsScrollLocked() const;
bool IsCapsLocked() const;
bool IsNumLocked() const;
bool IsScrollLocked() const;
MOZ_ALWAYS_INLINE Modifiers GetModifiers() const;
MOZ_ALWAYS_INLINE Modifiers GetModifiers() const
{
return mModifiers;
}
private:
Modifiers mModifiers;