Closed
Bug 727685
Opened 13 years ago
Closed 13 years ago
Compile time error for unused variable 'invmatrix' on nsSVGForeignObjectFrame
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: sinker, Assigned: sinker)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
invmatrix is only used for assertion. It dues to a compiling time error for unused variable.
Assignee | ||
Comment 1•13 years ago
|
||
Comment on attachment 597638 [details] [diff] [review]
Fix the compile time error for unused variable invmatrix
Review of attachment 597638 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with that
::: layout/svg/base/src/nsSVGForeignObjectFrame.cpp
@@ +273,5 @@
> gfx->Multiply(matrixForChildren);
>
> // Transform the dirty rect into the rectangle containing the
> // transformed dirty rect.
> + mozilla::DebugOnly<gfxMatrix> invmatrix = matrix.Invert();
Instead of a mozilla:: prefix here, just add "using namespace mozilla;" after the #includes.
Attachment #597638 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•13 years ago
|
||
updated as the suggestion of comment 2.
Attachment #597638 -
Attachment is obsolete: true
Comment 4•13 years ago
|
||
Try run for b6c7a39cd692 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=b6c7a39cd692
Results (out of 133 total builds):
success: 110
warnings: 10
failure: 13
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/tlee@mozilla.com-b6c7a39cd692
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #597650 -
Attachment is obsolete: true
Comment 6•13 years ago
|
||
I don't like it. matrix.Invert() actually changes the matrix, unnecessarily in opt builds. I'd add a little helper
#ifdef DEBUG
const gfxMatrix&
Inverse(const gfxMatrix& aMatrix)
{
gfxMatrix matrix = aMatrix;
return matrix.Invert();
}
#endif
And then change the two assertions in this function by
NS_ASSERTION(!Inverse(matrix).IsSingular(),
"inverse of non-singular matrix should be non-singular");
Or something like that
Comment 7•13 years ago
|
||
This code was removed in bug 727212
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Comment 8•13 years ago
|
||
Try run for c0cded1d82ce is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=c0cded1d82ce
Results (out of 212 total builds):
success: 175
warnings: 23
failure: 14
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/tlee@mozilla.com-c0cded1d82ce
You need to log in
before you can comment on or make changes to this bug.
Description
•