Bug 382756: ASSERTION: When exactly is this supposed to be non-zero?. r+sr=roc.
authorsharparrow1@yahoo.com
Fri, 29 Jun 2007 18:41:10 -0700
changeset 2948 bd6d109cb8578c9a954be222a8ceeef0b15c188c
parent 2947 2ac122696d2d3d20ccce2c0ab1a13acc7bfd9bbb
child 2949 60e2d833ba32e68a6f9d198a9f4fa1c167fd7366
push idunknown
push userunknown
push dateunknown
bugs382756
milestone1.9a6pre
Bug 382756: ASSERTION: When exactly is this supposed to be non-zero?. r+sr=roc.
view/src/nsViewManager.cpp
--- a/view/src/nsViewManager.cpp
+++ b/view/src/nsViewManager.cpp
@@ -478,19 +478,18 @@ void nsViewManager::Refresh(nsView *aVie
     (gfxContext*) localcx->GetNativeGraphicData(nsIRenderingContext::NATIVE_THEBES_CONTEXT);
 
   ctx->Save();
 
   nsPoint vtowoffset = aView->ViewToWidgetOffset();
   ctx->Translate(gfxPoint(gfxFloat(vtowoffset.x) / p2a,
                           gfxFloat(vtowoffset.y) / p2a));
 
-  NS_ASSERTION(!viewRect.x && !viewRect.y, "When exactly is this supposed to be non-zero?");
-  ctx->Translate(gfxPoint(gfxFloat(viewRect.x) / p2a,
-                          gfxFloat(viewRect.y) / p2a));
+  ctx->Translate(gfxPoint(-gfxFloat(viewRect.x) / p2a,
+                          -gfxFloat(viewRect.y) / p2a));
 
   nsRegion opaqueRegion;
   AddCoveringWidgetsToOpaqueRegion(opaqueRegion, mContext, aView);
   damageRegion.Sub(damageRegion, opaqueRegion);
 
   RenderViews(aView, *localcx, damageRegion);
 
   ctx->Restore();