Closed
Bug 1008917
Opened 12 years ago
Closed 12 years ago
Make nsIFrame::Reflow and friends return 'void'
Categories
(Core :: Layout, defect, P5)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
Attachments
(16 files)
The return value isn't used for anything nowadays. It used to report
OOM failures but those are all infallible now. The only other use that
I know of was MathML which used it to propagate markup errors and do
some error handling, but someone told me that's not the case anymore.
| Assignee | ||
Comment 1•12 years ago
|
||
This patch singles out the use of nsresult in MathML, and changes it
to NS_OK. Later patches will remove it altogether. Fred, does this
look OK to you? (it's green on Try, fwiw)
Attachment #8420956 -
Flags: review?(fred.wang)
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8420961 -
Flags: review?(roc)
| Assignee | ||
Comment 3•12 years ago
|
||
Attachment #8420962 -
Flags: review?(roc)
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #8420964 -
Flags: review?(roc)
Comment 5•12 years ago
|
||
Comment on attachment 8420956 [details] [diff] [review]
part 1, stop using the nsresult from Reflow methods in MathML code
Review of attachment 8420956 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not aware of any reason why the nsresult was needed for MathML.
This looks good to me.
::: layout/mathml/nsMathMLTokenFrame.cpp
@@ +161,5 @@
> childDesiredSize.mBoundingMetrics);
>
> childFrame = childFrame->GetNextSibling();
> }
>
whitespace change
Attachment #8420956 -
Flags: review?(fred.wang) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
Attachment #8420971 -
Flags: review?(roc)
| Assignee | ||
Comment 7•12 years ago
|
||
Attachment #8420972 -
Flags: review?(roc)
| Assignee | ||
Comment 8•12 years ago
|
||
Attachment #8420975 -
Flags: review?(roc)
| Assignee | ||
Comment 9•12 years ago
|
||
Attachment #8420982 -
Flags: review?(roc)
| Assignee | ||
Comment 10•12 years ago
|
||
Attachment #8420985 -
Flags: review?(roc)
| Assignee | ||
Comment 11•12 years ago
|
||
Attachment #8420987 -
Flags: review?(roc)
| Assignee | ||
Comment 12•12 years ago
|
||
Attachment #8420989 -
Flags: review?(roc)
| Assignee | ||
Comment 13•12 years ago
|
||
Attachment #8420994 -
Flags: review?(roc)
| Assignee | ||
Comment 14•12 years ago
|
||
Attachment #8420995 -
Flags: review?(roc)
| Assignee | ||
Comment 15•12 years ago
|
||
Attachment #8420996 -
Flags: review?(roc)
| Assignee | ||
Comment 16•12 years ago
|
||
Attachment #8420997 -
Flags: review?(roc)
| Assignee | ||
Comment 17•12 years ago
|
||
Attachment #8420998 -
Flags: review?(roc)
| Assignee | ||
Updated•12 years ago
|
Attachment #8420989 -
Attachment description: make nsBlockFrame::ReflowDirtyLines() and nsLineLayout::ReflowFrame() return types 'void' → part 11, make nsBlockFrame::ReflowDirtyLines() and nsLineLayout::ReflowFrame() return types 'void'
| Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #5)
> This looks good to me.
Thanks for the quick review.
> whitespace change
Intentional - there was two lines of separation there and I couldn't
resist the temptation to fix it :-)
| Assignee | ||
Comment 19•12 years ago
|
||
(That's all the patches I have for this bug)
Attachment #8420961 -
Flags: review?(roc) → review+
Attachment #8420962 -
Flags: review?(roc) → review+
Attachment #8420964 -
Flags: review?(roc) → review+
Attachment #8420971 -
Flags: review?(roc) → review+
Attachment #8420972 -
Flags: review?(roc) → review+
Attachment #8420975 -
Flags: review?(roc) → review+
Attachment #8420982 -
Flags: review?(roc) → review+
Attachment #8420985 -
Flags: review?(roc) → review+
Attachment #8420987 -
Flags: review?(roc) → review+
Attachment #8420989 -
Flags: review?(roc) → review+
Attachment #8420994 -
Flags: review?(roc) → review+
Attachment #8420995 -
Flags: review?(roc) → review+
Attachment #8420996 -
Flags: review?(roc) → review+
Attachment #8420997 -
Flags: review?(roc) → review+
Attachment #8420998 -
Flags: review?(roc) → review+
Please squash together the patches that need to land together to not break the build, so every hg changeset builds. Thanks! This is good stuff :-)
| Assignee | ||
Comment 21•12 years ago
|
||
No problem, I folded parts 2+3+4, and 5+6+7, and 9+10, and verified it built properly
after each patch:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5c380c21351f
https://hg.mozilla.org/integration/mozilla-inbound/rev/9afa5e7715e1
https://hg.mozilla.org/integration/mozilla-inbound/rev/b8000b31277c
https://hg.mozilla.org/integration/mozilla-inbound/rev/25b2475d2368
https://hg.mozilla.org/integration/mozilla-inbound/rev/161c41991d46
https://hg.mozilla.org/integration/mozilla-inbound/rev/10ed89a302e9
https://hg.mozilla.org/integration/mozilla-inbound/rev/80304bb9a572
https://hg.mozilla.org/integration/mozilla-inbound/rev/f7a38df1d44f
https://hg.mozilla.org/integration/mozilla-inbound/rev/2ab5b01da4de
https://hg.mozilla.org/integration/mozilla-inbound/rev/b52154d8d900
https://hg.mozilla.org/integration/mozilla-inbound/rev/e2ab653f688a
Flags: in-testsuite-
All backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/157af79fbc88 for apparently introducing an intermittent B2G crashtest-2 failure:
https://tbpl.mozilla.org/php/getParsedLog.php?id=39505889&tree=Mozilla-Inbound
Flags: needinfo?(matspal)
(In reply to Wes Kocher (:KWierso) from comment #22)
> All backed out in
> https://hg.mozilla.org/integration/mozilla-inbound/rev/157af79fbc88 for
> apparently introducing an intermittent B2G crashtest-2 failure:
>
> https://tbpl.mozilla.org/php/getParsedLog.php?id=39505889&tree=Mozilla-
> Inbound
Retriggers on earlier builds had this failure, so this can probably safely reland.
| Assignee | ||
Comment 24•12 years ago
|
||
No problem, will do so as soon as the tree reopens.
Flags: needinfo?(matspal)
| Assignee | ||
Comment 25•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/30d055013319
https://hg.mozilla.org/integration/mozilla-inbound/rev/edfbdecd9e82
https://hg.mozilla.org/integration/mozilla-inbound/rev/b37e7eabd9ef
https://hg.mozilla.org/integration/mozilla-inbound/rev/4a5c32341b95
https://hg.mozilla.org/integration/mozilla-inbound/rev/8db1cef6a53d
https://hg.mozilla.org/integration/mozilla-inbound/rev/7e2dead825d9
https://hg.mozilla.org/integration/mozilla-inbound/rev/a03df0fff293
https://hg.mozilla.org/integration/mozilla-inbound/rev/6a854a7051ab
https://hg.mozilla.org/integration/mozilla-inbound/rev/32e8633c7cc0
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d161e4c59fe
https://hg.mozilla.org/integration/mozilla-inbound/rev/a13c7393880d
Comment 26•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/30d055013319
https://hg.mozilla.org/mozilla-central/rev/edfbdecd9e82
https://hg.mozilla.org/mozilla-central/rev/b37e7eabd9ef
https://hg.mozilla.org/mozilla-central/rev/4a5c32341b95
https://hg.mozilla.org/mozilla-central/rev/8db1cef6a53d
https://hg.mozilla.org/mozilla-central/rev/7e2dead825d9
https://hg.mozilla.org/mozilla-central/rev/a03df0fff293
https://hg.mozilla.org/mozilla-central/rev/6a854a7051ab
https://hg.mozilla.org/mozilla-central/rev/32e8633c7cc0
https://hg.mozilla.org/mozilla-central/rev/0d161e4c59fe
https://hg.mozilla.org/mozilla-central/rev/a13c7393880d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•