Changes between Version 2 and Version 3 of LayoutAndRendering
- Timestamp:
- Oct 7, 2009, 2:49:59 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LayoutAndRendering
v2 v3 5 5 * Your implementation of `RenderObject::layout()` should guarantee that object and its descendants do not need '''any''' layout when you leave the method. 6 6 * In your `RenderObject::layout()` method, add a `ASSERT(needsLayout())` at the beginning and a `setNeedsLayout(false)` at the end. 7 * If your render object needs to access DOM attributes and use them to set properties or construct other objects in the tree, you need to use ''mapped attributes'' or `updateFromElement` to control such behavior.