Closed Bug 237169 Opened 20 years ago Closed 20 years ago

decomify and rename nsIFrame::IsPercentageBase

Categories

(Core :: Layout: Block and Inline, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: dbaron, Assigned: dbaron)

References

(Blocks 1 open bug)

Details

(Whiteboard: [patch])

Attachments

(1 file, 1 obsolete file)

I want to deCOMify the signature of nsIFrame::IsPercentageBase and give it a
less cryptic name.
In my opinion we should move away from this api altogether in the long run.  The
only users seem to be the reflow state, the style struct calculation code, and
computed style.  The last two actually want GetContainingBlock(), while the
reflow state will need to be adjusted anyway to handle relatively positioned
inlines with absolutely positioned kids (which case is handled incorrectly by
the style struct and computed style code, by the way).
Attached patch patchSplinter Review
Attachment #143639 - Attachment is obsolete: true
Attachment #143651 - Flags: superreview?(bzbarsky)
Attachment #143651 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.7beta
Comment on attachment 143651 [details] [diff] [review]
patch

r+sr=bzbarsky
Attachment #143651 - Flags: superreview?(bzbarsky)
Attachment #143651 - Flags: superreview+
Attachment #143651 - Flags: review?(bzbarsky)
Attachment #143651 - Flags: review+
Comment on attachment 143651 [details] [diff] [review]
patch

Simple cleanup that I'd like to land to get started with other things.
Attachment #143651 - Flags: approval1.7b?
Comment on attachment 143651 [details] [diff] [review]
patch

a=brendan, sure.

/be
Attachment #143651 - Flags: approval1.7b? → approval1.7b+
Fix checked in to trunk, 2004-03-11 20:40 -0800.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This checkin breaks debug builds in nsComputedDOMStyle.cpp. A semicolon is missing:

Index: nsComputedDOMStyle.cpp
===================================================================
RCS file: /cvsroot/mozilla/content/html/style/src/nsComputedDOMStyle.cpp,v
retrieving revision 1.105
diff -u -r1.105 nsComputedDOMStyle.cpp
--- nsComputedDOMStyle.cpp	12 Mar 2004 04:40:16 -0000	1.105
+++ nsComputedDOMStyle.cpp	12 Mar 2004 08:53:35 -0000
@@ -2889,7 +2889,7 @@
   nsIFrame* container = aFrame;
   do {
     container = container->GetParent();
-  } while (container && !container->IsContainingBlock())
+  } while (container && !container->IsContainingBlock());
 
   NS_POSTCONDITION(container, "Frame has no containing block");
   return container;
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
bustage fix checked in.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Oops.  Thanks for fixing that.
*** Bug 231341 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: