mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
a408fabf31
commit
2fc4407274
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user