Never make nodes which do not recalc style style-dirty.
Comments, processing instructions, attr, and doctype nodes should never have style, are never marked dirty, never runs through style recalc and marked clean, and should not have style dirty initially. Attr and doctype nodes will never run through AttachLayoutTree since they can not be descendants of the root element, but since PI and comments can, we need to say that it's OK that they don't need attachment for AttachLayoutTree. Also, don't mark the ancestor chain with ChildNeedsStyleRecalc when inserting such nodes into a tree. This is fixing the TODO introduced in 492730. Bug: 492730, 868810 Change-Id: I4470ce11a94e1390c2c6a9b7d1420c0e28844ade Reviewed-on: https://chromium-review.googlesource.com/1186729Reviewed-by:Anders Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#585819}
Showing
Please register or sign in to comment