Bug 1260713 - Fix RefCounted.h:106:50: error: no member named 'typeSize' in 'mozilla::KeyboardInfo' 0:22.21 uint32_t size = static_cast<const T*>(this)->typeSize(). r=smaug

This commit is contained in:
Chun-Min Chang 2016-03-30 22:07:07 +08:00
Родитель a408fabf31
Коммит 2fc4407274
2 изменённых файлов: 2 добавлений и 4 удалений

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

@ -263,7 +263,6 @@ HardwareKeyHandler::DispatchKeyPress(nsINode* aTarget,
nsEventStatus& aStatus)
{
MOZ_ASSERT(aTarget, "No target provided");
MOZ_ASSERT(aEvent, "No event provided");
MOZ_ASSERT(aEvent.mMessage == eKeyPress, "Event is not keypress");
// No need to dispatch keypress to the event target
@ -303,7 +302,6 @@ HardwareKeyHandler::DispatchAfterKeyEvent(nsINode* aTarget,
WidgetKeyboardEvent& aEvent)
{
MOZ_ASSERT(aTarget, "No target provided");
MOZ_ASSERT(aEvent, "No event provided");
if (!PresShell::BeforeAfterKeyboardEventEnabled() ||
aEvent.mMessage == eKeyPress) {
@ -324,7 +322,6 @@ HardwareKeyHandler::DispatchToTargetApp(nsINode* aTarget,
nsEventStatus& aStatus)
{
MOZ_ASSERT(aTarget, "No target provided");
MOZ_ASSERT(aEvent, "No event provided");
// Get current focused element as the event target
nsCOMPtr<nsIContent> currentTarget = GetCurrentTarget();
@ -421,7 +418,6 @@ HardwareKeyHandler::PostHandleKeyboardEvent(nsINode* aTarget,
nsEventStatus& aStatus)
{
MOZ_ASSERT(aTarget, "No target provided");
MOZ_ASSERT(aEvent, "No event provided");
nsPresContext* presContext = GetPresContext(aTarget);

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

@ -29,6 +29,8 @@ namespace mozilla {
// RefCounted<T> is a helper class for adding reference counting mechanism.
struct KeyboardInfo : public RefCounted<KeyboardInfo>
{
MOZ_DECLARE_REFCOUNTED_TYPENAME(KeyboardInfo)
nsINode* mTarget;
WidgetKeyboardEvent mEvent;
nsEventStatus mStatus;