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

Issue 2858143003: Move condition in CollapsedBorderValue::Width() into constructor (Closed)

Created:
3 years, 7 months ago by Xianzhu
Modified:
3 years, 7 months ago
Reviewers:
wkorman
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move condition in CollapsedBorderValue::Width() into constructor This avoids the condition from being repeatedly checked. Also tweek other methods to avoid unnecessary checks. Add test. BUG=717128 Review-Url: https://codereview.chromium.org/2858143003 Cr-Commit-Position: refs/heads/master@{#469562} Committed: https://chromium.googlesource.com/chromium/src/+/bfbe9c7802a991ba8aac2664970947fd18e4748c

Patch Set 1 #

Total comments: 3

Patch Set 2 : - #

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -11 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/CollapsedBorderValue.h View 1 3 chunks +8 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/core/layout/CollapsedBorderValueTest.cpp View 1 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Xianzhu
https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h File third_party/WebKit/Source/core/layout/CollapsedBorderValue.h (right): https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h#newcode59 third_party/WebKit/Source/core/layout/CollapsedBorderValue.h:59: width_(border.Style() > kBorderStyleHidden ? border.Width() : 0), BorderValue::NonZero() is: ...
3 years, 7 months ago (2017-05-04 20:45:26 UTC) #3
wkorman
lgtm https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h File third_party/WebKit/Source/core/layout/CollapsedBorderValue.h (right): https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h#newcode59 third_party/WebKit/Source/core/layout/CollapsedBorderValue.h:59: width_(border.Style() > kBorderStyleHidden ? border.Width() : 0), On ...
3 years, 7 months ago (2017-05-04 21:13:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858143003/40001
3 years, 7 months ago (2017-05-04 22:23:29 UTC) #8
Xianzhu
https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h File third_party/WebKit/Source/core/layout/CollapsedBorderValue.h (right): https://codereview.chromium.org/2858143003/diff/1/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h#newcode59 third_party/WebKit/Source/core/layout/CollapsedBorderValue.h:59: width_(border.Style() > kBorderStyleHidden ? border.Width() : 0), On 2017/05/04 ...
3 years, 7 months ago (2017-05-04 22:23:35 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 01:16:58 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/bfbe9c7802a991ba8aac26649709...

Powered by Google App Engine
This is Rietveld 408576698