Bug 110292

Summary: [CSS Grid Layout] Should we add a RAII class to populate and clear the grid representation?
Product: WebKit Reporter: Julien Chaffraix <jchaffraix>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: tony, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 60731    

Description Julien Chaffraix 2013-02-19 19:15:03 PST
See bug 109718, comment #5 about the whole details.

We manually fill and clear our grid representation for each layout / compute preferred logical width phase. As there are several places and 2 varaibles to clear it may make sense to have some RAII pattern to handle the cleaning.

As raised in the other, I think it may be an overkill now but if the code changes we should definitely consider it.