Changeset 36856 in webkit


Ignore:
Timestamp:
Sep 24, 2008 12:23:54 PM (16 years ago)
Author:
rwlbuis@webkit.org
Message:

Reviewed by Darin.

https://bugs.webkit.org/show_bug.cgi?id=20557
getScreenCTM() returns wrong values

Use the absolute position of the svg root when
determining the screen ctm.

Test: svg/custom/getscreenctm-in-mixed-content2.xhtml

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r36842 r36856  
     12008-09-24  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Darin.
     4
     5        Test for:
     6        https://bugs.webkit.org/show_bug.cgi?id=20557
     7        getScreenCTM() returns wrong values
     8
     9        * svg/custom/getscreenctm-in-mixed-content2-expected.txt: Added.
     10        * svg/custom/getscreenctm-in-mixed-content2.xhtml: Added.
     11
    1122008-09-23  Geoffrey Garen  <ggaren@apple.com>
    213
  • trunk/WebCore/ChangeLog

    r36855 r36856  
     12008-09-24  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Darin.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=20557
     6        getScreenCTM() returns wrong values
     7
     8        Use the absolute position of the svg root when
     9        determining the screen ctm.
     10
     11        Test: svg/custom/getscreenctm-in-mixed-content2.xhtml
     12
     13        * svg/SVGSVGElement.cpp:
     14        (WebCore::SVGSVGElement::getScreenCTM):
     15
    1162008-09-24  David Hyatt  <hyatt@apple.com>
    217
  • trunk/WebCore/svg/SVGSVGElement.cpp

    r36466 r36856  
    11/*
    22    Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
    3                   2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
     3                  2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
    44                  2007 Apple Inc.  All rights reserved.
    55
     
    397397   
    398398    if (RenderObject* renderer = this->renderer()) {
    399         renderer = renderer->parent();
    400399        if (isOutermostSVG()) {
    401400            int tx = 0;
    402401            int ty = 0;
    403             if (renderer)
     402            if (renderer->parent())
    404403                renderer->absolutePosition(tx, ty, true);
    405404            rootX += tx;
Note: See TracChangeset for help on using the changeset viewer.