Bug 133932

Summary: Subpixel layout: Switch inlines' baseline positioning from int to LayoutUnit.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, dbarton, esprehn+autocc, ews-watchlist, fred.wang, glenn, hyatt, jfernandez, kondapallykalyan, mifenton, mmaxfield, pdr, phiw2, rbuis, rego, simon.fraser, svillar, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 136332, 158441, 133575    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

zalan
Reported 2014-06-15 20:51:25 PDT
This is mainly about *::baselinePosition() *::firstLineBaseline() *::inlineBlockBaseline()
Attachments
Patch (68.79 KB, patch)
2021-03-29 09:18 PDT, Rob Buis
no flags
Patch (69.15 KB, patch)
2021-03-30 06:27 PDT, Rob Buis
no flags
Patch (72.17 KB, patch)
2021-03-30 09:00 PDT, Rob Buis
no flags
Patch (72.11 KB, patch)
2021-03-30 10:41 PDT, Rob Buis
no flags
Patch (72.11 KB, patch)
2021-03-31 00:30 PDT, Rob Buis
no flags
Patch (71.73 KB, patch)
2021-04-02 00:30 PDT, Rob Buis
no flags
Rob Buis
Comment 1 2021-03-29 09:18:05 PDT
Rob Buis
Comment 2 2021-03-30 06:27:42 PDT
Rob Buis
Comment 3 2021-03-30 09:00:52 PDT
Rob Buis
Comment 4 2021-03-30 10:41:12 PDT
zalan
Comment 5 2021-03-30 20:24:50 PDT
My general advice (but it's really up to you) is to use auto whenever possible as well as uniform initialization (and also make this patch strictly about int -> LayoutUnit (e.g. do not convert special values to Optional)).
Rob Buis
Comment 6 2021-03-31 00:30:54 PDT
Rob Buis
Comment 7 2021-03-31 07:58:55 PDT
(In reply to zalan from comment #5) > My general advice (but it's really up to you) is to use auto whenever > possible as well as uniform initialization (and also make this patch > strictly about int -> LayoutUnit (e.g. do not convert special values to > Optional)). Thanks, I tried to do this in the latest patch. Also I try to get away with the minimum amount of explicit toInt() calls, just enough to keep the bots green. Follow up work (removing more toInt()) will likely be smaller (code) patches, since these small changes may need a lot of rebaselining of the tests, big changes may cause huge patches/rebaselining.
zalan
Comment 8 2021-04-01 13:11:11 PDT
(In reply to Rob Buis from comment #7) > (In reply to zalan from comment #5) > > My general advice (but it's really up to you) is to use auto whenever > > possible as well as uniform initialization (and also make this patch > > strictly about int -> LayoutUnit (e.g. do not convert special values to > > Optional)). > > Thanks, I tried to do this in the latest patch. Also I try to get away with > the minimum amount of explicit toInt() calls, just enough to keep the bots > green. > > Follow up work (removing more toInt()) will likely be smaller (code) > patches, since these small changes may need a lot of rebaselining of the > tests, big changes may cause huge patches/rebaselining. Sounds good. Any particular reason you left in the "-1 -> Optional" transition?
Rob Buis
Comment 9 2021-04-01 13:30:07 PDT
(In reply to zalan from comment #8) > (In reply to Rob Buis from comment #7) > > (In reply to zalan from comment #5) > > > My general advice (but it's really up to you) is to use auto whenever > > > possible as well as uniform initialization (and also make this patch > > > strictly about int -> LayoutUnit (e.g. do not convert special values to > > > Optional)). > > > > Thanks, I tried to do this in the latest patch. Also I try to get away with > > the minimum amount of explicit toInt() calls, just enough to keep the bots > > green. > > > > Follow up work (removing more toInt()) will likely be smaller (code) > > patches, since these small changes may need a lot of rebaselining of the > > tests, big changes may cause huge patches/rebaselining. > Sounds good. Any particular reason you left in the "-1 -> Optional" > transition? In GridBaselineAlignment? When doing some work on flexbox, there was a preference for doing -1 -> Optional changes, which is also my preference, but if you want to keep that as-is, that is also fine by me. I can't quite remember if not doing that would make tests fail, but I lean towards thinking there is no difference in behaviour either way.
zalan
Comment 10 2021-04-01 13:47:05 PDT
(In reply to Rob Buis from comment #9) > (In reply to zalan from comment #8) > > (In reply to Rob Buis from comment #7) > > > (In reply to zalan from comment #5) > > > > My general advice (but it's really up to you) is to use auto whenever > > > > possible as well as uniform initialization (and also make this patch > > > > strictly about int -> LayoutUnit (e.g. do not convert special values to > > > > Optional)). > > > > > > Thanks, I tried to do this in the latest patch. Also I try to get away with > > > the minimum amount of explicit toInt() calls, just enough to keep the bots > > > green. > > > > > > Follow up work (removing more toInt()) will likely be smaller (code) > > > patches, since these small changes may need a lot of rebaselining of the > > > tests, big changes may cause huge patches/rebaselining. > > Sounds good. Any particular reason you left in the "-1 -> Optional" > > transition? > > In GridBaselineAlignment? When doing some work on flexbox, there was a > preference for doing -1 -> Optional changes, which is also my preference, > but if you want to keep that as-is, that is also fine by me. I can't quite > remember if not doing that would make tests fail, but I lean towards > thinking there is no difference in behaviour either way. Ok, I just prefer a clean int -> LayoutUnit patch to make things like tracking down regressions easier.
zalan
Comment 11 2021-04-01 13:47:51 PDT
>there was a preference for doing -1 -> Optional changes, which is also my preference that's absolutely my preference too. just not in this patch.
Rob Buis
Comment 12 2021-04-01 13:49:27 PDT
(In reply to zalan from comment #11) > >there was a preference for doing -1 -> Optional changes, which is also my preference > that's absolutely my preference too. just not in this patch. Sure, makes sense. I'll remove that part tomorrow and check nothing breaks :)
zalan
Comment 13 2021-04-01 14:06:03 PDT
(In reply to Rob Buis from comment #12) > (In reply to zalan from comment #11) > > >there was a preference for doing -1 -> Optional changes, which is also my preference > > that's absolutely my preference too. just not in this patch. > > Sure, makes sense. I'll remove that part tomorrow and check nothing breaks :) Thanks. Let me just r+/cq- this patch so that tomorrow you don't need to ask for review again.
Rob Buis
Comment 14 2021-04-02 00:30:27 PDT
EWS
Comment 15 2021-04-02 01:29:53 PDT
commit-queue failed to commit attachment 424993 [details] to WebKit repository. To retry, please set cq+ flag again.
EWS
Comment 16 2021-04-02 02:07:46 PDT
Committed r275413: <https://commits.webkit.org/r275413> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424993 [details].
Radar WebKit Bug Importer
Comment 17 2021-04-02 02:08:19 PDT
Note You need to log in before you can comment on or make changes to this bug.