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

Issue 2904453002: Use LayoutUnit for all border-*-width logic (Closed)

Created:
3 years, 7 months ago by nainar
Modified:
3 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use LayoutUnit for all border-*-width logic This patch uses LayoutUnit for the logic of converting back and forth between the stored int and the returned float value instead of having this logic in main ComputedStyle. Diff: https://gist.github.com/nainar/5d4e8db04884cb0dccb4874a0b23ef0d/revisions BUG=628043 Review-Url: https://codereview.chromium.org/2904453002 Cr-Commit-Position: refs/heads/master@{#474181} Committed: https://chromium.googlesource.com/chromium/src/+/03e6bc737f164bf673e4676f1e673eb669525288

Patch Set 1 #

Total comments: 6

Patch Set 2 : shend@ suggestions #

Total comments: 3

Patch Set 3 : Change to using LayoutUnit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -49 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 4 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 6 chunks +20 lines, -36 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
nainar
shend@, PTAL? Thanks!
3 years, 7 months ago (2017-05-23 08:01:05 UTC) #3
shend
lgtm after comments. https://codereview.chromium.org/2904453002/diff/1/third_party/WebKit/Source/core/style/BorderWidth.h File third_party/WebKit/Source/core/style/BorderWidth.h (right): https://codereview.chromium.org/2904453002/diff/1/third_party/WebKit/Source/core/style/BorderWidth.h#newcode14 third_party/WebKit/Source/core/style/BorderWidth.h:14: friend class ComputedStyle; does this need ...
3 years, 7 months ago (2017-05-23 08:05:32 UTC) #5
nainar
alancutter@, PTAL? Thanks! https://codereview.chromium.org/2904453002/diff/1/third_party/WebKit/Source/core/style/BorderWidth.h File third_party/WebKit/Source/core/style/BorderWidth.h (right): https://codereview.chromium.org/2904453002/diff/1/third_party/WebKit/Source/core/style/BorderWidth.h#newcode14 third_party/WebKit/Source/core/style/BorderWidth.h:14: friend class ComputedStyle; On 2017/05/23 at ...
3 years, 7 months ago (2017-05-23 08:10:05 UTC) #9
alancutter (OOO until 2018)
https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h File third_party/WebKit/Source/core/style/BorderWidth.h (right): https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h#newcode25 third_party/WebKit/Source/core/style/BorderWidth.h:25: return static_cast<float>(width_) / kBorderWidthDenominator; I wonder why we don't ...
3 years, 7 months ago (2017-05-24 01:50:06 UTC) #12
nainar1
https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h File third_party/WebKit/Source/core/style/BorderWidth.h (right): https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h#newcode25 third_party/WebKit/Source/core/style/BorderWidth.h:25: return static_cast<float>(width_) / kBorderWidthDenominator; On 2017/05/24 at 01:50:06, alancutter ...
3 years, 7 months ago (2017-05-24 01:53:22 UTC) #14
shend
https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h File third_party/WebKit/Source/core/style/BorderWidth.h (right): https://codereview.chromium.org/2904453002/diff/20001/third_party/WebKit/Source/core/style/BorderWidth.h#newcode25 third_party/WebKit/Source/core/style/BorderWidth.h:25: return static_cast<float>(width_) / kBorderWidthDenominator; On 2017/05/24 at 01:53:21, nainar1 ...
3 years, 7 months ago (2017-05-24 01:55:08 UTC) #15
nainar
shend@/alancutter@ Changed the logic to use LayoutUnit. PTAL? Thanks!
3 years, 7 months ago (2017-05-24 03:28:15 UTC) #20
alancutter (OOO until 2018)
lgtm
3 years, 7 months ago (2017-05-24 04:00:10 UTC) #22
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/2904453002/40001
3 years, 7 months ago (2017-05-24 06:03:35 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 06:09:03 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/03e6bc737f164bf673e4676f1e67...

Powered by Google App Engine
This is Rietveld 408576698