merge backout of bug 665564 (rev 9de9b3a9458c) and bug 666790 (rev 7d3d5b9710ea) to CLOSED TREE

This commit is contained in:
Boris Zbarsky 2011-06-24 00:42:53 -04:00
Родитель a32f6d6c85 c3ea1c9430
Коммит 9b8116e4d4
10 изменённых файлов: 25 добавлений и 29 удалений

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

@ -1597,6 +1597,12 @@ PluginInstanceParent::PluginWindowHookProc(HWND hWnd,
break;
}
if (self->mPluginWndProc == PluginWindowHookProc) {
NS_NOTREACHED(
"PluginWindowHookProc invoking mPluginWndProc w/"
"mPluginWndProc == PluginWindowHookProc????");
return DefWindowProc(hWnd, message, wParam, lParam);
}
return ::CallWindowProc(self->mPluginWndProc, hWnd, message, wParam,
lParam);
}

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

@ -312,6 +312,7 @@ static URLNotifyData kNotifyData = {
"static-cookie",
NULL,
NULL,
NULL,
false,
0,
NULL

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

@ -53,6 +53,8 @@
#include "gfxCrashReporterUtils.h"
#include "mozilla/Util.h" // for DebugOnly
namespace mozilla {
namespace gl {
@ -1777,7 +1779,7 @@ GLContext::SetBlitFramebufferForDestTexture(GLuint aTexture)
0);
if (aTexture) {
GLenum status = fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER);
DebugOnly<GLenum> status = fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER);
// Note: if you are hitting this assertion, it is likely that
// your texture is not texture complete -- that is, you

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

@ -1767,7 +1767,6 @@ GetVendor()
already_AddRefed<GLContext>
GLContextProviderEGL::CreateForWindow(nsIWidget *aWidget)
{
EGLContext context;
EGLConfig config;
if (!sEGLLibrary.EnsureInitialized()) {
@ -2164,14 +2163,13 @@ ContentTypeToGLFormat(gfxASurface::gfxContentType aCType)
already_AddRefed<GLContext>
GLContextProviderEGL::CreateForNativePixmapSurface(gfxASurface* aSurface)
{
EGLSurface surface = nsnull;
EGLContext context = nsnull;
EGLConfig config = nsnull;
if (!sEGLLibrary.EnsureInitialized())
return nsnull;
#ifdef MOZ_X11
EGLSurface surface = nsnull;
EGLConfig config = nsnull;
if (aSurface->GetType() != gfxASurface::SurfaceTypeXlib) {
// Not implemented
return nsnull;
@ -2193,9 +2191,6 @@ GLContextProviderEGL::CreateForNativePixmapSurface(gfxASurface* aSurface)
return glContext.forget().get();
#else
(void)surface;
(void)context;
// Not implemented
return nsnull;
#endif

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

@ -900,7 +900,7 @@ public:
InitLoader();
// start timer
mTimer->InitWithFuncCallback(LoaderTimerCallback, this, aDelay,
mTimer->InitWithFuncCallback(LoaderTimerCallback, this, timerInterval,
nsITimer::TYPE_REPEATING_SLACK);
}

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

@ -585,15 +585,6 @@ let ContentScroll = {
let winCwu = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
winCwu.setDisplayPortForElement(x, y, displayport.width, displayport.height, element);
// XXX If we scrolled during this displayport update, then it is the
// end of a pan. Due to bug 637852, there may be seaming issues
// with the visible content, so we need to redraw.
if (json.id == 1 && json.scrollX >= 0 && json.scrollY >= 0)
win.setTimeout(
function() {
winCwu.redraw();
}, 0);
break;
}

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

@ -621,20 +621,25 @@ let Content = {
_sendMouseEvent: function _sendMouseEvent(aName, aElement, aX, aY, aButton) {
// the element can be out of the aX/aY point because of the touch radius
// if outside, we gracefully move the touch point to the center of the element
if (!(aElement instanceof HTMLHtmlElement)) {
let isTouchClick = true;
let rects = getContentClientRects(aElement);
for (let i = 0; i < rects.length; i++) {
let rect = rects[i];
if ((aX > rect.left && aX < (rect.left + rect.width)) &&
(aY > rect.top && aY < (rect.top + rect.height))) {
// We might be able to deal with fractional pixels, but mouse events won't.
// Deflate the bounds in by 1 pixel to deal with any fractional scroll offset issues.
let inBounds =
(aX > rect.left + 1 && aX < (rect.left + rect.width - 1)) &&
(aY > rect.top + 1 && aY < (rect.top + rect.height - 1));
if (inBounds) {
isTouchClick = false;
break;
}
}
if (isTouchClick) {
let rect = new Rect(rects[0]);
let rect = new Rect(rects[0].left, rects[0].top, rects[0].width, rects[0].height);
if (rect.isEmpty())
return;

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

@ -63,6 +63,7 @@
#include "nsIMemoryReporter.h"
#include "mozilla/FunctionTimer.h"
#include "mozilla/Util.h"
namespace {
@ -293,7 +294,7 @@ Service::~Service()
if (rc != SQLITE_OK)
NS_WARNING("sqlite3 did not shutdown cleanly.");
bool shutdownObserved = !sXPConnect;
DebugOnly<bool> shutdownObserved = !sXPConnect;
NS_ASSERTION(shutdownObserved, "Shutdown was not observed!");
gService = nsnull;

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

@ -272,7 +272,6 @@ TestRunner.testFinished = function(tests) {
TestRunner.log("TEST-END | " +
TestRunner._urls[TestRunner._currentTest] +
" | finished in " + runtime + "ms");
TestRunner.log("TEST-INFO | Time is " + Math.floor(Date.now() / 1000));
TestRunner.updateUI(tests);
TestRunner._currentTest++;

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

@ -119,17 +119,13 @@ ifeq ($(MOZ_PKG_FORMAT),SFX7Z)
PKG_SUFFIX = .exe
INNER_MAKE_PACKAGE = rm -f app.7z && \
mv $(MOZ_PKG_DIR) core && \
(if [ -f ../optional_file_list.txt ]; then mkdir optional; xargs -I {} -a ../optional_file_list.txt mv -t optional/ core/{}; fi;) && \
$(CYGWIN_WRAPPER) 7z a -r -t7z app.7z -mx -m0=BCJ2 -m1=LZMA:d24 \
-m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3 && \
mv core $(MOZ_PKG_DIR) && \
(if [ -d optional ]; then mv optional/* $(MOZ_PKG_DIR); rm -rf optional; fi;) && \
cat $(SFX_HEADER) app.7z > $(PACKAGE) && \
chmod 0755 $(PACKAGE)
INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) core && \
rm -f ../optional_file_list.txt && \
mv core $(MOZ_PKG_DIR) && \
(if [ -d optional ]; then ls -1 optional > ../optional_file_list.txt; cp -rp optional/* $(MOZ_PKG_DIR); rm -rf optional; fi;)
mv core $(MOZ_PKG_DIR)
endif
#Create an RPM file