[Webkit-unassigned] [Bug 126525] Move function calls outside loop in dom
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 24 06:15:35 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=126525
--- Comment #8 from Laszlo Vidacs <lvidacs.u-szeged at partner.samsung.com> 2014-02-24 06:12:43 PST ---
Thanks for the feedback, I tried the following code:
for (const Attribute& i : other.m_attributeArray)
m_attributeVector.uncheckedAppend(i);
Unfortunately m_attributeArray is defined as a zero size array (ShareableElementData.h: Attribute m_attributeArray[0];), so the range based loop does not iterate through it.
There is a minor change in the patch to use the stored value in reserveCapacity().
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list