Changeset 32416 in webkit


Ignore:
Timestamp:
Apr 22, 2008 5:45:53 PM (16 years ago)
Author:
hyatt@apple.com
Message:

2008-04-22 David Hyatt <hyatt@apple.com>

Fix for bug 18688, background-color stopped painting on inlines. Fix a virtual function
misnaming that led to the derived class not getting called properly.

Reviewed by Mark Rowe

  • ChangeLog:
  • rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::paintFillLayer):
  • rendering/RenderObject.h: (WebCore::RenderObject::paintFillLayerExtended):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r32413 r32416  
     12008-04-22  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for bug 18688, background-color stopped painting on inlines.  Fix a virtual function
     4        misnaming that led to the derived class not getting called properly.
     5
     6        Reviewed by Mark Rowe
     7
     8        * ChangeLog:
     9        * rendering/InlineFlowBox.cpp:
     10        (WebCore::InlineFlowBox::paintFillLayer):
     11        * rendering/RenderObject.h:
     12        (WebCore::RenderObject::paintFillLayerExtended):
     13
    1142008-04-22  Brady Eidson  <beidson@apple.com>
    215
  • trunk/WebCore/rendering/InlineFlowBox.cpp

    r32406 r32416  
    668668    bool hasFillImage = img && img->canRender(object()->style()->effectiveZoom());
    669669    if ((!hasFillImage && !object()->style()->hasBorderRadius()) || (!prevLineBox() && !nextLineBox()) || !parent())
    670         object()->paintFillExtended(paintInfo, c, fillLayer, my, mh, tx, ty, w, h, this);
     670        object()->paintFillLayerExtended(paintInfo, c, fillLayer, my, mh, tx, ty, w, h, this);
    671671    else {
    672672        // We have a fill image that spans multiple lines.
     
    687687        paintInfo.context->save();
    688688        paintInfo.context->clip(IntRect(tx, ty, width(), height()));
    689         object()->paintFillExtended(paintInfo, c, fillLayer, my, mh, startX, ty, totalWidth, h, this);
     689        object()->paintFillLayerExtended(paintInfo, c, fillLayer, my, mh, startX, ty, totalWidth, h, this);
    690690        paintInfo.context->restore();
    691691    }
  • trunk/WebCore/rendering/RenderObject.h

    r32406 r32416  
    477477    virtual void paintBoxDecorations(PaintInfo&, int tx, int ty) { }
    478478    virtual void paintMask(PaintInfo&, int tx, int ty) { }
    479     virtual void paintFillExtended(const PaintInfo&, const Color&, const FillLayer*,
    480                                    int clipy, int cliph, int tx, int ty, int width, int height,
    481                                    InlineFlowBox* box = 0) { }
     479    virtual void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*,
     480                                        int clipy, int cliph, int tx, int ty, int width, int height,
     481                                        InlineFlowBox* box = 0) { }
    482482
    483483   
Note: See TracChangeset for help on using the changeset viewer.