[Webkit-unassigned] [Bug 218093] [css-logical] Implement logical border-radius
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 16 04:10:08 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=218093
--- Comment #10 from zsun at igalia.com ---
(In reply to Simon Fraser (smfr) from comment #6)
> Comment on attachment 416234 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=416234&action=review
>
> > Source/WebCore/css/CSSProperty.cpp:175
> > + case CSSPropertyBorderStartStartRadius: {
> > + return resolveToPhysicalProperty(direction, writingMode, LogicalRadiusCorner::StartStart, borderRadiusShorthand());
> > + }
> > + case CSSPropertyBorderStartEndRadius: {
> > + return resolveToPhysicalProperty(direction, writingMode, LogicalRadiusCorner::StartEnd, borderRadiusShorthand());
> > + }
> > + case CSSPropertyBorderEndStartRadius: {
> > + return resolveToPhysicalProperty(direction, writingMode, LogicalRadiusCorner::EndStart, borderRadiusShorthand());
> > + }
> > + case CSSPropertyBorderEndEndRadius: {
> > + return resolveToPhysicalProperty(direction, writingMode, LogicalRadiusCorner::EndEnd, borderRadiusShorthand());
> > + }
>
> No need for braces on these.
>
> >> Source/WebCore/platform/text/WritingMode.h:132
> >> +enum class LogicalRadiusCorner : uint8_t {
> >
> > In the future there might be more properties referencing corners, other than border radius.
> > So it may be better to name the enums like LogicalBoxCorner and BoxCorner.
> > Seems I missed this in the Chromium review...
>
> I concur. See BoxSide and LogicalBoxSide.
>
> > Source/WebCore/platform/text/WritingMode.h:187
> > +inline RadiusCorner mapLogicalRadiusCornerToPhysicalRadiusCorner(TextFlow textflow, WritingMode writingMode, LogicalRadiusCorner logicalRadiusCorner)
>
> This can be called mapLogicalCornerToPhysicalCorner()
Code updated. Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201216/63ec57a6/attachment.htm>
More information about the webkit-unassigned
mailing list