"Robert O'Callahan" <[email protected]> writes:

> On Thu, Aug 22, 2013 at 10:34 PM, Thinker K.F. Li <[email protected]>wrote:
>
>> After a discussion with Kan-Ru, I get more about the problem itself.
>> Since the positions of all display items in a nsIScrollableFrame are
>> relative to nsIScrollableFrame itself.  By keeping display itmes in the
>> cache and applying a translation (shift) to the gfxContext before
>> calling paint() on display items, we don't need to change the display
>> items in the cache.  Of course, invalidate regions should be translated
>> too.
>>
>
> The offset to apply to each display item would have to be stored somewhere,
> and then those offsets will all have to be updated.
>
> It seems simpler and more efficient to me to make the display items be
> relative to their active scrolled root, then nothing will have to be
> updated. Matt can explain more of the details of what we think needs to be
> done.

It seems very similar to what I told.  I would very like to know the
details you mentioned.

-- 
Sinker
--
天教懶漫帶疏狂
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to