One more minor tweak for blocker bug 138007. Making iframe.src=... not load the src twice when the iframe is visible. r=jkeiser@netscape.com, sr=heikki@netscape.com

This commit is contained in:
jst%netscape.com 2002-04-18 21:54:48 +00:00
Родитель b1383aea70
Коммит 646b76b0ff
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -552,8 +552,9 @@ nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
nsCOMPtr<nsIAtom> type;
aChild->GetTag(*getter_AddRefs(type));
if ((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) {
if (((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) &&
mOwnsFrameLoader) {
nsHTMLFrameInnerFrame* firstChild =
NS_STATIC_CAST(nsHTMLFrameInnerFrame*, mFrames.FirstChild());

Просмотреть файл

@ -552,8 +552,9 @@ nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
nsCOMPtr<nsIAtom> type;
aChild->GetTag(*getter_AddRefs(type));
if ((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) {
if (((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) &&
mOwnsFrameLoader) {
nsHTMLFrameInnerFrame* firstChild =
NS_STATIC_CAST(nsHTMLFrameInnerFrame*, mFrames.FirstChild());