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

Issue 9288017: WebUI TaskManager: Use the specified height of row on refleshing. (Closed)

Created:
8 years, 11 months ago by yoshiki
Modified:
8 years, 10 months ago
Reviewers:
mazda, James Hawkins
CC:
chromium-reviews, arv (Not doing code reviews), yoshiki+watch_chromium.org
Visibility:
Public.

Description

WebUI TaskManager: Use the specified height of row on refleshing. Measuring of element is expensive operation. This CL prevents to measurs of size of row if the height is specified explicitly on CSS. It saves time of size calculation of the element. In the previous implementation, the size (including both height and width) was cached but the width has been not used. This CL changes to cache only the height and to remove unused width-related code. BUG=99029 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119890

Patch Set 1 #

Total comments: 10

Patch Set 2 : fix review (modify comments and remove temp variable) #

Patch Set 3 : review fix (add an additional comment) #

Total comments: 4

Patch Set 4 : review fix #

Patch Set 5 : merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -41 lines) Patch
M chrome/browser/resources/shared/js/cr/ui/list.js View 1 2 3 4 10 chunks +32 lines, -41 lines 0 comments Download
M chrome/browser/resources/task_manager/main.js View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yoshiki
mazda@ for review, and jhawkins@ for approval.
8 years, 11 months ago (2012-01-25 10:19:21 UTC) #1
James Hawkins
https://chromiumcodereview.appspot.com/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): https://chromiumcodereview.appspot.com/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js#newcode386 chrome/browser/resources/shared/js/cr/ui/list.js:386: * @param {ListItem=} item The list item to use ...
8 years, 11 months ago (2012-01-26 01:34:05 UTC) #2
mazda
http://codereview.chromium.org/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): http://codereview.chromium.org/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js#newcode388 chrome/browser/resources/shared/js/cr/ui/list.js:388: * is set, uses that value. Otherwise, measures the ...
8 years, 11 months ago (2012-01-26 09:37:16 UTC) #3
yoshiki
PTAL https://chromiumcodereview.appspot.com/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): https://chromiumcodereview.appspot.com/9288017/diff/1/chrome/browser/resources/shared/js/cr/ui/list.js#newcode386 chrome/browser/resources/shared/js/cr/ui/list.js:386: * @param {ListItem=} item The list item to ...
8 years, 11 months ago (2012-01-26 10:10:45 UTC) #4
mazda
lgtm with a comment. http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js (right): http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/task_manager/main.js#newcode503 chrome/browser/resources/task_manager/main.js:503: // 'num_of_tasks * 20' px. ...
8 years, 11 months ago (2012-01-26 11:20:15 UTC) #5
James Hawkins
LGTM with nit (and mazda's comment). http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/shared/js/cr/ui/list.js#newcode393 chrome/browser/resources/shared/js/cr/ui/list.js:393: // Uses the ...
8 years, 11 months ago (2012-01-26 17:08:56 UTC) #6
yoshiki
Thanks. Send it to commit queue! http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): http://codereview.chromium.org/9288017/diff/6/chrome/browser/resources/shared/js/cr/ui/list.js#newcode393 chrome/browser/resources/shared/js/cr/ui/list.js:393: // Uses the ...
8 years, 10 months ago (2012-01-31 11:30:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/9288017/13002
8 years, 10 months ago (2012-01-31 11:30:46 UTC) #8
commit-bot: I haz the power
8 years, 10 months ago (2012-01-31 12:51:27 UTC) #9
Change committed as 119890

Powered by Google App Engine
This is Rietveld 408576698