Changeset 69701 in webkit


Ignore:
Timestamp:
Oct 13, 2010 3:24:58 PM (14 years ago)
Author:
Martin Robinson
Message:

2010-10-13 Martin Robinson <mrobinson@igalia.com>

Reviewed by Holger Freyther.

[GTK] r69681 caused some tests to crash
https://bugs.webkit.org/show_bug.cgi?id=47622

Properly initialize m_layerContext on the ContextShadow so that in situations
where beginShadowLayer bails out early with a null return value, it is set
to null. This may happen when the first call to beginShadowLayer on a particular
ContextShadow uses a region which is entirely outside the clip region or which
is empty.

  • platform/graphics/cairo/ContextShadow.cpp: (WebCore::ContextShadow::ContextShadow): Properly initialize m_layerContext.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69700 r69701  
     12010-10-13  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Holger Freyther.
     4
     5        [GTK] r69681 caused some tests to crash
     6        https://bugs.webkit.org/show_bug.cgi?id=47622
     7
     8        Properly initialize m_layerContext on the ContextShadow so that in situations
     9        where beginShadowLayer bails out early with a null return value, it is set
     10        to null. This may happen when the first call to beginShadowLayer on a particular
     11        ContextShadow uses a region which is entirely outside the clip region or which
     12        is empty.
     13
     14        * platform/graphics/cairo/ContextShadow.cpp:
     15        (WebCore::ContextShadow::ContextShadow): Properly initialize m_layerContext.
     16
    1172010-10-13  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/WebCore/platform/graphics/ContextShadow.cpp

    r69223 r69701  
    4141    : m_type(NoShadow)
    4242    , m_blurDistance(0)
     43    , m_layerContext(0)
    4344{
    4445}
     
    4849    , m_blurDistance(round(radius))
    4950    , m_offset(offset)
     51    , m_layerContext(0)
    5052{
    5153    // See comments in http://webkit.org/b/40793, it seems sensible
Note: See TracChangeset for help on using the changeset viewer.