Bug 32935

Summary: SVG Clipping doesn't respect objectBoundingBox of object
Product: WebKit Reporter: Dirk Schulze <krit>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 525.x (Safari 3.1)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 32815    
Bug Blocks:    
Attachments:
Description Flags
Clipping doesn't respect objectBoundingBox none

Description Dirk Schulze 2009-12-25 10:45:01 PST
Created attachment 45492 [details]
Clipping doesn't respect objectBoundingBox

SVG Clipping doesn't use objectBoundingBox of object, even on activated clipPathUnits="objectBoundingBox".
SVGRenderBase::prepareToRenderSVGContent in SVGRenderSupprt.cpp gives repaintRectInLocalCoordinates to SVGResourceClipper instead of objectBoundingBox.
repaintRectInLocalCoordinates includes the stroke of the object. You can see the result of this bug on the example. You should see a green rect.
Comment 1 Dirk Schulze 2009-12-30 01:12:21 PST
Fixed with r52647.