Changeset 48810 in webkit


Ignore:
Timestamp:
Sep 28, 2009 6:35:39 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-09-28 Charles Wei <charles.wei@torchmobile.com.cn>

Reviewed by Nikolas Zimmermann.

Fix the crash of SVG that crashes when use a non-exist symbol
https://bugs.webkit.org/show_bug.cgi?id=27693

  • svg/custom/use-non-existing-symbol-crash-expected.txt: Added.
  • svg/custom/use-non-existing-symbol-crash.svg: Added.

2009-09-28 Charles Wei <charles.wei@torchmobile.com.cn>

Reviewed by Nikolas Zimmermann.

Fix the crash of SVG that crashes when use a non-exist symbol
https://bugs.webkit.org/show_bug.cgi?id=27693

Test: svg/custom/use-non-existing-symbol-crash.svg

  • svg/SVGUseElement.cpp: (WebCore::shadowTreeContainsChangedNodes):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r48806 r48810  
     12009-09-28  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        Fix the crash of SVG that crashes when use a non-exist symbol
     6        https://bugs.webkit.org/show_bug.cgi?id=27693
     7
     8        * svg/custom/use-non-existing-symbol-crash-expected.txt: Added.
     9        * svg/custom/use-non-existing-symbol-crash.svg: Added.
     10
    1112009-09-27  Sam Weinig  <sam@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r48809 r48810  
     12009-09-28  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        Fix the crash of SVG that crashes when use a non-exist symbol
     6        https://bugs.webkit.org/show_bug.cgi?id=27693
     7
     8        Test: svg/custom/use-non-existing-symbol-crash.svg
     9
     10        * svg/SVGUseElement.cpp:
     11        (WebCore::shadowTreeContainsChangedNodes):
     12
    1132009-09-28  Joseph Pecoraro  <joepeck@webkit.org>
    214
  • trunk/WebCore/svg/SVGUseElement.cpp

    r48701 r48810  
    22    Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
    33                  2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
     4    Copyright (C) Research In Motion Limited 2009, All rights reserved. Charles Wei <charles.wei@torchmobile.com.cn>
    45
    56    This file is part of the KDE project
     
    159160static bool shadowTreeContainsChangedNodes(SVGElementInstance* target)
    160161{
     162    if (!target)      // when use is referencing an non-existing element, there will be no Instance tree built
     163        return false;
     164
    161165    if (target->needsUpdate())
    162166        return true;
Note: See TracChangeset for help on using the changeset viewer.