Jonas Sicking wrote:
My main concern is that we are slowly eating up the bits in nodes. Though I suspect that we can crunch away a few if needed. And adding another word dedicated to flags would probably not be a big deal.

While true, this would be a bit specific to eTEXT nodes (whether the node is whitespace or not), so it's easy enough to make it not use up a bit that HTML or XUL elements are not already using. In fact, I'll do just that.

There's also the concern that this types of layout bits (dbaron added similar ones when adding support for :nth-of-type etc) we will have a much harder time supporting multiple views for a single document. However I think rocs various posts on that issue has convinced me that that is unlikely something that we'll want to do anytime soon.

Not only that, but both this bit and dbaron's bits are just de-optimization bits. That is, the failure mode in the multiple presentation case is that the bit is set due to styles in presentation 1 when the styles in presentation 2 don't really require it, and the consequence is that some operations in presentation 2 take a bit longer than they would otherwise. That seems fairly acceptable to me.

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to