|
Switch arguments to const Length references for performance
The Length destructor is nontrivial and every non-const Length
argument adds an unnecessary branch from calling Length's destructor.
This patch removes most of the non-const Length arguments which should
lead to a small performance improvement.
A few LengthSize, LengthPoint, and LengthBox arguments were also
constref'ified for consistency.
No new tests as there is no observable change in behavior.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175107
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+107 lines, -106 lines) |
Patch |
 |
M |
Source/core/rendering/RenderBox.h
|
View
|
|
3 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBox.cpp
|
View
|
|
7 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBoxModelObject.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBoxModelObject.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/BasicShapes.h
|
View
|
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/FillLayer.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/RenderStyle.h
|
View
|
|
15 chunks |
+52 lines, -52 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/RenderStyle.cpp
|
View
|
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/platform/LengthBox.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/LengthPoint.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/platform/LengthSize.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/filters/FilterOperation.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|