Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com.

git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2003-11-19 01:20:56 +00:00
parent 19a3086422
commit 2affc5b4f0
132 changed files with 1831 additions and 2341 deletions

View File

@@ -793,9 +793,8 @@ nsTextInputSelectionImpl::CompleteMove(PRBool aForward, PRBool aExtend)
if (offset > 0)
{
nsIContent *child = parentDIV->GetChildAt(offset - 1);
nsCOMPtr<nsIAtom> tagName;
child->GetTag(getter_AddRefs(tagName));
if (tagName == nsHTMLAtoms::br)
if (child->Tag() == nsHTMLAtoms::br)
{
--offset;
hint = HINTRIGHT; // for Bug 106855
@@ -1329,16 +1328,7 @@ PRBool nsTextControlFrame::IsSingleLineTextControl() const
PRBool nsTextControlFrame::IsTextArea() const
{
if (!mContent)
return PR_FALSE;
nsCOMPtr<nsIAtom> tag;
mContent->GetTag(getter_AddRefs(tag));
if (nsHTMLAtoms::textarea == tag)
return PR_TRUE;
return PR_FALSE;
return mContent && mContent->Tag() == nsHTMLAtoms::textarea;
}
// XXX: wouldn't it be nice to get this from the style context!
@@ -2297,9 +2287,7 @@ nsTextControlFrame::SelectAllContents()
// br under the root node!
nsIContent *child = rootContent->GetChildAt(numChildren - 1);
if (child) {
nsCOMPtr<nsIAtom> tagName;
child->GetTag(getter_AddRefs(tagName));
if (tagName == nsHTMLAtoms::br)
if (child->Tag() == nsHTMLAtoms::br)
--numChildren;
}
}