PSA: Frame properties are now typed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

PSA: Frame properties are now typed

Xidorn Quan
I just landed bug 1230034, and frame properties are now typed. The
direct benefit is that you no longer need to cast the value returned
from Properties().Get().

The work to clean up remaining unneeded casts is tracked in bug 1243559.

For new frame properties:

The original macro NS_DECLARE_FRAME_PROPERTY is now replaced by
several new macros, in which the followings are expected to be used
most widely:
* NS_DECLARE_FRAME_PROPERTY_DELETABLE
* NS_DECLARE_FRAME_PROPERTY_RELEASABLE
* NS_DECLARE_FRAME_PROPERTY_WITH_DTOR_NEVER_CALLED
* NS_DECLARE_FRAME_PROPERTY_SMALL_VALUE

You may also want to use the followings in some places:
* NS_DECLARE_FRAME_PROPERTY_WITH_DTOR
* NS_DECLARE_FRAME_PROPERTY_WITHOUT_DTOR

The name of NS_DECLARE_FRAME_PROPERTY_WITH_FRAME_IN_DTOR is unchanged,
but it has one additional parameter for the type it holds.

- Xidorn
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Loading...