Closed
Bug 369243
Opened 18 years ago
Closed 18 years ago
Remove unused flag NS_BLOCK_SHRINK_WRAP
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha3
People
(Reporter: smontagu, Assigned: smontagu)
References
()
Details
Attachments
(1 file)
|
11.28 KB,
patch
|
bzbarsky
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
NS_BLOCK_SHRINK_WRAP is set in a few places, but never used.
| Assignee | ||
Comment 1•18 years ago
|
||
Assignee: nobody → smontagu
Status: NEW → ASSIGNED
Attachment #253926 -
Flags: superreview?
Attachment #253926 -
Flags: review?
| Assignee | ||
Updated•18 years ago
|
Attachment #253926 -
Flags: superreview?(bzbarsky)
Attachment #253926 -
Flags: superreview?
Attachment #253926 -
Flags: review?(bzbarsky)
Attachment #253926 -
Flags: review?
Comment 2•18 years ago
|
||
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+
| Assignee | ||
Comment 3•18 years ago
|
||
(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.
| Assignee | ||
Updated•18 years ago
|
Summary: Removed unused flag NS_BLOCK_SHRINK_WRAP → Remove unused flag NS_BLOCK_SHRINK_WRAP
| Assignee | ||
Comment 4•18 years ago
|
||
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+
| Assignee | ||
Comment 6•18 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Flags: in-testsuite-
Target Milestone: --- → mozilla1.9alpha3
You need to log in
before you can comment on or make changes to this bug.
Description
•