|
LabelButton: cache the last computed preferred size
LabelButton's GetPreferredSize() gets called a lot, and it's pretty
expensive (creates a temporary label every time). To make it less sucky, we
should cache its last computed size and reuse that, just like Label does.
BUG= 373906
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285587
Total comments: 24
Total comments: 3
Total comments: 6
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+84 lines, -34 lines) |
Patch |
 |
M |
ash/system/chromeos/session/logout_button_tray.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/content_setting_bubble_contents.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/fullscreen_exit_bubble_views.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/location_bar/search_button.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/profiles/new_avatar_button.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/button_drag_utils.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/button/checkbox.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/button/label_button.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/button/label_button.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
8 chunks |
+28 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/button/label_button_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+24 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/button_example.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/window/dialog_client_view.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 37 (0 generated)
|