Closed Bug 648140 Opened 14 years ago Closed 14 years ago

Some namespaces should be checked in nsMathMLContainerFrame.cpp

Categories

(Core :: MathML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: fwang, Assigned: cazacu.daniell)

Details

(Whiteboard: [good first bug])

Attachments

(1 file, 3 obsolete files)

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 ||
Er.... kNameSpaceID_MathML, no?
(In reply to comment #1) > Er.... kNameSpaceID_MathML, no? Yes :-)
Assignee: nobody → cazacu.daniell
Status: NEW → ASSIGNED
Attempt at solving first bug.
Attachment #541669 - Flags: review?(karlt)
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)
Attached patch Revised patch, open for review (obsolete) — Splinter Review
Attachment #541669 - Attachment is obsolete: true
Attachment #542102 - Flags: review?(karlt)
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+
Attached patch Revised patch, already reviewed (obsolete) — Splinter Review
Now with the extra space added.
Attachment #542102 - Attachment is obsolete: true
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 @@
Attached patch Final patchSplinter Review
Rebuilt the patch to fix the syntax error.
Attachment #542398 - Attachment is obsolete: true
(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
Attachment #542767 - Attachment description: Revised, hopefully fixed corrupt sintax. → Final patch
Attachment #542767 - Flags: review+
Flags: in-testsuite?
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.

Attachment

General

Creator:
Created:
Updated:
Size: