Skip to content

Commit

Permalink
Improve trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Dec 5, 2018
1 parent fbd5227 commit e24992f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions embedding/embedlite/embedshared/EmbedLitePuppetWidget.cpp
Expand Up @@ -94,7 +94,7 @@ EmbedLitePuppetWidget::EmbedLitePuppetWidget(EmbedLiteWindowBaseChild* window,
, mDPI(-1.0)
{
MOZ_COUNT_CTOR(EmbedLitePuppetWidget);
LOGT("this:%p", this);
LOGT("Puppet: %p, view: %p, window: %p", this, mView, mWindow);
InitPrefs();
}

Expand Down Expand Up @@ -198,7 +198,8 @@ EmbedLitePuppetWidget::Create(nsIWidget* aParent,
const LayoutDeviceIntRect& aRect,
nsWidgetInitData* aInitData)
{
LOGT();
LOGT("Puppet: %p, parent: %p", this, aParent);

NS_ASSERTION(!aNativeParent, "got a non-Puppet native parent");

mParent = static_cast<EmbedLitePuppetWidget*>(aParent);
Expand Down Expand Up @@ -429,6 +430,8 @@ EmbedLitePuppetWidget::GetNativeData(uint32_t aDataType)
NS_IMETHODIMP
EmbedLitePuppetWidget::DispatchEvent(WidgetGUIEvent* event, nsEventStatus& aStatus)
{
LOGT();

aStatus = nsEventStatus_eIgnore;

nsIWidgetListener* listener =
Expand Down
5 changes: 5 additions & 0 deletions embedding/embedlite/embedshared/EmbedLiteViewBaseChild.cpp
Expand Up @@ -177,6 +177,7 @@ EmbedLiteViewBaseChild::InitGeckoWindow(const uint32_t& parentId, const bool& is
}

mWidget = new EmbedLitePuppetWidget(this);
LOGT("puppet widget: %p", static_cast<EmbedLitePuppetWidget*>(mWidget.get()));
nsWidgetInitData widgetInit;
widgetInit.clipChildren = true;
widgetInit.clipSiblings = true;
Expand Down Expand Up @@ -347,6 +348,7 @@ EmbedLiteViewBaseChild::GetInputContext(int32_t* IMEEnabled,

void EmbedLiteViewBaseChild::ResetInputState()
{
LOGT();
if (!mIMEComposing) {
return;
}
Expand Down Expand Up @@ -377,6 +379,7 @@ EmbedLiteViewBaseChild::UpdateZoomConstraints(const uint32_t& aPresShellId,
const ViewID& aViewId,
const Maybe<ZoomConstraints> &aConstraints)
{
LOGT();
return SendUpdateZoomConstraints(aPresShellId,
aViewId,
aConstraints);
Expand All @@ -385,6 +388,7 @@ EmbedLiteViewBaseChild::UpdateZoomConstraints(const uint32_t& aPresShellId,
void
EmbedLiteViewBaseChild::RelayFrameMetrics(const FrameMetrics& aFrameMetrics)
{
LOGT();
for (unsigned int i = 0; i < mControllerListeners.Length(); i++) {
mControllerListeners[i]->RequestContentRepaint(aFrameMetrics);
}
Expand Down Expand Up @@ -768,6 +772,7 @@ EmbedLiteViewBaseChild::RecvHandleScrollEvent(const bool &isRootScrollFrame,
bool
EmbedLiteViewBaseChild::RecvUpdateFrame(const FrameMetrics& aFrameMetrics)
{
LOGT();
if (!mWebBrowser) {
return true;
}
Expand Down
Expand Up @@ -260,6 +260,7 @@ EmbedLiteViewBaseParent::RecvUpdateZoomConstraints(const uint32_t& aPresShellId,
const ViewID& aViewId,
const Maybe<ZoomConstraints>& aConstraints)
{
LOGT("manager: %p layer id: %d", mController->GetManager(), mRootLayerTreeId);
if (mController->GetManager()) {
mController->GetManager()->UpdateZoomConstraints(ScrollableLayerGuid(mRootLayerTreeId, aPresShellId, aViewId),
aConstraints);
Expand Down
1 change: 1 addition & 0 deletions embedding/embedlite/utils/TabChildHelper.cpp
Expand Up @@ -443,6 +443,7 @@ TabChildHelper::DoUpdateZoomConstraints(const uint32_t& aPresShellId,
const ViewID& aViewId,
const Maybe<mozilla::layers::ZoomConstraints> &aConstraints)
{
LOGT();
return mView->UpdateZoomConstraints(aPresShellId,
aViewId,
aConstraints);
Expand Down

0 comments on commit e24992f

Please sign in to comment.