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.
This commit is contained in:
@@ -1451,16 +1451,14 @@ CalcQuirkContainingBlockHeight(const nsHTMLReflowState& aReflowState)
|
||||
if (firstAncestorRS) {
|
||||
nsIContent* frameContent = firstAncestorRS->frame->GetContent();
|
||||
if (frameContent) {
|
||||
nsCOMPtr<nsIAtom> contentTag;
|
||||
frameContent->GetTag(getter_AddRefs(contentTag));
|
||||
nsIAtom *contentTag = frameContent->Tag();
|
||||
NS_ASSERTION(contentTag == nsHTMLAtoms::html, "First ancestor is not HTML");
|
||||
}
|
||||
}
|
||||
if (secondAncestorRS) {
|
||||
nsIContent* frameContent = secondAncestorRS->frame->GetContent();
|
||||
if (frameContent) {
|
||||
nsCOMPtr<nsIAtom> contentTag;
|
||||
frameContent->GetTag(getter_AddRefs(contentTag));
|
||||
nsIAtom *contentTag = frameContent->Tag();
|
||||
NS_ASSERTION(contentTag == nsHTMLAtoms::body, "Second ancestor is not BODY");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user