Skip to content

Commit

Permalink
Fixed work in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Mar 11, 2014
1 parent 0631cf9 commit 6f5a915
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion embedding/embedlite/embedthread/EmbedLiteViewThreadChild.cpp
Expand Up @@ -30,6 +30,7 @@
#include "mozilla/Preferences.h"
#include "EmbedLiteAppService.h"
#include "nsIWidgetListener.h"
#include "gfxPrefs.h"

#include "APZCCallbackHelper.h"
#include "mozilla/dom/Element.h"
Expand Down Expand Up @@ -154,7 +155,7 @@ EmbedLiteViewThreadChild::InitGeckoWindow(const uint32_t& parentId)
return;
}


gfxPrefs::GetSingleton();
nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(mWebBrowser, &rv);
if (NS_FAILED(rv)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/ipc/GestureEventListener.cpp
Expand Up @@ -85,7 +85,7 @@ nsEventStatus GestureEventListener::HandleInputEvent(const MultiTouchInput& aEve

mAsyncPanZoomController->PostDelayedTask(
mLongTapTimeoutTask,
Preferences::GetInt("ui.click_hold_context_menus.delay", 500));
gfxPrefs::UiClickHoldContextMenusDelay());
}
} else if (length == 2) {
// Another finger has been added; it can't be a tap anymore.
Expand Down
1 change: 1 addition & 0 deletions gfx/thebes/gfxPrefs.h
Expand Up @@ -177,6 +177,7 @@ class gfxPrefs MOZ_FINAL
DECL_GFX_PREF(Live, "nglayout.debug.widget_update_flashing", WidgetUpdateFlashing, bool, false);

DECL_GFX_PREF(Once, "webgl.force-layers-readback", WebGLForceLayersReadback, bool, false);
DECL_GFX_PREF(Live, "ui.click_hold_context_menus.delay", UiClickHoldContextMenusDelay, int32_t, 500);

public:
// Manage the singleton:
Expand Down

0 comments on commit 6f5a915

Please sign in to comment.