| Index: third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
|
| diff --git a/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp b/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
|
| index 7e7b2ddaefc79d83e025f933187d05644953f871..68e27c56387a3d4dd48a593b39e8b4adaee2f9f9 100644
|
| --- a/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
|
| +++ b/third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
|
| @@ -142,21 +142,6 @@ void LayoutRect::scale(float xAxisScale, float yAxisScale)
|
| m_size.scale(xAxisScale, yAxisScale);
|
| }
|
|
|
| -#ifndef NDEBUG
|
| -void LayoutRect::show(bool showRawValue) const
|
| -{
|
| - if (showRawValue)
|
| - printf("Rect (in raw layout units): [x=%d y=%d maxX=%d maxY=%d]\n", x().rawValue(), y().rawValue(), maxX().rawValue(), maxY().rawValue());
|
| - else
|
| - printf("Rect (in pixels): [x=%lf y=%lf maxX=%lf maxY=%lf]\n", x().toDouble(), y().toDouble(), maxX().toDouble(), maxY().toDouble());
|
| -}
|
| -
|
| -String LayoutRect::toString() const
|
| -{
|
| - return String::format("%s %s", location().toString().ascii().data(), size().toString().ascii().data());
|
| -}
|
| -#endif
|
| -
|
| LayoutRect unionRect(const Vector<LayoutRect>& rects)
|
| {
|
| LayoutRect result;
|
| @@ -196,4 +181,11 @@ LayoutRect enclosingLayoutRect(const FloatRect& rect)
|
| return LayoutRect(location, maxPoint - location);
|
| }
|
|
|
| +String LayoutRect::toString() const
|
| +{
|
| + return String::format("%s %s",
|
| + location().toString().ascii().data(),
|
| + size().toString().ascii().data());
|
| +}
|
| +
|
| } // namespace blink
|
|
|