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; 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, return ::CallWindowProc(self->mPluginWndProc, hWnd, message, wParam,
lParam); lParam);
} }

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

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

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

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

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

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

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

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

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

@ -585,15 +585,6 @@ let ContentScroll = {
let winCwu = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils); let winCwu = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
winCwu.setDisplayPortForElement(x, y, displayport.width, displayport.height, element); 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; break;
} }

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

@ -621,20 +621,25 @@ let Content = {
_sendMouseEvent: function _sendMouseEvent(aName, aElement, aX, aY, aButton) { _sendMouseEvent: function _sendMouseEvent(aName, aElement, aX, aY, aButton) {
// the element can be out of the aX/aY point because of the touch radius // 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)) { if (!(aElement instanceof HTMLHtmlElement)) {
let isTouchClick = true; let isTouchClick = true;
let rects = getContentClientRects(aElement); let rects = getContentClientRects(aElement);
for (let i = 0; i < rects.length; i++) { for (let i = 0; i < rects.length; i++) {
let rect = rects[i]; let rect = rects[i];
if ((aX > rect.left && aX < (rect.left + rect.width)) && // We might be able to deal with fractional pixels, but mouse events won't.
(aY > rect.top && aY < (rect.top + rect.height))) { // 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; isTouchClick = false;
break; break;
} }
} }
if (isTouchClick) { 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()) if (rect.isEmpty())
return; return;

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

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

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

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

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

@ -119,17 +119,13 @@ ifeq ($(MOZ_PKG_FORMAT),SFX7Z)
PKG_SUFFIX = .exe PKG_SUFFIX = .exe
INNER_MAKE_PACKAGE = rm -f app.7z && \ INNER_MAKE_PACKAGE = rm -f app.7z && \
mv $(MOZ_PKG_DIR) core && \ 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 \ $(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 && \ -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3 && \
mv core $(MOZ_PKG_DIR) && \ mv core $(MOZ_PKG_DIR) && \
(if [ -d optional ]; then mv optional/* $(MOZ_PKG_DIR); rm -rf optional; fi;) && \
cat $(SFX_HEADER) app.7z > $(PACKAGE) && \ cat $(SFX_HEADER) app.7z > $(PACKAGE) && \
chmod 0755 $(PACKAGE) chmod 0755 $(PACKAGE)
INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) core && \ INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) core && \
rm -f ../optional_file_list.txt && \ mv core $(MOZ_PKG_DIR)
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;)
endif endif
#Create an RPM file #Create an RPM file