Closed Bug 369243 Opened 18 years ago Closed 18 years ago

Remove unused flag NS_BLOCK_SHRINK_WRAP

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha3

People

(Reporter: smontagu, Assigned: smontagu)

References

()

Details

Attachments

(1 file)

NS_BLOCK_SHRINK_WRAP is set in a few places, but never used.
Attached patch PatchSplinter Review
Assignee: nobody → smontagu
Status: NEW → ASSIGNED
Attachment #253926 - Flags: superreview?
Attachment #253926 - Flags: review?
Attachment #253926 - Flags: superreview?(bzbarsky)
Attachment #253926 - Flags: superreview?
Attachment #253926 - Flags: review?(bzbarsky)
Attachment #253926 - Flags: review?
Comment on attachment 253926 [details] [diff] [review] Patch >Index: layout/base/nsCSSFrameConstructor.cpp > nsIFrame* areaFrame = NS_NewAreaFrame(mPresShell, styleContext, >- NS_BLOCK_SPACE_MGR | NS_BLOCK_SHRINK_WRAP); >+ NS_BLOCK_SPACE_MGR); This doesn't fit on one line in 80 chars? Of so, indent the NS_BLOCK_SPACE_MGR like mPresShell? >Index: layout/generic/nsHTMLParts.h >-#define NS_BLOCK_SHRINK_WRAP 0x00100000 > #define NS_BLOCK_NO_AUTO_MARGINS 0x00200000 You're planning to reuse this flag, so no need to renumber, right? >-#define NS_BLOCK_FLAGS_MASK 0xF0F00000 >+#define NS_BLOCK_FLAGS_MASK 0xF0E00000 I don't think we want that change... I'd like dbaron to OK this.
Attachment #253926 - Flags: superreview?(dbaron)
Attachment #253926 - Flags: superreview?(bzbarsky)
Attachment #253926 - Flags: review?(bzbarsky)
Attachment #253926 - Flags: review+
(In reply to comment #2) > This doesn't fit on one line in 80 chars? Nope (85). > Of so, indent the NS_BLOCK_SPACE_MGR > like mPresShell? Done, here and throughout the file. > You're planning to reuse this flag, so no need to renumber, right? Right.
Blocks: 365130
Summary: Removed unused flag NS_BLOCK_SHRINK_WRAP → Remove unused flag NS_BLOCK_SHRINK_WRAP
Comment on attachment 253926 [details] [diff] [review] Patch >Index: layout/generic/nsHTMLParts.h > /** > * Additional frame-state bits used by nsBlockFrame > * See the meanings at http://www.mozilla.org/newlayout/doc/block-and-line.html > */ This reference was already rather stale before this patch. Is there something more up-to-date that we can substitute?
Comment on attachment 253926 [details] [diff] [review] Patch Oops. sr=dbaron
Attachment #253926 - Flags: superreview?(dbaron) → superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Target Milestone: --- → mozilla1.9alpha3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: