mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out c891149d1ca4 (bug 719776) for Windows build bustage
This commit is contained in:
parent
49bb21ce6d
commit
c4f2e41c4e
@ -325,9 +325,7 @@ struct AutoPaintSetup {
|
||||
mPaint.setAntiAlias(false);
|
||||
}
|
||||
|
||||
if (aOptions.mSnapping != SNAP_NONE) {
|
||||
gfxDebug() << "Pixel snapping not supported yet!";
|
||||
}
|
||||
NS_ASSERTION(aOptions.mSnapping == SNAP_NONE, "Pixel snapping not supported yet!");
|
||||
|
||||
// TODO: We could skip the temporary for operator_source and just
|
||||
// clear the clip rect. The other operators would be harder
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
#include "gfxImageSurface.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
@ -136,6 +137,7 @@ private:
|
||||
SkBitmap mBitmap;
|
||||
SkRefPtr<SkCanvas> mCanvas;
|
||||
SkRefPtr<SkDevice> mDevice;
|
||||
nsRefPtr<gfxImageSurface> mImageSurface;
|
||||
vector<SourceSurfaceSkia*> mSnapshots;
|
||||
};
|
||||
|
||||
|
@ -152,7 +152,7 @@ Factory::CreateScaledFontForNativeFont(const NativeFont &aNativeFont, Float aSiz
|
||||
#ifdef WIN32
|
||||
case NATIVE_FONT_GDI_FONT_FACE:
|
||||
{
|
||||
return new ScaledFontWin(static_cast<LOGFONT*>(aNativeFont.mFont), aSize);
|
||||
return new ScaledFontWin(static_cast<gfxGDIFont*>(aNativeFont.mFont), aSize);
|
||||
}
|
||||
#endif
|
||||
case NATIVE_FONT_SKIA_FONT_FACE:
|
||||
|
@ -37,6 +37,8 @@
|
||||
|
||||
#include "ScaledFontBase.h"
|
||||
|
||||
#include "gfxFont.h"
|
||||
|
||||
#ifdef USE_SKIA
|
||||
#include "PathSkia.h"
|
||||
#include "skia/SkPaint.h"
|
||||
|
@ -45,10 +45,11 @@
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
ScaledFontWin::ScaledFontWin(LOGFONT* aFont, Float aSize)
|
||||
ScaledFontWin::ScaledFontWin(gfxGDIFont* aFont, Float aSize)
|
||||
: ScaledFontBase(aSize)
|
||||
, mLogFont(*aFont)
|
||||
{
|
||||
LOGFONT lf;
|
||||
GetObject(aFont->GetHFONT(), sizeof(LOGFONT), &lf);
|
||||
}
|
||||
|
||||
#ifdef USE_SKIA
|
||||
|
@ -39,7 +39,7 @@
|
||||
#define MOZILLA_GFX_SCALEDFONTWIN_H_
|
||||
|
||||
#include "ScaledFontBase.h"
|
||||
#include <windows.h>
|
||||
#include "gfxGDIFont.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
@ -47,7 +47,7 @@ namespace gfx {
|
||||
class ScaledFontWin : public ScaledFontBase
|
||||
{
|
||||
public:
|
||||
ScaledFontWin(LOGFONT* aFont, Float aSize);
|
||||
ScaledFontWin(gfxGDIFont* aFont, Float aSize);
|
||||
|
||||
virtual FontType GetType() const { return FONT_GDI; }
|
||||
#ifdef USE_SKIA
|
||||
@ -57,7 +57,6 @@ private:
|
||||
#ifdef USE_SKIA
|
||||
friend class DrawTargetSkia;
|
||||
#endif
|
||||
LOGFONT mLogFont;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -725,9 +725,7 @@ gfxWindowsPlatform::GetScaledFontForFont(gfxFont *aFont)
|
||||
|
||||
NativeFont nativeFont;
|
||||
nativeFont.mType = NATIVE_FONT_GDI_FONT_FACE;
|
||||
LOGFONT lf;
|
||||
GetObject(aFont->GetHFONT(), sizeof(LOGFONT), &lf);
|
||||
nativeFont.mFont = &lf;
|
||||
nativeFont.mFont = aFont;
|
||||
RefPtr<ScaledFont> scaledFont =
|
||||
Factory::CreateScaledFontForNativeFont(nativeFont, aFont->GetAdjustedSize());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user