Bug 185649

Summary: [LFC] Make Display::Box box sizing aware
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, koivisto, sam, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description zalan 2018-05-15 08:55:35 PDT
box-sizing: content-box, border-box
Comment 1 zalan 2018-05-15 09:03:09 PDT
Created attachment 340414 [details]
Patch
Comment 2 Antti Koivisto 2018-05-16 02:14:48 PDT
Comment on attachment 340414 [details]
Patch

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

> Source/WebCore/layout/displaytree/DisplayBox.h:90
> +    Box(EBoxSizing);

Won't this need some sort of more generic strategy at some point? Presumably there are other style-dependent things in Display::Boxes.
Comment 3 zalan 2018-05-16 07:21:08 PDT
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 340414 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=340414&action=review
> 
> > Source/WebCore/layout/displaytree/DisplayBox.h:90
> > +    Box(EBoxSizing);
> 
> Won't this need some sort of more generic strategy at some point? Presumably
> there are other style-dependent things in Display::Boxes.
Yeah, we definitely need some sort of more generic strategy for computed/resolved style values! (currently it's a combination of setters (padding, border) and through c'tor (box-sizing)).
Comment 4 WebKit Commit Bot 2018-05-16 07:50:00 PDT
Comment on attachment 340414 [details]
Patch

Clearing flags on attachment: 340414

Committed r231846: <https://trac.webkit.org/changeset/231846>
Comment 5 WebKit Commit Bot 2018-05-16 07:50:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-05-16 07:50:22 PDT
<rdar://problem/40293626>