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

Issue 2824973002: Split StyleSurroundData::margin into four individual Lengths. (Closed)

Created:
3 years, 8 months ago by shend
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split StyleSurroundData::margin into four individual Lengths. In StyleSurroundData, the margin 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 margin into four Lengths: margin_left, margin_right, margin_top, margin_bottom. This enables us to generate the margin properties properly. This patch also adds a MarginEqual helper function to check if two margins have the same value. BUG=628043 Review-Url: https://codereview.chromium.org/2824973002 Cr-Commit-Position: refs/heads/master@{#466233} Committed: https://chromium.googlesource.com/chromium/src/+/786615ba373b0e7a6e488364c49f2cf56942de3f

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -52 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 2 chunks +45 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 2 chunks +2 lines, -2 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 1 2 chunks +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/LengthBox.h View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/LengthBox.cpp View 2 chunks +39 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (26 generated)
shend
Hi Naina, PTAL :)
3 years, 8 months ago (2017-04-18 01:53:59 UTC) #2
nainar
lgtm https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2866 third_party/WebKit/Source/core/style/ComputedStyle.h:2866: bool MarginEqual(const ComputedStyle& other) const { Please mention ...
3 years, 8 months ago (2017-04-18 06:58:49 UTC) #7
shend
Hi Alan, PTAL https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2866 third_party/WebKit/Source/core/style/ComputedStyle.h:2866: bool MarginEqual(const ComputedStyle& other) const { ...
3 years, 8 months ago (2017-04-18 07:54:25 UTC) #10
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/StyleSurroundData.cpp File third_party/WebKit/Source/core/style/StyleSurroundData.cpp (right): https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/StyleSurroundData.cpp#newcode51 third_party/WebKit/Source/core/style/StyleSurroundData.cpp:51: border_ == o.border_; Nit: Let's group related properties ...
3 years, 8 months ago (2017-04-19 07:01:21 UTC) #11
shend
https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/StyleSurroundData.cpp File third_party/WebKit/Source/core/style/StyleSurroundData.cpp (right): https://codereview.chromium.org/2824973002/diff/1/third_party/WebKit/Source/core/style/StyleSurroundData.cpp#newcode51 third_party/WebKit/Source/core/style/StyleSurroundData.cpp:51: border_ == o.border_; On 2017/04/19 at 07:01:21, alancutter wrote: ...
3 years, 8 months ago (2017-04-19 07:19:24 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/2824973002/40001
3 years, 8 months ago (2017-04-20 01:54:06 UTC) #23
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/415963)
3 years, 8 months ago (2017-04-20 02:02:36 UTC) #25
shend
Hi Haraken, PTAL for platform/
3 years, 8 months ago (2017-04-20 02:47:42 UTC) #27
haraken
On 2017/04/20 02:47:42, shend wrote: > Hi Haraken, PTAL for platform/ LGTM
3 years, 8 months ago (2017-04-20 07:43:39 UTC) #28
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/2824973002/40001
3 years, 8 months ago (2017-04-21 01:40:29 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 02:26:28 UTC) #37
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/786615ba373b0e7a6e488364c49f...

Powered by Google App Engine
This is Rietveld 408576698