W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2011

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 18 Oct 2011 23:06:39 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RGIk3-0005jL-7w@jessica.w3.org>

--- 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

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


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC