Bug 121840

Summary: Cache continuation() in a local to avoid repeat hash lookups.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, eflews.bot, esprehn+autocc, glenn, gtk-ews, gyuyoung.kim, kondapallykalyan, philn, rniwa, webkit-ews, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ggaren: review+, webkit-ews: commit-queue-
Patch for laundry none

Andreas Kling
Reported 2013-09-24 08:10:54 PDT
RenderBoxModelObject's continuation() does a hash lookup so calling it repeatedly is not super cool.
Attachments
Patch (6.41 KB, patch)
2013-09-24 08:16 PDT, Andreas Kling
ggaren: review+
webkit-ews: commit-queue-
Patch for laundry (6.41 KB, patch)
2013-09-24 08:46 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2013-09-24 08:16:13 PDT
Early Warning System Bot
Comment 2 2013-09-24 08:21:09 PDT
Early Warning System Bot
Comment 3 2013-09-24 08:23:29 PDT
EFL EWS Bot
Comment 4 2013-09-24 08:25:14 PDT
EFL EWS Bot
Comment 5 2013-09-24 08:26:50 PDT
kov's GTK+ EWS bot
Comment 6 2013-09-24 08:30:37 PDT
Geoffrey Garen
Comment 7 2013-09-24 08:36:56 PDT
Comment on attachment 212468 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212468&action=review r=me, plz fix build -- see below > Source/WebCore/rendering/RenderInline.cpp:1439 > + continuation->addFocusRingRects(rects, flooredLayoutPoint(additionalOffset + toRenderBox(continuation())->location() - containingBlock()->location()), paintContainer); Nix the parens on 'continuation' here.
Build Bot
Comment 8 2013-09-24 08:45:23 PDT
Andreas Kling
Comment 9 2013-09-24 08:46:24 PDT
Created attachment 212471 [details] Patch for laundry
WebKit Commit Bot
Comment 10 2013-09-24 09:19:08 PDT
Comment on attachment 212471 [details] Patch for laundry Clearing flags on attachment: 212471 Committed r156334: <http://trac.webkit.org/changeset/156334>
WebKit Commit Bot
Comment 11 2013-09-24 09:19:11 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.