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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user