⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 100215 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 4:39:21 PM (15 years ago)
Author:
eae@chromium.org
Message:

Remove FixedRect stream operator and move FloatRect version back to svg/

Location:
branches/subpixellayout/Source/WebCore/rendering
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.cpp

    r100201 r100215  
    9292}
    9393
    94 TextStream& operator<<(TextStream& ts, const FixedRect& r)
    95 {
    96     // FIXME: These should be printed as floats. Keeping them ints for consistency with pervious test expectations.
    97     return ts << "at (" << r.x().toInt() << "," << r.y().toInt() << ") size " << r.width().toInt() << "x" << r.height().toInt();
    98 }
    99 
    100 TextStream& operator<<(TextStream& ts, const FloatRect &r)
    101 {
    102     ts << "at (";
    103     if (hasFractions(r.x()))
    104         ts << r.x();
    105     else
    106         ts << int(r.x());
    107     ts << ",";
    108     if (hasFractions(r.y()))
    109         ts << r.y();
    110     else
    111         ts << int(r.y());
    112     ts << ") size ";
    113     if (hasFractions(r.width()))
    114         ts << r.width();
    115     else
    116         ts << int(r.width());
    117     ts << "x";
    118     if (hasFractions(r.height()))
    119         ts << r.height();
    120     else
    121         ts << int(r.height());
    122     return ts;
    123 }
    124 
    12594TextStream& operator<<(TextStream& ts, const IntPoint& p)
    12695{
  • branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.h

    r98165 r100215  
    7575TextStream& operator<<(TextStream&, const IntRect&);
    7676TextStream& operator<<(TextStream&, const FixedPoint&);
    77 TextStream& operator<<(TextStream&, const FixedRect&);
    78 TextStream& operator<<(TextStream&, const FloatRect&);
    7977TextStream& operator<<(TextStream&, const FloatPoint&);
    8078TextStream& operator<<(TextStream&, const FloatSize&);
  • branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp

    r100188 r100215  
    132132}
    133133
     134TextStream& operator<<(TextStream& ts, const FloatRect &r)
     135{
     136    ts << "at (";
     137    if (hasFractions(r.x()))
     138        ts << r.x();
     139    else
     140        ts << int(r.x());
     141    ts << ",";
     142    if (hasFractions(r.y()))
     143        ts << r.y();
     144    else
     145        ts << int(r.y());
     146    ts << ") size ";
     147    if (hasFractions(r.width()))
     148        ts << r.width();
     149    else
     150        ts << int(r.width());
     151    ts << "x";
     152    if (hasFractions(r.height()))
     153        ts << r.height();
     154    else
     155        ts << int(r.height());
     156    return ts;
     157}
     158
    134159TextStream& operator<<(TextStream& ts, const AffineTransform& transform)
    135160{
  • branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.h

    r98165 r100215  
    6262TextStream& operator<<(TextStream&, const AffineTransform&);
    6363TextStream& operator<<(TextStream&, const Color&);
     64TextStream& operator<<(TextStream&, const FloatRect&);
    6465
    6566// helper operators specific to dumping the render tree. these are used in various classes to dump the render tree
Note: See TracChangeset for help on using the changeset viewer.