Changeset 21087 in webkit


Ignore:
Timestamp:
Apr 25, 2007 10:21:06 AM (17 years ago)
Author:
rwlbuis
Message:

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=12163
SVG text does not appear in a scrolling <div>

Make sure SVG text is painted when scrolling by taking into account the

relative offset of the non-SVG parent in the paintInfo rect.

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r21083 r21087  
     12007-04-25  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Darin.
     4
     5        Testcase for:
     6        http://bugs.webkit.org/show_bug.cgi?id=12163
     7        SVG text does not appear in a scrolling <div>
     8
     9        * svg/custom/invisible-text-after-scrolling-expected.checksum: Added.
     10        * svg/custom/invisible-text-after-scrolling-expected.png: Added.
     11        * svg/custom/invisible-text-after-scrolling-expected.txt: Added.
     12        * svg/custom/invisible-text-after-scrolling.xhtml: Added.
     13
    1142007-04-25  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/WebCore/ChangeLog

    r21086 r21087  
     12007-04-25  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Darin.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=12163
     6        SVG text does not appear in a scrolling <div>
     7
     8        Make sure SVG text is painted when scrolling by taking into account the relative offset of the non-SVG parent in the paintInfo rect.
     9
     10        * rendering/RenderSVGContainer.cpp:
     11        (WebCore::RenderSVGContainer::paint):
     12
    1132007-04-26  Mark Rowe  <mrowe@apple.com>
    214
  • trunk/WebCore/rendering/RenderSVGContainer.cpp

    r21079 r21087  
    2626#include "RenderSVGContainer.h"
    2727
     28#include "GraphicsContext.h"
     29#include "SVGLength.h"
     30#include "SVGMarkerElement.h"
    2831#include "SVGResourceClipper.h"
    2932#include "SVGResourceFilter.h"
    3033#include "SVGResourceMasker.h"
     34#include "SVGSVGElement.h"
    3135#include "SVGStyledElement.h"
    3236#include "SVGURIReference.h"
    33 #include "GraphicsContext.h"
    34 #include "SVGLength.h"
    35 #include "SVGMarkerElement.h"
    36 #include "SVGSVGElement.h"
    3737
    3838namespace WebCore {
     
    167167        origin.move(borderLeft(), borderTop());
    168168        origin.move(paddingLeft(), paddingTop());
    169         if (origin.x() || origin.y())
     169        if (origin.x() || origin.y()) {
    170170            paintInfo.context->concatCTM(AffineTransform().translate(origin.x(), origin.y()));
     171            paintInfo.rect.move(-origin.x(), -origin.y());
     172        }
    171173        parentX = parentY = 0;
    172174    } else {
Note: See TracChangeset for help on using the changeset viewer.