Intent to implement and ship: Image decoding attribute

2018-07-27 Thread Andrew Osmond
Summary: Allow setting the decoding attribute on img elements to hint at synchronous/asynchronous decoding of image data. We currently decode images asynchronously which can cause flickering in some circumstances (e.g. if the src is changed), while other browsers default to synchronous decoding (wh

Re: Why I don't like DXR

2016-09-26 Thread Andrew Osmond
I think it is a matter of failing to parse/index all of the code; for example, var:mError works for me as I think you would expect. If I find a definition of "io_pending": https://dxr.mozilla.org/mozilla-central/source/nsprpub/pr/include/private/primpl.h#1608 I notice that it isn't recognized as

Private members of ref counted classes and lambdas

2015-06-04 Thread Andrew Osmond
Suppose I have some ref counted class Foo with the private member mBar. Normally with a lambda expression, you can easily access the private members by passing the this pointer: void Foo::pokeBar() { nsCOMPtr r = NS_NewRunnableFunction[this] () -> void { mBar.poke(); }); NS_DispatchToM

Re: Private members of ref counted classes and lambdas

2015-06-04 Thread Andrew Osmond
Turns out my original problem was some other mistake I made. Using just self works (thanks botond for the poke on IRC about that). I remember reading the linked thread, although I had since forgotten about it -- thanks for the reminder. My impression was that using raw pointers for ref counted obj

Intent to implement and ship: WebP image support

2018-10-11 Thread Andrew Osmond
WebP is an image format developed by Google, long supported by Chrome. We are facing a growing number of webcompat reports against our Gecko-derived Android offerings, where web developers assume Android and/or mobile implies support for WebP. In addition, Edge has now shipped WebP [1]. As such, I

Intent to implement and ship: img decode API support

2018-11-07 Thread Andrew Osmond
Web authors would like a way to guarantee an image has been fully decoded and will display immediately when inserted into the DOM. Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1501794 Link to standard: https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-decode Platform cove

Re: Intent to implement and ship: img decode API support

2018-11-07 Thread Andrew Osmond
tions will continue to apply. On Wed, Nov 7, 2018 at 11:23 AM, Boris Zbarsky wrote: > On 11/7/18 11:15 AM, Andrew Osmond wrote: > >> This is simply a >> new method for JS on image elements, so it should be unavailable. >> > > Script can run in sandboxed iframes, de