[dev-servo] Invalidation test cases?

2014-10-28 Thread Patrick Walton
Hi everyone, Conversations last evening with roc got me to thinking about invalidation some more. Currently, Servo repaints the whole displayport on every change. This is obviously not going to work in the long run. At the same time, we actually benefit in some ways from not doing

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Boris Zbarsky
On 10/28/14, 1:15 PM, Patrick Walton wrote: In other words, what are examples of the major pain points that DLBI was designed to handle in Gecko? You should double-check with Matt Woodrow, but three things come to mind: 1) Pre-DLBI, invalidation code was scattered all over layout and it was

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Robert O'Callahan
I still don't understand how your oveflow-based invalidation handles reflows. For example, suppose I have a regular document that's shorter than the whole window and I append some text to the bottom. The height of the body grows. Depending on the styles on the body, e.g. the value of

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Patrick Walton
On 10/28/14 1:46 PM, Robert O'Callahan wrote: For example, suppose I have a regular document that's shorter than the whole window and I append some text to the bottom. The height of the body grows. Depending on the styles on the body, e.g. the value of 'border-radius' and certain 'background'

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Robert O'Callahan
On Wed, Oct 29, 2014 at 10:08 AM, Patrick Walton pcwal...@mozilla.com wrote: On 10/28/14 1:46 PM, Robert O'Callahan wrote: For example, suppose I have a regular document that's shorter than the whole window and I append some text to the bottom. The height of the body grows. Depending on the

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Patrick Walton
On 10/28/14 2:40 PM, Robert O'Callahan wrote: OK, but I still have the general question of how your overflow-based invalidation handles reflows. The basic problem is style changes to element A can result in geometry changes to element B where B is not a descendant of A. For example suppose body

Re: [dev-servo] Invalidation test cases?

2014-10-28 Thread Nicolas Silva
A blinking caret in an input text filed, maybe ? It's very common on the web, the number of pixels that needs to be repainted is very small and it happens somewhat continuously, so invalidating only the few pixels around the caret ends up saving a lot over a minute. Cheers, Nical On Tue, Oct