Changeset 37679 in webkit


Ignore:
Timestamp:
Oct 18, 2008 2:23:59 PM (16 years ago)
Author:
jmalonzo@webkit.org
Message:

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
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r37677 r37679  
     12008-10-18  Jan Michael Alonzo  <jmalonzo@webkit.org>
     2
     3        Reviewed by Alp Toker.
     4
     5        [GTK] crash after selecting a file on an <input type=file>
     6        https://bugs.webkit.org/show_bug.cgi?id=21385
     7
     8        Follow Mac and Win's behaviors for Icon::paint
     9
     10        * platform/graphics/gtk/IconGtk.cpp:
     11        (WebCore::Icon::paint): check if painting is enabled before
     12        painting the icon
     13
    1142008-10-18  Zan Dobersek  <zandobersek@gmail.com>
    215
  • trunk/WebCore/platform/graphics/gtk/IconGtk.cpp

    r34544 r37679  
    106106void Icon::paint(GraphicsContext* context, const IntRect& rect)
    107107{
     108    if (context->paintingDisabled())
     109        return;
     110
    108111    // TODO: Scale/clip the image if necessary.
    109112    cairo_t* cr = context->platformContext();
Note: See TracChangeset for help on using the changeset viewer.