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

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)

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

Description

Split StyleSurroundData::padding into four individual Lengths. In StyleSurroundData, the padding longhand properties are stored in a single LengthBox. This makes it difficult to generate because the generator assumes that properties don't share storage. This patch splits the LengthBox padding into four Lengths: padding_{left/right/top/bottom}. This enables us to generate the padding properties properly. This patch also adds PaddingEqual helper functions to check if two margins have the same value and changes the callsites to ComputedStyle::Padding() to cater for the fact that the LengthBox has been broken into its individual Length components. BUG=628043 Review-Url: https://codereview.chromium.org/2834603003 Cr-Commit-Position: refs/heads/master@{#466582} Committed: https://chromium.googlesource.com/chromium/src/+/7d5e129a2deae3313aa912575ff90faba8583b61

Patch Set 1 #

Total comments: 9

Patch Set 2 : Change ThemeMac #

Patch Set 3 : Change ThemeMac #

Patch Set 4 : Split StyleSurroundData::padding into four individual Lengths. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -36 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutTheme.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 chunks +46 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleSurroundData.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleSurroundData.cpp View 3 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/Theme.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/Theme.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/ThemeMac.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mac/ThemeMac.mm View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (29 generated)
nainar
Hi Darren! PTAL? Thanks!
3 years, 8 months ago (2017-04-20 06:59:41 UTC) #4
shend
lgtm with nits. https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2917 third_party/WebKit/Source/core/style/ComputedStyle.h:2917: return PaddingTop() == other.PaddingTop() && nit: ...
3 years, 8 months ago (2017-04-20 07:07:20 UTC) #5
nainar
Followup comments. https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2917 third_party/WebKit/Source/core/style/ComputedStyle.h:2917: return PaddingTop() == other.PaddingTop() && On 2017/04/20 ...
3 years, 8 months ago (2017-04-20 07:13:09 UTC) #6
shend
https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2917 third_party/WebKit/Source/core/style/ComputedStyle.h:2917: return PaddingTop() == other.PaddingTop() && On 2017/04/20 at 07:13:09, ...
3 years, 8 months ago (2017-04-20 07:20:57 UTC) #9
nainar
Alan could you take a look? Specifically at the point Darren raised about the copy ...
3 years, 8 months ago (2017-04-21 00:15:19 UTC) #11
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/platform/Theme.cpp File third_party/WebKit/Source/platform/Theme.cpp (right): https://codereview.chromium.org/2834603003/diff/1/third_party/WebKit/Source/platform/Theme.cpp#newcode60 third_party/WebKit/Source/platform/Theme.cpp:60: return LengthBox(zoomed_box_top, zoomed_box_right, zoomed_box_bottom, On 2017/04/21 at 00:15:19, ...
3 years, 8 months ago (2017-04-21 03:13:32 UTC) #12
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/2834603003/1
3 years, 8 months ago (2017-04-21 03:16:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/417209)
3 years, 8 months ago (2017-04-21 03:24:49 UTC) #16
nainar
haraken@ for OWNERS on platform/
3 years, 8 months ago (2017-04-21 03:28:11 UTC) #18
haraken
On 2017/04/21 03:28:11, nainar wrote: > haraken@ for OWNERS on platform/ LGTM
3 years, 8 months ago (2017-04-21 06:33:55 UTC) #19
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/2834603003/1
3 years, 8 months ago (2017-04-21 06:34:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/402000)
3 years, 8 months ago (2017-04-21 06:57:50 UTC) #23
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/2834603003/20001
3 years, 8 months ago (2017-04-21 07:12:25 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/435851)
3 years, 8 months ago (2017-04-21 07:41:36 UTC) #31
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/2834603003/60001
3 years, 8 months ago (2017-04-24 02:54:51 UTC) #42
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 02:58:38 UTC) #45
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7d5e129a2deae3313aa912575ff9...

Powered by Google App Engine
This is Rietveld 408576698