Changeset 23544 in webkit


Ignore:
Timestamp:
Jun 14, 2007 6:41:48 PM (17 years ago)
Author:
rwlbuis
Message:

Reviewed by Eric.

http://bugs.webkit.org/show_bug.cgi?id=14051
<svg:image> fails to position correctly when <svg> is inside an inline <div>

Leave parent translation to the containers.

Location:
branches/feature-branch
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-branch/LayoutTests/ChangeLog

    r23530 r23544  
     12007-06-15  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        Testcase for:
     6        http://bugs.webkit.org/show_bug.cgi?id=14051
     7        <svg:image> fails to position correctly when <svg> is inside an inline <div>
     8
     9        * svg/custom/image-parent-translation-expected.checksum: Added.
     10        * svg/custom/image-parent-translation-expected.png: Added.
     11        * svg/custom/image-parent-translation-expected.txt: Added.
     12        * svg/custom/image-parent-translation.xhtml: Added.
     13
    1142007-06-14  Rob Buis  <buis@kde.org>
    215
  • branches/feature-branch/WebCore/ChangeLog

    r23543 r23544  
     12007-06-15  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=14051
     6        <svg:image> fails to position correctly when <svg> is inside an inline <div>
     7
     8        Leave parent translation to the containers.
     9
     10        * rendering/RenderSVGImage.cpp:
     11        (WebCore::RenderSVGImage::paint):
     12
    1132007-06-15  Nikolas Zimmermann  <zimmermann@kde.org>
    214
  • branches/feature-branch/WebCore/rendering/RenderSVGImage.cpp

    r22098 r23544  
    124124}
    125125
    126 void RenderSVGImage::paint(PaintInfo& paintInfo, int parentX, int parentY)
     126void RenderSVGImage::paint(PaintInfo& paintInfo, int, int)
    127127{
    128128    if (paintInfo.context->paintingDisabled() || style()->visibility() == HIDDEN)
     
    130130   
    131131    paintInfo.context->save();
    132     paintInfo.context->concatCTM(AffineTransform().translate(parentX, parentY));
    133132    paintInfo.context->concatCTM(localTransform());
    134133    paintInfo.context->concatCTM(translationForAttributes());
     
    172171   
    173172    if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth())
    174         paintOutline(paintInfo.context, parentX, parentY, width(), height(), style());
     173        paintOutline(paintInfo.context, 0, 0, width(), height(), style());
    175174
    176175    paintInfo.context->restore();
Note: See TracChangeset for help on using the changeset viewer.