Bug 60640

Summary: Replace IntPoint with const IntPoint& in RenderFlexibleBox::placeChild
Product: WebKit Reporter: Emil A Eklund <eae>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Emil A Eklund 2011-05-11 10:32:15 PDT
Follow up from bug 60592:

Use const IntPoint& instead of just IntPoint to avoid extra constructor overhead.
Comment 1 Emil A Eklund 2011-05-11 12:38:05 PDT
Created attachment 93158 [details]
Patch
Comment 2 Alexey Proskuryakov 2011-05-11 15:26:10 PDT
This patch seems fine in that in brings this particular function in line with what we normally do, but it's more than cleanup. I'm not an expert, but I suspect that this negatively affects performance on at least some platforms.
Comment 3 Emil A Eklund 2011-05-11 15:37:52 PDT
Alexey, that's a valid point. Would you like me to update the description or discard the patch?
Comment 4 Alexey Proskuryakov 2011-05-11 17:15:13 PDT
I talked to Maciej, and he suggested that this patch is fine to land for consistency, but it would be good to investigate this deeper in a follow up bug. Sounded right to me!
Comment 5 Emil A Eklund 2011-05-11 17:26:51 PDT
Cool, thanks!
Comment 6 Emil A Eklund 2011-05-12 14:13:41 PDT
Created attachment 93339 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2011-05-12 15:32:07 PDT
Comment on attachment 93339 [details]
Patch for landing

Clearing flags on attachment: 93339

Committed r86389: <http://trac.webkit.org/changeset/86389>
Comment 8 WebKit Commit Bot 2011-05-12 15:32:12 PDT
All reviewed patches have been landed.  Closing bug.