mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1229039 - Miscellaneous logging fixes/updates. r=botond
This commit is contained in:
parent
e972bda0fb
commit
c95cc9f51e
@ -614,6 +614,7 @@ bool
|
||||
PanGestureBlockState::SetContentResponse(bool aPreventDefault)
|
||||
{
|
||||
if (aPreventDefault) {
|
||||
TBS_LOG("%p setting interrupted flag\n", this);
|
||||
mInterrupted = true;
|
||||
}
|
||||
bool stateChanged = CancelableBlockState::SetContentResponse(aPreventDefault);
|
||||
|
@ -207,7 +207,8 @@ InputQueue::ReceiveMouseInput(const RefPtr<AsyncPanZoomController>& aTarget,
|
||||
*aOutInputBlockId = block->GetBlockId();
|
||||
}
|
||||
|
||||
INPQ_LOG("started new drag block %p for target %p\n", block, aTarget.get());
|
||||
INPQ_LOG("started new drag block %p id %" PRIu64 " for target %p\n",
|
||||
block, block->GetBlockId(), aTarget.get());
|
||||
|
||||
SweepDepletedBlocks();
|
||||
mInputBlockQueue.AppendElement(block);
|
||||
@ -262,7 +263,8 @@ InputQueue::ReceiveScrollWheelInput(const RefPtr<AsyncPanZoomController>& aTarge
|
||||
|
||||
if (!block) {
|
||||
block = new WheelBlockState(aTarget, aTargetConfirmed, aEvent);
|
||||
INPQ_LOG("started new scroll wheel block %p for target %p\n", block, aTarget.get());
|
||||
INPQ_LOG("started new scroll wheel block %p id %" PRIu64 " for target %p\n",
|
||||
block, block->GetBlockId(), aTarget.get());
|
||||
|
||||
SweepDepletedBlocks();
|
||||
mInputBlockQueue.AppendElement(block);
|
||||
@ -326,10 +328,13 @@ InputQueue::ReceivePanGestureInput(const RefPtr<AsyncPanZoomController>& aTarget
|
||||
if (!block || block->WasInterrupted()) {
|
||||
if (aEvent.mType != PanGestureInput::PANGESTURE_START) {
|
||||
// Only PANGESTURE_START events are allowed to start a new pan gesture block.
|
||||
INPQ_LOG("pangesture block %p was interrupted %d\n", block,
|
||||
block ? block->WasInterrupted() : 0);
|
||||
return nsEventStatus_eConsumeDoDefault;
|
||||
}
|
||||
block = new PanGestureBlockState(aTarget, aTargetConfirmed, aEvent);
|
||||
INPQ_LOG("started new pan gesture block %p for target %p\n", block, aTarget.get());
|
||||
INPQ_LOG("started new pan gesture block %p id %" PRIu64 " for target %p\n",
|
||||
block, block->GetBlockId(), aTarget.get());
|
||||
|
||||
if (aTargetConfirmed &&
|
||||
aEvent.mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection &&
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "ContentHelper.h"
|
||||
#include "gfxPlatform.h" // For gfxPlatform::UseTiling
|
||||
#include "gfxPrefs.h"
|
||||
#include "LayersLogging.h" // For Stringify
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/TabParent.h"
|
||||
#include "mozilla/IntegerPrintfMacros.h"
|
||||
|
Loading…
Reference in New Issue
Block a user