Bug 41347

Summary: Cleanup SVGRenderSupport
Product: WebKit Reporter: Nikolas Zimmermann <zimmermann>
Component: Layout and RenderingAssignee: Nikolas Zimmermann <zimmermann>
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Description Flags
Initial patch krit: review+

Description Nikolas Zimmermann 2010-06-29 06:19:13 PDT
SVGRenderSupport contains the SVGRenderBase class, which was meant to be a base class for all SVG renders until all inherit from RenderSVGModelObject, introduced by Eric a year ago.
RenderSVGModelObject inherits from RenderObject. That means classes like RenderSVGImage, which inherits from RenderImage, can NOT inherit from RenderSVGModelObject, as RenderImage already inherits from RenderObject.
The whole class is uncessary and confusing. I'll rename it to SVGRenderSupport, just like the file name, and make all methods static and make it impossible to construct the class.
This shrinks the size of all SVG renderers.
Comment 1 Nikolas Zimmermann 2010-06-29 07:05:23 PDT
Created attachment 60019 [details]
Initial patch
Comment 2 WebKit Review Bot 2010-06-29 07:07:42 PDT
Attachment 60019 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1
WebCore/rendering/RenderSVGResourcePattern.cpp:28:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 32 files

If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dirk Schulze 2010-06-29 07:17:48 PDT
Comment on attachment 60019 [details]
Initial patch

LGTM. Fix the alphabetic order and you can land it. r=me.
Comment 4 Nikolas Zimmermann 2010-06-29 07:26:28 PDT
Landed in r62117.
Comment 5 Nikolas Zimmermann 2010-06-29 07:27:34 PDT
Oops, that should be: 62118.