Changeset 15968 in webkit


Ignore:
Timestamp:
Aug 22, 2006, 11:56:33 AM (19 years ago)
Author:
rwlbuis
Message:

Reviewed by Eric.

http://bugzilla.opendarwin.org/show_bug.cgi?id=10402
REPRO: SVG crashes inside gradient code

Make sure we do not try to update the canvas resource/gradient paintserver when it is not yet built.

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r15963 r15968  
     12006-08-22  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        Testcase for:
     6        http://bugzilla.opendarwin.org/show_bug.cgi?id=10402
     7        REPRO: SVG crashes inside gradient code
     8
     9        * svg/custom/gradient-attr-update-expected.checksum: Added.
     10        * svg/custom/gradient-attr-update-expected.png: Added.
     11        * svg/custom/gradient-attr-update-expected.txt: Added.
     12        * svg/custom/gradient-attr-update.svg: Added.
     13
    1142006-08-22  Rob Buis  <buis@kde.org>
    215
  • trunk/WebCore/ChangeLog

    r15967 r15968  
     12006-08-22  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        http://bugzilla.opendarwin.org/show_bug.cgi?id=10402
     6        REPRO: SVG crashes inside gradient code
     7
     8        Make sure we do not try to update the canvas resource/gradient paintserver when it is not yet built.
     9
     10        * ksvg2/svg/SVGGradientElement.cpp:
     11        (SVGGradientElement::notifyAttributeChange):
     12        (SVGGradientElement::resourceNotification):
     13
    1142006-08-22  David Harrison  <harrison@apple.com>
    215
  • trunk/WebCore/ksvg2/svg/SVGGradientElement.cpp

    r15828 r15968  
    104104void SVGGradientElement::notifyAttributeChange() const
    105105{
    106     if(ownerDocument()->parsing() || !attached())
     106    if(ownerDocument()->parsing() || !attached() || !m_resource)
    107107        return;
    108108
     
    136136{
    137137    // We're referenced by a "client", build the gradient now...
    138     buildGradient(m_resource);
     138    buildGradient(const_cast<SVGGradientElement*>(this)->canvasResource());
    139139}
    140140
Note: See TracChangeset for help on using the changeset viewer.