This is a second refactoring towards lazily allocating our layers as part of bug 75568. Once all callers go through this new function we can add some layer() checks and some size caching scheme so that we can properly repaint without a layer.
Created attachment 123869 [details] Proposed refactoring
Created attachment 128020 [details] Updated to ToT.
Comment on attachment 128020 [details] Updated to ToT. I don't like the term "cachedSize", since this is specifically about "the overflow clip layer size." I know you are going to stop making layers eventually, but maybe layerSize() is still an ok name to use.
Created attachment 128290 [details] With a better naming after talking with Dave on IRC.
Adding more reviewers as this should be a simple change to review.
Comment on attachment 128290 [details] With a better naming after talking with Dave on IRC. Clearing flags on attachment: 128290 Committed r109157: <http://trac.webkit.org/changeset/109157>
All reviewed patches have been landed. Closing bug.