Bug 127852

Summary: [CSS Shapes] Rounded Insets Let Content Overlap Shape
Product: WebKit Reporter: Bear Travis <betravis>
Component: CSSAssignee: Zoltan Horvath <zoltan>
Status: RESOLVED FIXED    
Severity: Normal CC: bjonesbe, commit-queue, dino, esprehn+autocc, glenn, gyuyoung.kim, kondapallykalyan, macpherson, menard, webkit-bug-importer, zoltan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 124173    
Attachments:
Description Flags
Test case
none
Patch
none
Patch
bjonesbe: review+
Patch for landing none

Description Bear Travis 2014-01-29 13:13:57 PST
Created attachment 222591 [details]
Test case

In some cases, inline content overlaps with insets with a round applied.

Appears to depend on the size of the float shape.
Comment 1 Radar WebKit Bug Importer 2014-01-31 11:04:59 PST
<rdar://problem/15958574>
Comment 2 Zoltan Horvath 2014-02-06 11:21:26 PST
Created attachment 223352 [details]
Patch
Comment 3 Zoltan Horvath 2014-02-06 11:22:27 PST
Created attachment 223354 [details]
Patch
Comment 4 Bem Jones-Bey 2014-02-06 15:46:57 PST
Comment on attachment 223354 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=223354&action=review

> Source/WebCore/css/LengthFunctions.h:41
> +FloatSize floatSizeForLengthSize(const LengthSize&, float maxWidth, float maxHeight);

I think it's ok as is, but I could see an argument for using a const FloatSize& instead of two floats. I'll leave that call up to you, since I'm not sure if it's better or not.
Comment 5 Zoltan Horvath 2014-02-06 16:38:46 PST
Created attachment 223405 [details]
Patch for landing

I'm landing it with LayoutSize.
Comment 6 Zoltan Horvath 2014-02-06 16:39:26 PST
I meant FloatSize.
Comment 7 WebKit Commit Bot 2014-02-06 17:16:14 PST
Comment on attachment 223405 [details]
Patch for landing

Clearing flags on attachment: 223405

Committed r163585: <http://trac.webkit.org/changeset/163585>
Comment 8 WebKit Commit Bot 2014-02-06 17:16:18 PST
All reviewed patches have been landed.  Closing bug.