Changes between Version 1 and Version 2 of LayoutAndRendering


Ignore:
Timestamp:
Oct 7, 2009, 2:46:28 PM (15 years ago)
Author:
alex@milowski.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LayoutAndRendering

    v1 v2  
    33= Tips and Techniques =
    44
    5 *  Your implementation of `RenderObject::layout()` should guarantee that object and its descendants do not need '''any''' layout when you leave the method.
    6 *  In your `RenderObject::layout()` method, add a `ASSERT(needsLayout())` at the beginning and a `setNeedsLayout(false)` at the end.
     5 *  Your implementation of `RenderObject::layout()` should guarantee that object and its descendants do not need '''any''' layout when you leave the method.
     6 *  In your `RenderObject::layout()` method, add a `ASSERT(needsLayout())` at the beginning and a `setNeedsLayout(false)` at the end.