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

Issue 238973008: Minor refactoring to avoid redundant calls to RenderObject::style() (Closed)

Created:
6 years, 8 months ago by harpreet.sk
Modified:
6 years, 8 months ago
Reviewers:
tkent
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Minor refactoring to avoid redundant calls to RenderObject::style() We can avoid redundant calls to style() in the api computePreferredLogicalWidths() by introducing a local variable. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171833

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -48 lines) Patch
M Source/core/rendering/RenderDeprecatedFlexibleBox.cpp View 1 chunk +10 lines, -8 lines 3 comments Download
M Source/core/rendering/RenderFileUploadControl.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderListBox.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderSlider.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderTextControl.cpp View 1 chunk +9 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
harpreet.sk
Minor change. Please have a look
6 years, 8 months ago (2014-04-16 09:27:12 UTC) #1
tkent
https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp File Source/core/rendering/RenderDeprecatedFlexibleBox.cpp (right): https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp#newcode231 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp:231: RenderStyle* styleToUse = style(); I prefer RenderStyle& style = ...
6 years, 8 months ago (2014-04-16 14:11:23 UTC) #2
harpreet.sk
https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp File Source/core/rendering/RenderDeprecatedFlexibleBox.cpp (right): https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp#newcode231 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp:231: RenderStyle* styleToUse = style(); On 2014/04/16 14:11:24, tkent wrote: ...
6 years, 8 months ago (2014-04-16 14:26:51 UTC) #3
tkent
lgtm https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp File Source/core/rendering/RenderDeprecatedFlexibleBox.cpp (right): https://codereview.chromium.org/238973008/diff/1/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp#newcode231 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp:231: RenderStyle* styleToUse = style(); On 2014/04/16 14:26:52, harpreet.sk ...
6 years, 8 months ago (2014-04-17 02:12:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harpreet.sk@samsung.com/238973008/1
6 years, 8 months ago (2014-04-17 02:12:15 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-17 03:17:28 UTC) #6
Message was sent while issue was closed.
Change committed as 171833

Powered by Google App Engine
This is Rietveld 408576698