Closed
Bug 648140
Opened 14 years ago
Closed 14 years ago
Some namespaces should be checked in nsMathMLContainerFrame.cpp
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
FIXED
mozilla7
People
(Reporter: fwang, Assigned: cazacu.daniell)
Details
(Whiteboard: [good first bug])
Attachments
(1 file, 3 obsolete files)
|
2.11 KB,
patch
|
fwang
:
review+
|
Details | Diff | Splinter Review |
David wrote XXX comments where he indicated we should check namespaces.
This can be done by using nsIContent::GetNameSpaceID and seeing if the result is kNameSpaceID_None.
fred@debian:~/mozilla/src/layout/mathml$ grep -n -C2 "XXX" *.cpp | grep -C2 namespace
nsMathMLContainerFrame.cpp-744- if (!content)
nsMathMLContainerFrame.cpp-745- break;
nsMathMLContainerFrame.cpp:746: // XXXldb This should check namespaces too.
nsMathMLContainerFrame.cpp-747- if (content->Tag() == nsGkAtoms::math)
nsMathMLContainerFrame.cpp-748- break;
--
nsMathMLContainerFrame.cpp-1417- return 0;
nsMathMLContainerFrame.cpp-1418- }
nsMathMLContainerFrame.cpp:1419: // XXXldb This should check namespaces too.
nsMathMLContainerFrame.cpp-1420- nsIAtom *parentTag = parentContent->Tag();
nsMathMLContainerFrame.cpp-1421- if (parentTag == nsGkAtoms::math ||
Comment 1•14 years ago
|
||
Er.... kNameSpaceID_MathML, no?
| Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
> Er.... kNameSpaceID_MathML, no?
Yes :-)
| Reporter | ||
Updated•14 years ago
|
Assignee: nobody → cazacu.daniell
| Reporter | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•14 years ago
|
||
Attempt at solving first bug.
| Assignee | ||
Updated•14 years ago
|
Attachment #541669 -
Flags: review?(karlt)
| Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 541669 [details] [diff] [review]
The .diff file for the modifications where needed.
Daniel, I think your patch is incorrect. It seems that it is already applied on top of other changes adding "content->GetNameSpaceID()==kNameSpaceID_MathML".
You should remove the XXXldb comment, since your patch is supposed to address it.
You should also add spaces around the == operators. Please read the link I sent to you: https://developer.mozilla.org/En/Developer_Guide/Coding_Style
Attachment #541669 -
Flags: review?(karlt)
| Assignee | ||
Comment 5•14 years ago
|
||
Attachment #541669 -
Attachment is obsolete: true
Attachment #542102 -
Flags: review?(karlt)
Comment 6•14 years ago
|
||
Comment on attachment 542102 [details] [diff] [review]
Revised patch, open for review
>+ if (parentContent->GetNameSpaceID() == kNameSpaceID_MathML &&
>+ (parentTag == nsGkAtoms::math || parentTag == nsGkAtoms::mtd_)) {
Can you indent the second line one more space, please, so that it lies within the parentheses of the condition test?
Attachment #542102 -
Flags: review?(karlt) → review+
| Assignee | ||
Comment 7•14 years ago
|
||
Now with the extra space added.
Attachment #542102 -
Attachment is obsolete: true
| Reporter | ||
Comment 8•14 years ago
|
||
I can not apply the second and third versions. It seems that the
@@ -1399,20 +1399,20 @@
in the second hunk should be replaced by
@@ -1399,20 +1399,19 @@
| Assignee | ||
Comment 9•14 years ago
|
||
Rebuilt the patch to fix the syntax error.
Attachment #542398 -
Attachment is obsolete: true
| Reporter | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> Created attachment 542767 [details] [diff] [review] [review]
> Revised, hopefully fixed corrupt sintax.
>
> Rebuilt the patch to fix the syntax error.
OK, this applies correctly, thanks.
Keywords: checkin-needed
| Reporter | ||
Updated•14 years ago
|
Attachment #542767 -
Attachment description: Revised, hopefully fixed corrupt sintax. → Final patch
Attachment #542767 -
Flags: review+
Updated•14 years ago
|
Flags: in-testsuite?
Comment 11•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
You need to log in
before you can comment on or make changes to this bug.
Description
•