[webkit-efl] Encapsulation of ref counting in EWK classes (WK2 EFL)
Pozdnyakov, Mikhail
mikhail.pozdnyakov at intel.com
Tue Oct 16 06:48:34 PDT 2012
Hi all,
The idea is that EWK internal structures (those which use ref counting) can be inherited from WTF::RefCounted class,
It gives following benefits:
1) Ref counting code is encapsulated and not copy/pasted between EWK structures.
2) It is possible to use internally RefPtr and PassRefPtr smart pointers which also saves a lot of lines of code
Here you can see an example http://trac.webkit.org/changeset/131298 of the described approach applied.
There is also a meta bug https://bugs.webkit.org/show_bug.cgi?id=99321 for gradual refactoring of all of the EWK classes.
If someone is volunteering to modify a certain EWK class accordingly to the described approach please
put your bug as a dependency for the meta bug.
BR,
Mikhail
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-efl/attachments/20121016/03a10397/attachment.html>
More information about the webkit-efl
mailing list