Summary: | RenderElement::m_style should be a Ref. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | Layout and Rendering | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue, eflews.bot, esprehn+autocc, glenn, gyuyoung.kim, kling, kondapallykalyan | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2013-10-28 06:42:10 PDT
Created attachment 215300 [details]
Patch
Comment on attachment 215300 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215300&action=review > Source/WebCore/rendering/RenderElement.cpp:415 > + Ref<RenderStyle> oldStyle(std::move(style)); > + m_style.swap(oldStyle); It is bit misleading that you put the new style to a variable called oldStyle. Might API that would work like Ref<RenderStyle> oldStyle(m_style.swap(std::move(style))) be better? Comment on attachment 215300 [details] Patch Attachment 215300 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/15558149 Committed r158111: <http://trac.webkit.org/changeset/158111> |