Closed Bug 1471267 Opened 7 years ago Closed 7 years ago

Update baseline-querying utility functions to bail on size-contained frames

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: morgan, Assigned: morgan)

References

Details

Attachments

(1 file, 1 obsolete file)

Helper bug to land baseline-querying utility functions required for 'contain:size' to work on all frame types.
This is the same patch as previously r+'d on 1467209; because I moved it to its own bug it needs re-review, checkin for landing.
Flags: needinfo?(dholbert)
Blocks: 1467209
Comment on attachment 8987883 [details] Bug 1471267 - Update some baseline-querying utility functions to bail on frames that have 'contain:size'. https://reviewboard.mozilla.org/r/253170/#review259742 r+ with nits addressed: ::: layout/style/nsStyleStruct.h:2441 (Diff revision 1) > + bool IsContainSize() const { > + // Note: The spec for size containment says it should > + // have no effect on non-atomic, inline-level boxes. We > + // don't check for these here because we don't know > + // what type of element is involved. Callers are > + // responsibble for checking if the box in question is typo: s/responsibble/responsible/ ::: layout/style/nsStyleStruct.h:2444 (Diff revision 1) > + return (NS_STYLE_CONTAIN_SIZE & mContain) && > + !IsInternalRubyDisplayType() && > + !(mozilla::StyleDisplay::Table == mDisplay) && > + !IsInnerTableStyle(); Two nits here: 1) Please deindent the last 3 lines here by 1 space. (Right now their indentation makes it look like they're part of a parenthesized expression starting on the first line, but they're not) 2) Let's just use != for the Table check (rather than !(... == ...)
Attachment #8987883 - Flags: review?(dholbert) → review+
Flags: needinfo?(dholbert)
Keywords: checkin-needed
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s 9a91aa91f82761fcf51bc474eb6547fb57f8e65c -d 9ebcdb66ceff: rebasing 469838:9a91aa91f827 "Bug 1471267 - Update some baseline-querying utility functions to bail on frames that have 'contain:size'. r=dholbert" (tip) merging layout/base/nsLayoutUtils.cpp merging layout/style/nsStyleStruct.h warning: conflicts while merging layout/style/nsStyleStruct.h! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Hmm, I triggered autoland, but it looks like some manual rebasing is needed.
Keywords: checkin-needed
How can I resolve that? Do I need to pull the most recent version of central and run that command above?
Flags: needinfo?(dholbert)
Yeah, I'd suggest backing up your work, and then pulling from central (hg pull), and then running hg rebase -s [commit-id] -d central That's what the autoland-bot is trying to run under the hood, and you'll want to run that yourself and then re-push to review after sorting out the merge conflicts locally.
Flags: needinfo?(dholbert)
Attachment #8987883 - Attachment is obsolete: true
Comment on attachment 8987995 [details] Bug 1471267 - Update some baseline-querying utility functions to bail on frames that have 'contain:size'. https://reviewboard.mozilla.org/r/253258/#review259842
Attachment #8987995 - Flags: review+
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50d485b6ba45 Update some baseline-querying utility functions to bail on frames that have 'contain:size'. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: