Changeset 103950 in webkit


Ignore:
Timestamp:
Jan 3, 2012 11:33:09 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

NULL ptr in WebCore::SVGStyledTransformableElement::animatedLocalTransform
https://bugs.webkit.org/show_bug.cgi?id=75227

Patch by Florin Malita <fmalita@google.com> on 2012-01-03
Reviewed by Dirk Schulze.

Source/WebCore:

Test: svg/custom/webkit-transform-crash.html

  • svg/SVGStyledTransformableElement.cpp:

(WebCore::SVGStyledTransformableElement::animatedLocalTransform):
Add a null-renderer check.

LayoutTests:

  • svg/custom/webkit-transform-crash-expected.txt: Added.
  • svg/custom/webkit-transform-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r103948 r103950  
     12012-01-03  Florin Malita  <fmalita@google.com>
     2
     3        NULL ptr in WebCore::SVGStyledTransformableElement::animatedLocalTransform
     4        https://bugs.webkit.org/show_bug.cgi?id=75227
     5
     6        Reviewed by Dirk Schulze.
     7
     8        * svg/custom/webkit-transform-crash-expected.txt: Added.
     9        * svg/custom/webkit-transform-crash.html: Added.
     10
    1112012-01-03  Alexis Menard  <alexis.menard@openbossa.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r103949 r103950  
     12012-01-03  Florin Malita  <fmalita@google.com>
     2
     3        NULL ptr in WebCore::SVGStyledTransformableElement::animatedLocalTransform
     4        https://bugs.webkit.org/show_bug.cgi?id=75227
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Test: svg/custom/webkit-transform-crash.html
     9
     10        * svg/SVGStyledTransformableElement.cpp:
     11        (WebCore::SVGStyledTransformableElement::animatedLocalTransform):
     12        Add a null-renderer check.
     13
    1142012-01-03  Alexis Menard  <alexis.menard@openbossa.org>
    215
  • trunk/Source/WebCore/svg/SVGStyledTransformableElement.cpp

    r101062 r103950  
    6565{
    6666    AffineTransform matrix;
    67     RenderStyle* style = renderer()->style();
     67    RenderStyle* style = renderer() ? renderer()->style() : 0;
    6868
    6969    // if CSS property was set, use that, otherwise fallback to attribute (if set)
    70     if (style->hasTransform()) {
     70    if (style && style->hasTransform()) {
    7171        TransformationMatrix t;
    7272        // For now, the transform-origin is not taken into account
Note: See TracChangeset for help on using the changeset viewer.