Summary: | Subpixel layout: Switch inlines' baseline positioning from int to LayoutUnit. | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | zalan <zalan> | ||||||||||||||
Component: | Layout and Rendering | Assignee: | 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
zalan
2014-06-15 20:51:25 PDT
Created attachment 424534 [details]
Patch
Created attachment 424633 [details]
Patch
Created attachment 424645 [details]
Patch
Created attachment 424658 [details]
Patch
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)). Created attachment 424739 [details]
Patch
(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. (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 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. (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. >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.
(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 :) (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. Created attachment 424993 [details]
Patch
commit-queue failed to commit attachment 424993 [details] to WebKit repository. To retry, please set cq+ flag again.
Committed r275413: <https://commits.webkit.org/r275413> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424993 [details]. |