ImageBuffer::getImageData() and ImageBuffer::puttImageData() deal with ImageData. Since ImageBuffer is in platform/graphics and ImageData is in html, this is considered a layering violation. The fix could be the following: 1. Move ImageData to platform/graphics except the DOM ImageData creation methods. 2. Add DOMImageData to html and make it inherit from ImageData. 3. Add the DOM ImageData creation methods to DOMImageData. 4. Rename ImageData.idl to DOMImageData.idl but make InterfaceName=ImageData. 5. Change all the DOM related reference to ImageData to be DOMImageData.
Created attachment 391712 [details] Patch
Created attachment 391713 [details] Patch