|
|
Switch from PrintTo to operator<< for platform printers
This patch adds operator<< on all platform datatypes which forwards
to the toString() functions added in crbug.com/632096.
For example, to print the value of a LayoutRect:
LayoutRect overflowRect(1, 2, 3, 4);
LOG(INFO) << "overflow: " << overflowRect;
Which prints:
overflow: "1,2 3x4"
gtests will automatically call the operator<< functions so the PrintTo
functions have been removed. operator<< is rare but follows
https://google.github.io/styleguide/cppguide.html.
Binary size difference on linux with is_official_build: 17808b :(
BUG= 632096
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+120 lines, -303 lines) |
Patch |
 |
M |
third_party/WebKit/Source/platform/blink_platform.gypi
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoublePoint.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoublePoint.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoubleRect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoubleRect.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoubleSize.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/DoubleSize.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatBox.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatBox.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatPoint.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatPoint.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatPoint3D.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatPoint3D.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatQuad.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatQuad.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatRect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatRect.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatRoundedRect.cpp
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatSize.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/FloatSize.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntPoint.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntPoint.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntRect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntRect.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntSize.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/IntSize.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutPoint.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutPoint.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutRect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutRect.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutSize.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/geometry/LayoutSize.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/testing/GeometryPrinters.h
|
View
|
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/testing/GeometryPrinters.cpp
|
View
|
|
1 chunk |
+0 lines, -111 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/testing/PaintPrinters.cpp
|
View
|
|
3 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
|
View
|
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/testing/TransformPrinters.h
|
View
|
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/platform/testing/TransformPrinters.cpp
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/transforms/AffineTransform.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/transforms/AffineTransform.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (2 generated)
|