Commit 667afd9c authored by loki@webkit.org's avatar loki@webkit.org

Initialization skipped error on WinCario after r147643

https://bugs.webkit.org/show_bug.cgi?id=114258

Reviewed by Csaba Osztrogonác.

Build fix. Adding extra block statement to avoid error C2362 on WinCario

* platform/win/DragImageCairoWin.cpp:
(WebCore::createDragImageFromImage):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ce75559e
2013-04-09 Gabor Loki <loki@webkit.org>
Initialization skipped error on WinCario after r147643
https://bugs.webkit.org/show_bug.cgi?id=114258
Reviewed by Csaba Osztrogonác.
Build fix. Adding extra block statement to avoid error C2362 on WinCario
* platform/win/DragImageCairoWin.cpp:
(WebCore::createDragImageFromImage):
2013-04-09 Jinwoo Song <jinwoo7.song@samsung.com>
[WK2] Remove build warnings for unused parameters
......@@ -168,15 +168,17 @@ DragImageRef createDragImageFromImage(Image* img, RespectImageOrientationEnum)
hbmp = 0;
}
cairo_t* cr = drawContext->cr();
cairo_set_source_rgb(cr, 1.0, 0.0, 1.0);
cairo_fill_preserve(cr);
RefPtr<cairo_surface_t> surface = img->nativeImageForCurrentFrame();
if (surface) {
// Draw the image.
cairo_set_source_surface(cr, surface.get(), 0.0, 0.0);
cairo_paint(cr);
{ // This block is required due to the msvc compiler error C2362.
cairo_t* cr = drawContext->cr();
cairo_set_source_rgb(cr, 1.0, 0.0, 1.0);
cairo_fill_preserve(cr);
RefPtr<cairo_surface_t> surface = img->nativeImageForCurrentFrame();
if (surface) {
// Draw the image.
cairo_set_source_surface(cr, surface.get(), 0.0, 0.0);
cairo_paint(cr);
}
}
deallocContext(drawContext);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment