зеркало из https://github.com/mozilla/pjs.git
Bug 398363 - "Removing Cairo Checks in nsBaseDragService" [p=xfsunoles@gmail.com (Jonathan Steele) r+sr+a1.9=roc]
This commit is contained in:
Родитель
78112d3bae
Коммит
c52ba11630
|
@ -71,12 +71,9 @@
|
|||
#include "nsGUIEvent.h"
|
||||
#include "nsIPrefService.h"
|
||||
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
#include "gfxContext.h"
|
||||
#include "gfxImageSurface.h"
|
||||
|
||||
#endif
|
||||
|
||||
#define DRAGIMAGES_PREF "nglayout.enable_drag_images"
|
||||
|
||||
nsBaseDragService::nsBaseDragService()
|
||||
|
@ -359,8 +356,6 @@ nsBaseDragService::FireDragEventAtSource(PRUint32 aMsg)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
|
||||
static nsIPresShell*
|
||||
GetPresShellForContent(nsIDOMNode* aDOMNode)
|
||||
{
|
||||
|
@ -574,5 +569,3 @@ nsBaseDragService::DrawDragForImage(nsPresContext* aPresContext,
|
|||
gfxRect outRect = gfxRect(destRect.x, destRect.y, destRect.width, destRect.height);
|
||||
return img->Draw(*rc, inRect, outRect);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -46,9 +46,7 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsIRenderingContext.h"
|
||||
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
#include "gfxImageSurface.h"
|
||||
#endif
|
||||
|
||||
// translucency level for drag images
|
||||
#define DRAG_TRANSLUCENCY 0.65
|
||||
|
@ -79,7 +77,6 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
/**
|
||||
* Draw the drag image, if any, to a surface and return it. The drag image
|
||||
* is constructed from mImage if specified, or aDOMNode if mImage is null.
|
||||
|
@ -112,7 +109,6 @@ protected:
|
|||
PRInt32 aScreenX, PRInt32 aScreenY,
|
||||
nsRect* aScreenDragRect,
|
||||
gfxASurface** aSurface);
|
||||
#endif
|
||||
|
||||
PRPackedBool mCanDrop;
|
||||
PRPackedBool mDoingDrag;
|
||||
|
|
Загрузка…
Ссылка в новой задаче