Bug 959380 - 3/5 - Make gfxSurfaceType a typed enum - r=jrmuizel

find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxSurfaceType\(Image\|PDF\|PS\|Xlib\|Xcb\|Glitz\|Quartz\|Win32\|BeOS\|DirectFB\|SVG\|OS2\|Win32Printing\|QuartzImage\|Script\|QPainter\|Recording\|VG\|GL\|DRM\|Tee\|XML\|Skia\|Subsurface\|D2D\|Max\)\($\|[^A-Za-z0-9_]\)/\1gfxSurfaceType::\2\3/g'
This commit is contained in:
Benoit Jacob
2014-01-23 13:26:40 -05:00
parent 844232d97c
commit 2bd34eb690
28 changed files with 102 additions and 102 deletions

View File

@@ -139,7 +139,7 @@ PaintContext(gfxPattern* aPattern,
// correctness and use NONE.
if (aContext->IsCairo()) {
nsRefPtr<gfxASurface> target = aContext->CurrentSurface();
if (target->GetType() == gfxSurfaceTypeXlib &&
if (target->GetType() == gfxSurfaceType::Xlib &&
static_cast<gfxXlibSurface*>(target.get())->IsPadSlow()) {
extend = gfxPattern::EXTEND_NONE;
}