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

Issue 2118393002: Reorganize Layout Tree Construction code to be its own function (Closed)

Created:
4 years, 5 months ago by nainar
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reorganize Layout Tree Construction code to be its own function This patch trivially encapsulates Layout Tree Construction code in its own function -> Element::buildOwnLayout(). No behaviour change is expected from this patch since it is merely moving code around. With lots of help from @bugsnash Design doc: http://bit.ly/29MBWvf BUG=595137 Committed: https://crrev.com/617ae6ff6a6664b776e2f8617ef3f51bef639a2b Cr-Commit-Position: refs/heads/master@{#404584}

Patch Set 1 #

Total comments: 4

Patch Set 2 #

Patch Set 3 : post Sasha's comments #

Total comments: 7

Patch Set 4 : CL #

Patch Set 5 : For Tim's review #

Total comments: 2

Patch Set 6 : Final patch for landinh #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M third_party/WebKit/Source/core/dom/Element.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 2 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
nainar
@sashab, Could you PTAL? This follows on from our discussion here: https://codereview.chromium.org/2001453002 Thank you!
4 years, 5 months ago (2016-07-05 00:18:05 UTC) #3
sashab
LGTM with nits https://codereview.chromium.org/2118393002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2118393002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp#newcode1774 third_party/WebKit/Source/core/dom/Element.cpp:1774: // using mutableComputedStyle() Nit: full stops ...
4 years, 5 months ago (2016-07-05 01:48:56 UTC) #4
nainar
@timloh, PTAL? Thanks! https://codereview.chromium.org/2118393002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2118393002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp#newcode1774 third_party/WebKit/Source/core/dom/Element.cpp:1774: // using mutableComputedStyle() Done. https://codereview.chromium.org/2118393002/diff/1/third_party/WebKit/Source/core/dom/Element.h File ...
4 years, 5 months ago (2016-07-05 01:57:24 UTC) #6
sashab
Yup, making it const is difficult but I think it's the right thing to do. ...
4 years, 5 months ago (2016-07-05 23:28:55 UTC) #7
Bugs Nash
lgtm
4 years, 5 months ago (2016-07-06 00:15:25 UTC) #8
Bugs Nash
On 2016/07/06 at 00:15:25, Bugs Nash wrote: > lgtm Add link to design doc in ...
4 years, 5 months ago (2016-07-06 00:15:34 UTC) #9
Bugs Nash
https://codereview.chromium.org/2118393002/diff/40001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/2118393002/diff/40001/third_party/WebKit/Source/core/dom/Element.h#newcode653 third_party/WebKit/Source/core/dom/Element.h:653: StyleRecalcChange buildOwnLayout(ComputedStyle*); On 2016/07/05 at 23:28:55, sashab wrote: > ...
4 years, 5 months ago (2016-07-06 00:24:26 UTC) #11
nainar
Made the changes Sasha has asked for. Waiting to hear about her opinion on Bugs' ...
4 years, 5 months ago (2016-07-06 00:52:09 UTC) #12
sashab
https://codereview.chromium.org/2118393002/diff/40001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/2118393002/diff/40001/third_party/WebKit/Source/core/dom/Element.h#newcode653 third_party/WebKit/Source/core/dom/Element.h:653: StyleRecalcChange buildOwnLayout(ComputedStyle*); On 2016/07/06 at 00:52:09, nainar wrote: > ...
4 years, 5 months ago (2016-07-06 02:17:26 UTC) #13
nainar
Made the changes. @timloh, PTAL? Thanks!
4 years, 5 months ago (2016-07-06 03:48:05 UTC) #14
Timothy Loh
lgtm https://codereview.chromium.org/2118393002/diff/80001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/2118393002/diff/80001/third_party/WebKit/Source/core/dom/Element.h#newcode653 third_party/WebKit/Source/core/dom/Element.h:653: // TODO(nainar): Make this const ComputedStyle*. * -> ...
4 years, 5 months ago (2016-07-08 04:22:32 UTC) #15
nainar
Thanks Tim! https://codereview.chromium.org/2118393002/diff/80001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/2118393002/diff/80001/third_party/WebKit/Source/core/dom/Element.h#newcode653 third_party/WebKit/Source/core/dom/Element.h:653: // TODO(nainar): Make this const ComputedStyle*. Done.
4 years, 5 months ago (2016-07-08 05:46:53 UTC) #16
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/2118393002/100001
4 years, 5 months ago (2016-07-08 05:47:33 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/100449)
4 years, 5 months ago (2016-07-08 07:00:54 UTC) #21
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/2118393002/100001
4 years, 5 months ago (2016-07-10 23:24:54 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-11 01:12:46 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 01:12:52 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 01:16:38 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/617ae6ff6a6664b776e2f8617ef3f51bef639a2b
Cr-Commit-Position: refs/heads/master@{#404584}

Powered by Google App Engine
This is Rietveld 408576698