Bug 246051

Summary: [Outline] Outline painting should be able to call BorderPainter with border-radius info
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, koivisto, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 20807    
Attachments:
Description Flags
Patch none

Description zalan 2022-10-04 17:14:28 PDT
ssia
Comment 1 zalan 2022-10-04 17:29:11 PDT
Created attachment 462800 [details]
Patch
Comment 2 Antti Koivisto 2022-10-05 07:52:52 PDT
Comment on attachment 462800 [details]
Patch

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

> Source/WebCore/rendering/BorderPainter.h:47
> +    struct Sides {
> +        RoundedRect outerBorder;
> +        RoundedRect innerBorder;
> +        RoundedRect unadjustedInnerBorder;
> +        std::optional<BorderData::Radii> radii { };
> +        const BorderEdges& edges;
> +        bool haveAllSolidEdges { true };
> +        BackgroundBleedAvoidance bleedAvoidance { BackgroundBleedNone };
> +        bool includeLogicalLeftEdge { true };
> +        bool includeLogicalRightEdge { true };
> +        bool appliedClipAlready { false };
> +    };

"Sides" seems like a strange name for this. I'd expect it would have four sides as a member or something. I don't have a suggestion though.
Comment 3 zalan 2022-10-05 20:29:40 PDT
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 462800 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=462800&action=review
> 
> > Source/WebCore/rendering/BorderPainter.h:47
> > +    struct Sides {
> > +        RoundedRect outerBorder;
> > +        RoundedRect innerBorder;
> > +        RoundedRect unadjustedInnerBorder;
> > +        std::optional<BorderData::Radii> radii { };
> > +        const BorderEdges& edges;
> > +        bool haveAllSolidEdges { true };
> > +        BackgroundBleedAvoidance bleedAvoidance { BackgroundBleedNone };
> > +        bool includeLogicalLeftEdge { true };
> > +        bool includeLogicalRightEdge { true };
> > +        bool appliedClipAlready { false };
> > +    };
> 
> "Sides" seems like a strange name for this. I'd expect it would have four
> sides as a member or something. I don't have a suggestion though.
I'll try to think of a better name -will come back to it.
Comment 4 EWS 2022-10-05 21:19:36 PDT
Committed 255207@main (dfee462561b1): <https://commits.webkit.org/255207@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 462800 [details].
Comment 5 Radar WebKit Bug Importer 2022-10-05 21:20:21 PDT
<rdar://problem/100836548>