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

Issue 2375293002: Set NeedsReattachLayoutTree and ChildNeedsReattachLayoutTree flags on Node (Closed)

Created:
4 years, 2 months ago by nainar
Modified:
4 years, 2 months ago
Reviewers:
esprehn, Bugs Nash
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set NeedsReattachLayoutTree and ChildNeedsReattachLayoutTree flags on Node This patch sets the NeedsReattachLayoutTree and ChildNeedsReattachLayoutTree flags on Node correctly in Element::recalcOwnStyle. BUG=595137

Patch Set 1 #

Patch Set 2 : Removed dependency on 2376453004 #

Patch Set 3 : Add comment back #

Total comments: 4

Patch Set 4 : As per Bugs' suggestions #

Total comments: 1

Patch Set 5 : Add ability to clear dirty bits and relevant call sites #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Text.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameSetElement.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
nainar
PTAL? Thanks!
4 years, 2 months ago (2016-09-29 02:49:59 UTC) #5
Bugs Nash
https://codereview.chromium.org/2375293002/diff/40001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2375293002/diff/40001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1832 third_party/WebKit/Source/core/dom/Element.cpp:1832: // ComputedStyle will now be stored on Node and ...
4 years, 2 months ago (2016-09-29 03:15:24 UTC) #8
nainar
Made changes you asked for. https://codereview.chromium.org/2375293002/diff/40001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2375293002/diff/40001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1832 third_party/WebKit/Source/core/dom/Element.cpp:1832: // ComputedStyle will now ...
4 years, 2 months ago (2016-09-29 04:05:15 UTC) #11
Bugs Nash
lgtm
4 years, 2 months ago (2016-09-29 04:11:47 UTC) #12
nainar
To esprehn for OWNERS.
4 years, 2 months ago (2016-09-29 04:26:47 UTC) #14
esprehn
I'd probably go about setting the bits in the same patch you start processing them. ...
4 years, 2 months ago (2016-09-29 04:31:14 UTC) #15
esprehn
https://codereview.chromium.org/2375293002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): https://codereview.chromium.org/2375293002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp#newcode695 third_party/WebKit/Source/core/dom/Node.cpp:695: // TODO(nainar): Move this to Node::markAncestorsWithChildNeedsReattachLayoutTree() Hmm, why do ...
4 years, 2 months ago (2016-09-29 04:32:48 UTC) #16
nainar
On 2016/09/29 at 04:32:48, esprehn wrote: > https://codereview.chromium.org/2375293002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp > File third_party/WebKit/Source/core/dom/Node.cpp (right): > > https://codereview.chromium.org/2375293002/diff/60001/third_party/WebKit/Source/core/dom/Node.cpp#newcode695 ...
4 years, 2 months ago (2016-09-29 04:39:28 UTC) #17
Bugs Nash
On 2016/09/29 at 04:39:28, nainar wrote: > On 2016/09/29 at 04:32:48, esprehn wrote: > > ...
4 years, 2 months ago (2016-09-29 04:45:32 UTC) #18
esprehn
On 2016/09/29 at 04:39:28, nainar wrote: > On 2016/09/29 at 04:32:48, esprehn wrote: > > ...
4 years, 2 months ago (2016-09-29 05:07:57 UTC) #19
nainar
On 2016/09/29 at 05:07:57, esprehn wrote: > On 2016/09/29 at 04:39:28, nainar wrote: > > ...
4 years, 2 months ago (2016-09-29 05:14:32 UTC) #20
esprehn
Is this ready for review now? Could you update the asserts in assertLayoutTreeUpdated? Otherwise this ...
4 years, 2 months ago (2016-10-08 03:34:46 UTC) #27
nainar
Since we all agreed that just setting this bits without start processing them. So I ...
4 years, 2 months ago (2016-10-09 23:17:19 UTC) #28
nainar
4 years, 2 months ago (2016-10-09 23:18:26 UTC) #29
On 2016/10/09 at 23:17:19, nainar wrote:
> Since we all agreed that just setting this bits without start processing them.
So I merged in this change into the code here:
https://codereview.chromium.org/2398293003. I've updated
assertLayoutTreeUpdated() there as well as made sure we are clearing the bits
where needed.

Also going to close this CL - so that there are fewer confusions here. Sorry
about that

Powered by Google App Engine
This is Rietveld 408576698