Bug 71986

Summary: RenderTableSection's recalcCell logic is doing too much work
Product: WebKit Reporter: Julien Chaffraix <jchaffraix>
Component: TablesAssignee: Julien Chaffraix <jchaffraix>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed fix: use Vector::clear() and simplify the logic. darin: review+, jchaffraix: commit-queue+

Julien Chaffraix
Reported 2011-11-09 18:10:20 PST
Bug 71246 implemented a sub-optimal solution - which had the upside of removing the regression - where we keep track of the size of the table. However it means that we keep track of the Vector size outside the Vector which is evil. We should be able to just use the size directly and still keep the buffer! Patch forthcoming.
Attachments
Proposed fix: use Vector::clear() and simplify the logic. (8.20 KB, patch)
2011-11-09 18:31 PST, Julien Chaffraix
darin: review+
jchaffraix: commit-queue+
Julien Chaffraix
Comment 1 2011-11-09 18:31:01 PST
Created attachment 114418 [details] Proposed fix: use Vector::clear() and simplify the logic.
Darin Adler
Comment 2 2011-11-10 12:13:36 PST
Comment on attachment 114418 [details] Proposed fix: use Vector::clear() and simplify the logic. Looks fine.
Julien Chaffraix
Comment 3 2011-11-10 17:41:40 PST
Note You need to log in before you can comment on or make changes to this bug.