summaryrefslogtreecommitdiffstats
path: root/webkit/common/cursors/webcursor_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/common/cursors/webcursor_mac.mm')
-rw-r--r--webkit/common/cursors/webcursor_mac.mm19
1 files changed, 9 insertions, 10 deletions
diff --git a/webkit/common/cursors/webcursor_mac.mm b/webkit/common/cursors/webcursor_mac.mm
index 11fd937..bbf18a4 100644
--- a/webkit/common/cursors/webcursor_mac.mm
+++ b/webkit/common/cursors/webcursor_mac.mm
@@ -158,18 +158,17 @@ CGImageRef CreateCGImageFromCustomData(const std::vector<char>& custom_data,
data = NULL;
}
- base::mac::ScopedCFTypeRef<CGColorSpaceRef> cg_color(
+ base::ScopedCFTypeRef<CGColorSpaceRef> cg_color(
CGColorSpaceCreateDeviceRGB());
// The settings here match SetCustomData() below; keep in sync.
- base::mac::ScopedCFTypeRef<CGContextRef> context(
- CGBitmapContextCreate(data,
- size.width(),
- size.height(),
- 8,
- size.width()*4,
- cg_color.get(),
- kCGImageAlphaPremultipliedLast |
- kCGBitmapByteOrder32Big));
+ base::ScopedCFTypeRef<CGContextRef> context(CGBitmapContextCreate(
+ data,
+ size.width(),
+ size.height(),
+ 8,
+ size.width() * 4,
+ cg_color.get(),
+ kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big));
return CGBitmapContextCreateImage(context.get());
}