[Bug 14499] Need ability to reset Canvas clipping region without resetting all other Canvas state

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14499

--- Comment #2 from Simon Sarris <simon.sarris@gmail.com> 2011-10-18 23:06:38 UTC ---
That only works if your object drawing structure is flat. Suppose you have
7,000 text objects "nested" inside of 7,000 shapes or panels of some kind, and
each object (text or panel) along the way needed to clip a unique region. So
the drawing would go:

Panel save+clip
  Text setFont+save+clip
  Text draw
  restore
restore

Panel save+clip
  Text setFont+save+clip // would have to set text again here anyway :(
  Text draw
  restore
restore

etc.

In a case like this the panel's clip/save/restore would interfere with the
setting of the font. A save/restore would not be necessary if there were a way
of arbitrarily resetting the clipping region.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 18 October 2011 23:06:45 UTC