Changeset 100215 in webkit
- Timestamp:
- Nov 14, 2011, 4:39:21 PM (15 years ago)
- Location:
- branches/subpixellayout/Source/WebCore/rendering
- Files:
-
- 4 edited
-
RenderTreeAsText.cpp (modified) (1 diff)
-
RenderTreeAsText.h (modified) (1 diff)
-
svg/SVGRenderTreeAsText.cpp (modified) (1 diff)
-
svg/SVGRenderTreeAsText.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.cpp
r100201 r100215 92 92 } 93 93 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 else106 ts << int(r.x());107 ts << ",";108 if (hasFractions(r.y()))109 ts << r.y();110 else111 ts << int(r.y());112 ts << ") size ";113 if (hasFractions(r.width()))114 ts << r.width();115 else116 ts << int(r.width());117 ts << "x";118 if (hasFractions(r.height()))119 ts << r.height();120 else121 ts << int(r.height());122 return ts;123 }124 125 94 TextStream& operator<<(TextStream& ts, const IntPoint& p) 126 95 { -
branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.h
r98165 r100215 75 75 TextStream& operator<<(TextStream&, const IntRect&); 76 76 TextStream& operator<<(TextStream&, const FixedPoint&); 77 TextStream& operator<<(TextStream&, const FixedRect&);78 TextStream& operator<<(TextStream&, const FloatRect&);79 77 TextStream& operator<<(TextStream&, const FloatPoint&); 80 78 TextStream& operator<<(TextStream&, const FloatSize&); -
branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
r100188 r100215 132 132 } 133 133 134 TextStream& 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 134 159 TextStream& operator<<(TextStream& ts, const AffineTransform& transform) 135 160 { -
branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.h
r98165 r100215 62 62 TextStream& operator<<(TextStream&, const AffineTransform&); 63 63 TextStream& operator<<(TextStream&, const Color&); 64 TextStream& operator<<(TextStream&, const FloatRect&); 64 65 65 66 // 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.