Commit bb77ef9e authored by jmalonzo@webkit.org's avatar jmalonzo@webkit.org

2008-10-18 Jan Michael Alonzo <jmalonzo@webkit.org>

        Reviewed by Alp Toker.

        [GTK] crash after selecting a file on an <input type=file>
        https://bugs.webkit.org/show_bug.cgi?id=21385

        Follow Mac and Win's behaviors for Icon::paint

        * platform/graphics/gtk/IconGtk.cpp:
        (WebCore::Icon::paint): check if painting is enabled before
        painting the icon

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a5fc2106
2008-10-18 Jan Michael Alonzo <jmalonzo@webkit.org>
Reviewed by Alp Toker.
[GTK] crash after selecting a file on an <input type=file>
https://bugs.webkit.org/show_bug.cgi?id=21385
Follow Mac and Win's behaviors for Icon::paint
* platform/graphics/gtk/IconGtk.cpp:
(WebCore::Icon::paint): check if painting is enabled before
painting the icon
2008-10-18 Zan Dobersek <zandobersek@gmail.com>
Reviewed by Oliver Hunt.
......
......@@ -105,6 +105,9 @@ PassRefPtr<Icon> Icon::newIconForFile(const String& filename)
void Icon::paint(GraphicsContext* context, const IntRect& rect)
{
if (context->paintingDisabled())
return;
// TODO: Scale/clip the image if necessary.
cairo_t* cr = context->platformContext();
cairo_save(cr);
......
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