|  | Make several functions in SVGRenderSupport templated for performance
Make several functions in SVGRenderSupport templated for performance:
- layoutChildren()
- computeContainerBoundingBoxes()
This way, the implementation knows the exact render type and can use faster
firstChild() from RenderSVGRoot / RenderSVGContainer instead of the generic
RenderObject::slowFirstChild().
This CL also makes SVGRenderSupport a class instead of a namespace so that
we can make the private utility functions private (now that they need to
be defined in the header).
The impact on the release binary size is minimal: +560 bytes.
R=pdr
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174548
    
  
  
    
      |  | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+198 lines, -183 lines) | Patch |  
        |  | M | Source/core/rendering/svg/RenderSVGContainer.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGHiddenContainer.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGImage.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGModelObject.h | View |  | 1 chunk | +0 lines, -1 line | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGModelObject.cpp | View |  | 1 chunk | +1 line, -1 line | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGResourceClipper.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGRoot.h | View |  | 1 chunk | +0 lines, -1 line | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGRoot.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGShape.cpp | View |  | 2 chunks | +1 line, -1 line | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/RenderSVGViewportContainer.cpp | View |  | 1 chunk | +1 line, -1 line | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/SVGInlineTextBox.cpp | View |  | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/SVGRenderSupport.h | View |  | 2 chunks | +189 lines, -44 lines | 0 comments | Download |  
        |  | M | Source/core/rendering/svg/SVGRenderSupport.cpp | View |  | 5 chunks | +0 lines, -134 lines | 0 comments | Download |  
    Total messages: 12 (0 generated)
     |