diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-10 15:31:59 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-17 13:35:59 -0800 |
commit | 28040489d744e0c5d475a88663056c9040ed5320 (patch) | |
tree | c463676791e4a63e452a95f0a12b2a8519730693 /WebCore/platform/gtk/DragImageGtk.cpp | |
parent | eff9be92c41913c92fb1d3b7983c071f3e718678 (diff) | |
download | external_webkit-28040489d744e0c5d475a88663056c9040ed5320.zip external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.gz external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.bz2 |
Merge WebKit at r71558: Initial merge by git.
Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c
Diffstat (limited to 'WebCore/platform/gtk/DragImageGtk.cpp')
-rw-r--r-- | WebCore/platform/gtk/DragImageGtk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/platform/gtk/DragImageGtk.cpp b/WebCore/platform/gtk/DragImageGtk.cpp index 9d0d838..71a65e1 100644 --- a/WebCore/platform/gtk/DragImageGtk.cpp +++ b/WebCore/platform/gtk/DragImageGtk.cpp @@ -21,7 +21,7 @@ #include "CachedImage.h" #include "Image.h" -#include "PlatformRefPtrCairo.h" +#include "RefPtrCairo.h" #include <cairo.h> namespace WebCore { @@ -49,7 +49,7 @@ DragImageRef scaleDragImage(DragImageRef image, FloatSize scale) int newHeight = scale.height() * cairo_image_surface_get_height(image); cairo_surface_t* scaledSurface = cairo_surface_create_similar(image, CAIRO_CONTENT_COLOR_ALPHA, newWidth, newHeight); - PlatformRefPtr<cairo_t> context = adoptPlatformRef(cairo_create(scaledSurface)); + RefPtr<cairo_t> context = adoptRef(cairo_create(scaledSurface)); cairo_scale(context.get(), scale.width(), scale.height()); cairo_pattern_set_extend(cairo_get_source(context.get()), CAIRO_EXTEND_PAD); cairo_pattern_set_filter(cairo_get_source(context.get()), CAIRO_FILTER_BEST); @@ -66,7 +66,7 @@ DragImageRef dissolveDragImageToFraction(DragImageRef image, float fraction) if (!image) return 0; - PlatformRefPtr<cairo_t> context = adoptPlatformRef(cairo_create(image)); + RefPtr<cairo_t> context = adoptRef(cairo_create(image)); cairo_set_operator(context.get(), CAIRO_OPERATOR_DEST_IN); cairo_set_source_rgba(context.get(), 0, 0, 0, fraction); cairo_paint(context.get()); |