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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)

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

Description

Refactoring out the code in LayoutTreeAsText::writeLayoutObject. BUG=481588 Committed: https://crrev.com/ecf51ddf5158be270b3ad65d613c9498d644fc6b Cr-Commit-Position: refs/heads/master@{#419072}

Patch Set 1 : Initial commit #

Total comments: 8

Patch Set 2 : Codereview update #

Total comments: 2

Patch Set 3 : Rename helper #

Total comments: 21

Patch Set 4 : Codereview update #

Total comments: 6

Patch Set 5 : LayoutUnit #

Patch Set 6 : Revert to Original Impl #

Total comments: 2

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -45 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 2 3 1 chunk +2 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp View 1 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 139 (88 generated)
benjhayden
https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode4876 third_party/WebKit/Source/core/layout/LayoutBox.cpp:4876: if (cb && cb->isTableCell()) Should this be moved to ...
4 years, 3 months ago (2016-08-29 20:45:28 UTC) #24
lunalu1
On 2016/08/29 20:45:28, benjhayden wrote: > https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode4876 > ...
4 years, 3 months ago (2016-08-30 20:35:16 UTC) #27
lunalu1
https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2280153002/diff/120001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode4876 third_party/WebKit/Source/core/layout/LayoutBox.cpp:4876: if (cb && cb->isTableCell()) On 2016/08/29 20:45:27, benjhayden wrote: ...
4 years, 3 months ago (2016-08-30 20:35:30 UTC) #28
blink-reviews
Hi Ben, When you have time, do you mind to reply to my comments? Thanks ...
4 years, 3 months ago (2016-09-02 20:04:50 UTC) #29
chromium-reviews
Hi Ben, When you have time, do you mind to reply to my comments? Thanks ...
4 years, 3 months ago (2016-09-02 20:04:51 UTC) #30
lunalu1
Hi Ben, Thank you for the feedback. I have updated the CL based on your ...
4 years, 3 months ago (2016-09-06 19:53:52 UTC) #37
benjhayden
This is probably my last comment. I'll try to see if I can get somebody ...
4 years, 3 months ago (2016-09-08 20:18:07 UTC) #48
lunalu1
Renamed the helper as suggested. Please take another look. Thanks https://codereview.chromium.org/2280153002/diff/180001/third_party/WebKit/Source/core/layout/LayoutBlock.h File third_party/WebKit/Source/core/layout/LayoutBlock.h (right): https://codereview.chromium.org/2280153002/diff/180001/third_party/WebKit/Source/core/layout/LayoutBlock.h#newcode431 ...
4 years, 3 months ago (2016-09-09 15:09:43 UTC) #51
benjhayden
Luna, Steve has agreed to review this. Thanks for reviewing this, Steve!
4 years, 3 months ago (2016-09-09 18:04:19 UTC) #55
benjhayden
lgtm, please wait for skobes
4 years, 3 months ago (2016-09-09 18:04:53 UTC) #56
skobes
https://codereview.chromium.org/2280153002/diff/200001/third_party/WebKit/Source/core/layout/LayoutBlock.h File third_party/WebKit/Source/core/layout/LayoutBlock.h (right): https://codereview.chromium.org/2280153002/diff/200001/third_party/WebKit/Source/core/layout/LayoutBlock.h#newcode429 third_party/WebKit/Source/core/layout/LayoutBlock.h:429: // FIXME: Temporary in order ot ensure compatibility with ...
4 years, 3 months ago (2016-09-09 20:27:41 UTC) #57
lunalu1
Thank you for reviewing my CL. I have made the change based on your comments ...
4 years, 3 months ago (2016-09-12 14:45:14 UTC) #60
skobes
https://codereview.chromium.org/2280153002/diff/200001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2280153002/diff/200001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1373 third_party/WebKit/Source/core/layout/LayoutObject.h:1373: // This method should never be reached as it's ...
4 years, 3 months ago (2016-09-12 17:09:35 UTC) #61
lunalu1
https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutInline.cpp File third_party/WebKit/Source/core/layout/LayoutInline.cpp (right): https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutInline.cpp#newcode1375 third_party/WebKit/Source/core/layout/LayoutInline.cpp:1375: LayoutRect rect = LayoutRect(linesBox); On 2016/09/12 17:09:35, skobes wrote: ...
4 years, 3 months ago (2016-09-12 17:48:48 UTC) #64
skobes
https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutView.cpp File third_party/WebKit/Source/core/layout/LayoutView.cpp (right): https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutView.cpp#newcode1006 third_party/WebKit/Source/core/layout/LayoutView.cpp:1006: block->adjustChildDebugRect(rect); On 2016/09/12 17:48:48, loonybear wrote: > On 2016/09/12 ...
4 years, 3 months ago (2016-09-12 17:54:05 UTC) #65
lunalu1
https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutView.cpp File third_party/WebKit/Source/core/layout/LayoutView.cpp (right): https://codereview.chromium.org/2280153002/diff/220001/third_party/WebKit/Source/core/layout/LayoutView.cpp#newcode1006 third_party/WebKit/Source/core/layout/LayoutView.cpp:1006: block->adjustChildDebugRect(rect); On 2016/09/12 17:54:05, skobes wrote: > On 2016/09/12 ...
4 years, 3 months ago (2016-09-12 18:26:48 UTC) #66
skobes
My only remaining concern is the one about making debugRect pure virtual.
4 years, 3 months ago (2016-09-12 18:29:40 UTC) #67
lunalu1
On 2016/09/12 18:29:40, skobes wrote: > My only remaining concern is the one about making ...
4 years, 3 months ago (2016-09-12 18:38:42 UTC) #68
lunalu1
4 years, 3 months ago (2016-09-12 18:38:52 UTC) #69
skobes
On 2016/09/12 18:38:42, loonybear wrote: > So should I make it pure virtual and for ...
4 years, 3 months ago (2016-09-12 18:43:36 UTC) #70
lunalu1
On 2016/09/12 18:43:36, skobes wrote: > On 2016/09/12 18:38:42, loonybear wrote: > > So should ...
4 years, 3 months ago (2016-09-12 19:25:30 UTC) #71
lunalu1
Please see the updated change.
4 years, 3 months ago (2016-09-12 19:25:47 UTC) #72
skobes
lgtm
4 years, 3 months ago (2016-09-12 20:20:28 UTC) #73
blink-reviews
The problem comes from LayoutText.cpp. The original code looks like: LayoutRect LayoutText::debugRect() const { IntRect ...
4 years, 3 months ago (2016-09-14 14:50:03 UTC) #82
chromium-reviews
The problem comes from LayoutText.cpp. The original code looks like: LayoutRect LayoutText::debugRect() const { IntRect ...
4 years, 3 months ago (2016-09-14 14:50:04 UTC) #83
skobes
On 2016/09/14 14:50:04, chromium-reviews wrote: > The problem comes from LayoutText.cpp. The original code looks ...
4 years, 3 months ago (2016-09-14 16:35:23 UTC) #84
blink-reviews
Now that I change it to LayoutRect LayoutText::debugRect() const { LayoutRect linesBox = linesBoundingBox(); LayoutRect ...
4 years, 3 months ago (2016-09-14 17:46:17 UTC) #85
chromium-reviews
Now that I change it to LayoutRect LayoutText::debugRect() const { LayoutRect linesBox = linesBoundingBox(); LayoutRect ...
4 years, 3 months ago (2016-09-14 17:46:18 UTC) #86
blink-reviews
May I ask why we want the expected results to be all INT values? Luna ...
4 years, 3 months ago (2016-09-14 17:57:33 UTC) #87
chromium-reviews
May I ask why we want the expected results to be all INT values? Luna ...
4 years, 3 months ago (2016-09-14 17:57:34 UTC) #88
skobes
On 2016/09/14 17:57:34, chromium-reviews wrote: > May I ask why we want the expected results ...
4 years, 3 months ago (2016-09-14 18:01:51 UTC) #89
blink-reviews
Either .61 or .64 example: LayoutText {#text} at (0,0) size 271x19 LayoutText {#text} at (0,0) ...
4 years, 3 months ago (2016-09-14 18:25:54 UTC) #90
chromium-reviews
Either .61 or .64 example: LayoutText {#text} at (0,0) size 271x19 LayoutText {#text} at (0,0) ...
4 years, 3 months ago (2016-09-14 18:25:54 UTC) #91
skobes
On 2016/09/14 18:25:54, chromium-reviews wrote: > Either .61 or .64 > example: > LayoutText {#text} ...
4 years, 3 months ago (2016-09-14 18:35:13 UTC) #92
chromium-reviews
12 + 2 tests. Regressions: Unexpected text-only failures (12) fast/text/ellipsis-ltr-text-in-ltr-flow-underline-composition.html [ Failure ] fast/text/ellipsis-ltr-text-in-ltr-flow-underline.html [ ...
4 years, 3 months ago (2016-09-14 18:44:58 UTC) #93
blink-reviews
12 + 2 tests. Regressions: Unexpected text-only failures (12) fast/text/ellipsis-ltr-text-in-ltr-flow-underline-composition.html [ Failure ] fast/text/ellipsis-ltr-text-in-ltr-flow-underline.html [ ...
4 years, 3 months ago (2016-09-14 18:45:11 UTC) #94
skobes
Let's update the expectations. (The image diffs will be unrelated.) On 2016/09/14 18:45:11, blink-reviews wrote: ...
4 years, 3 months ago (2016-09-14 18:57:10 UTC) #95
blink-reviews
Hi, I am thinking about splitting this into 2 CL's. For the current one, I ...
4 years, 3 months ago (2016-09-14 21:45:50 UTC) #99
chromium-reviews
Hi, I am thinking about splitting this into 2 CL's. For the current one, I ...
4 years, 3 months ago (2016-09-14 21:45:51 UTC) #100
skobes
On 2016/09/14 21:45:51, chromium-reviews wrote: > I am thinking about splitting this into 2 CL's. ...
4 years, 3 months ago (2016-09-14 21:46:47 UTC) #101
lunalu1
Hi skobes, I have reverted the change to the original impl. Could you please take ...
4 years, 3 months ago (2016-09-15 14:30:12 UTC) #118
skobes
https://codereview.chromium.org/2280153002/diff/360001/third_party/WebKit/Source/core/layout/LayoutText.h File third_party/WebKit/Source/core/layout/LayoutText.h (right): https://codereview.chromium.org/2280153002/diff/360001/third_party/WebKit/Source/core/layout/LayoutText.h#newcode184 third_party/WebKit/Source/core/layout/LayoutText.h:184: void applyTextTransformFromTo(int from, int len, const ComputedStyle*); Where did ...
4 years, 3 months ago (2016-09-15 19:04:36 UTC) #119
lunalu1
Done. Thanks https://codereview.chromium.org/2280153002/diff/360001/third_party/WebKit/Source/core/layout/LayoutText.h File third_party/WebKit/Source/core/layout/LayoutText.h (right): https://codereview.chromium.org/2280153002/diff/360001/third_party/WebKit/Source/core/layout/LayoutText.h#newcode184 third_party/WebKit/Source/core/layout/LayoutText.h:184: void applyTextTransformFromTo(int from, int len, const ComputedStyle*); ...
4 years, 3 months ago (2016-09-15 20:11:09 UTC) #120
skobes
lgtm
4 years, 3 months ago (2016-09-15 20:22:19 UTC) #121
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/2280153002/380001
4 years, 3 months ago (2016-09-15 20:45:03 UTC) #124
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/129386) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-15 21:00:40 UTC) #126
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/2280153002/400001
4 years, 3 months ago (2016-09-15 22:24:31 UTC) #130
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/236509)
4 years, 3 months ago (2016-09-15 22:37:50 UTC) #132
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/2280153002/420001
4 years, 3 months ago (2016-09-15 23:48:32 UTC) #136
commit-bot: I haz the power
Committed patchset #7 (id:420001)
4 years, 3 months ago (2016-09-16 01:35:41 UTC) #137
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 01:40:07 UTC) #139
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ecf51ddf5158be270b3ad65d613c9498d644fc6b
Cr-Commit-Position: refs/heads/master@{#419072}

Powered by Google App Engine
This is Rietveld 408576698