Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 387034

Summary: [Canvas] Refactor Canvas to improve ClientScripting Paint event
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: tbuschto
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 386833    

Description Tim Buschtoens CLA 2012-08-10 13:18:57 EDT
ClientScripting can support the Paint event, but there are some issues that require changes in the core framework.

1. The cross-browser API is not as comprehensive as it could be. Specifically rect and arc can easily be supported, but are not in IE.

2. Currently in case of Canvas, client and server each use their own GC instance. They should share one instance, but without establishing a strict 1:1 connection that would prevent multiple GCs.
Comment 1 Tim Buschtoens CLA 2012-08-13 09:01:56 EDT
Fixed with commit 992a2148e29c70738c5c839e010720e61e766800.

Canvas DOM elements not have a "rwtObject" field pointing to the GC instance. This pattern will likely also be used to replace the "qx_Widget" fields. VMLCanvas now supports "arc". "rect" was already supported.