Bug 185649 - [LFC] Make Display::Box box sizing aware
Summary: [LFC] Make Display::Box box sizing aware
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-15 08:55 PDT by zalan
Modified: 2018-05-16 07:50 PDT (History)
7 users (show)

See Also:


Attachments
Patch (5.73 KB, patch)
2018-05-15 09:03 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>