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

Issue 304183009: Reset RestyleFlags when Element is removed. (Closed)

Created:
6 years, 6 months ago by rune
Modified:
6 years, 6 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Visibility:
Public.

Description

Reset RestyleFlags when Element is removed. The RestyleFlags are set based on selectors and DOM structure. Wether the elements are attached or detached is irrelevant. Furthermore, when these flags are reset, we must be sure all elements which may contribute to these flags will have their style recalculated in order to set the flags properly. That is not necessarily the case for attach/detach since siblings, or descendants of siblings of the detached element will not have their style recalculated in general. Instead, reset RestyleFlags when an element is removed from its parent. If the element is re-inserted into the DOM, siblings and sibling subtrees will have the style recalculated to update the flags properly. R=esprehn@chromium.org BUG=376139 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175199

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -2 lines) Patch
A LayoutTests/fast/dynamic/hover-sibling-reattach.html View 1 chunk +53 lines, -0 lines 0 comments Download
A LayoutTests/fast/dynamic/hover-sibling-reattach-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 3 chunks +3 lines, -2 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
rune
6 years, 6 months ago (2014-05-30 17:30:27 UTC) #1
esprehn
This doesn't seem right, we should never be running the SelectorChecker in ResolveStyle mode over ...
6 years, 6 months ago (2014-05-30 17:46:18 UTC) #2
esprehn
Now I understand, the issue is that unlike the childrenAffectedByDirectAdjacent like bits where we always ...
6 years, 6 months ago (2014-05-30 17:55:38 UTC) #3
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 6 months ago (2014-05-30 17:56:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/304183009/1
6 years, 6 months ago (2014-05-30 17:56:59 UTC) #5
rune
On 2014/05/30 17:46:18, esprehn wrote: > This doesn't seem right, we should never be running ...
6 years, 6 months ago (2014-05-30 18:09:37 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-30 19:07:59 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 19:30:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6551)
6 years, 6 months ago (2014-05-30 19:30:10 UTC) #9
rune
The CQ bit was checked by rune@opera.com
6 years, 6 months ago (2014-05-31 11:58:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/304183009/1
6 years, 6 months ago (2014-05-31 11:58:29 UTC) #11
commit-bot: I haz the power
Change committed as 175199
6 years, 6 months ago (2014-05-31 20:19:58 UTC) #12
rune
6 years, 6 months ago (2014-06-01 15:35:44 UTC) #13
Message was sent while issue was closed.
On 2014/05/30 18:09:37, rune wrote:

> I'd need to take another look at that one. My intention was to reset the flag
> when the node is removed from its parent. If doing that causes a detach
clearing
> the rare data, this code is unnecessary.

Just FTR, I've checked that the call to clearRestyleFlags in
Element::removedFrom is correct/necessary.

Powered by Google App Engine
This is Rietveld 408576698