Changes between Version 2 and Version 3 of April 2012 Write Your Own Render Object
- Timestamp:
- Apr 20, 2012, 2:23:31 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
April 2012 Write Your Own Render Object
v2 v3 41 41 42 42 * transforms? 43 43 44 * RenderText vs inline text boxes? 45 44 46 * xpos / ypos ? have been replaced by accumulated offsets - how do these relate to absolute positioning? 47 45 48 * logical vs. physical coordinate spaces (e.g., RTL - does x mean "from left" or "from start")? 49 46 50 * painting the line box tree 47 51 … … 49 53 50 54 * done in two separate parts of the tree, one for html/css, one for svg 55 51 56 * for html/css, done in RenderLayer - the layer handles transforms, masking, clipping, etc. RenderObjects are supposed to be dumb. 57 52 58 * in svg, all of the objects know how to handle transforms intrinsically 53 59 … … 55 61 56 62 * parts of the render tree are dumb and just contain data (e.g., text nodes) - these don't layout or paint themselves. In this case the containing object creates a list of lines of text (the line box tree) and the containing object may have to deal with RTL direction, ligatures, etc. 63 57 64 * A RenderTextFragment splits off the first letter to handle "first-letter" 65 58 66 * "first-line" is split off into a different InlineText box 59 67