Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Side by Side Diff: third_party/WebKit/Source/platform/testing/GeometryPrinters.cpp

Issue 1855303002: Replace filter outsets with bounds mapping in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: senorblanco review comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/testing/GeometryPrinters.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/testing/GeometryPrinters.h" 5 #include "platform/testing/GeometryPrinters.h"
6 6
7 #include "platform/geometry/FloatBox.h" 7 #include "platform/geometry/FloatBox.h"
8 #include "platform/geometry/FloatPoint.h" 8 #include "platform/geometry/FloatPoint.h"
9 #include "platform/geometry/FloatPoint3D.h" 9 #include "platform/geometry/FloatPoint3D.h"
10 #include "platform/geometry/FloatQuad.h" 10 #include "platform/geometry/FloatQuad.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 void PrintTo(const FloatSize& size, std::ostream* os) 113 void PrintTo(const FloatSize& size, std::ostream* os)
114 { 114 {
115 ScopedFloatFlags scope(*os); 115 ScopedFloatFlags scope(*os);
116 *os << "FloatSize(" 116 *os << "FloatSize("
117 << size.width() << ", " 117 << size.width() << ", "
118 << size.height() << ")"; 118 << size.height() << ")";
119 } 119 }
120 120
121 void PrintTo(const IntRect& rect, std::ostream* os)
122 {
123 *os << "IntRect("
124 << rect.x() << ", "
125 << rect.y() << ", "
126 << rect.width() << ", "
127 << rect.height() << ")";
128 }
129
121 void PrintTo(const LayoutRect& rect, std::ostream* os) 130 void PrintTo(const LayoutRect& rect, std::ostream* os)
122 { 131 {
123 ScopedFloatFlags scope(*os); 132 ScopedFloatFlags scope(*os);
124 *os << "LayoutRect(" 133 *os << "LayoutRect("
125 << rect.x().toFloat() << ", " 134 << rect.x().toFloat() << ", "
126 << rect.y().toFloat() << ", " 135 << rect.y().toFloat() << ", "
127 << rect.width().toFloat() << ", " 136 << rect.width().toFloat() << ", "
128 << rect.height().toFloat() << ")"; 137 << rect.height().toFloat() << ")";
129 } 138 }
130 139
131 } // namespace blink 140 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/GeometryPrinters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698