Title: [87534] trunk/Source/WebCore
Revision
87534
Author
zimmerm...@webkit.org
Date
2011-05-27 12:32:57 -0700 (Fri, 27 May 2011)

Log Message

2011-05-27  Nikolas Zimmermann  <nzimmerm...@rim.com>

        Rubber-stamped by Rob Buis.

        embedded SVG object doesn't scale right
        https://bugs.webkit.org/show_bug.cgi?id=10526

        Fixes crash in svg/custom/immutable-properties.html, seen on the bots.

        * svg/SVGLength.cpp:
        (WebCore::SVGLength::determineViewport): Oops forgot to merge-in a null check before landing.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (87533 => 87534)


--- trunk/Source/WebCore/ChangeLog	2011-05-27 19:32:50 UTC (rev 87533)
+++ trunk/Source/WebCore/ChangeLog	2011-05-27 19:32:57 UTC (rev 87534)
@@ -1,5 +1,17 @@
 2011-05-27  Nikolas Zimmermann  <nzimmerm...@rim.com>
 
+        Rubber-stamped by Rob Buis.
+
+        embedded SVG object doesn't scale right
+        https://bugs.webkit.org/show_bug.cgi?id=10526
+
+        Fixes crash in svg/custom/immutable-properties.html, seen on the bots.
+
+        * svg/SVGLength.cpp:
+        (WebCore::SVGLength::determineViewport): Oops forgot to merge-in a null check before landing.
+
+2011-05-27  Nikolas Zimmermann  <nzimmerm...@rim.com>
+
         Reviewed by Rob Buis.
 
         embedded SVG object doesn't scale right

Modified: trunk/Source/WebCore/svg/SVGLength.cpp (87533 => 87534)


--- trunk/Source/WebCore/svg/SVGLength.cpp	2011-05-27 19:32:50 UTC (rev 87533)
+++ trunk/Source/WebCore/svg/SVGLength.cpp	2011-05-27 19:32:57 UTC (rev 87534)
@@ -321,6 +321,9 @@
     if (document->documentElement() == context) {
         if (context->isSVG()) {
             Frame* frame = context->document() ? context->document()->frame() : 0;
+            if (!frame)
+                return false;
+
             if (RenderPart* ownerRenderer = frame->ownerRenderer()) {
                 width = ownerRenderer->width();
                 height = ownerRenderer->height();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to