Lines 4758-4764
KHTMLPart *
Link Here
|
4758 |
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) |
4758 |
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) |
4759 |
{ |
4759 |
{ |
4760 |
#ifdef DEBUG_FINDFRAME |
4760 |
#ifdef DEBUG_FINDFRAME |
4761 |
kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " findFrameParent( " << f << " )" << endl; |
4761 |
kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " name = " << name() << " findFrameParent( " << f << " )" << endl; |
4762 |
#endif |
4762 |
#endif |
4763 |
// Check access |
4763 |
// Check access |
4764 |
KHTMLPart* const callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart); |
4764 |
KHTMLPart* const callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart); |
Lines 4766-4771
KHTMLPart::findFrameParent( KParts::Read
Link Here
|
4766 |
if (!checkFrameAccess(callingHtmlPart)) |
4766 |
if (!checkFrameAccess(callingHtmlPart)) |
4767 |
return 0; |
4767 |
return 0; |
4768 |
|
4768 |
|
|
|
4769 |
if (!childFrame && !parentPart() && (name() == f)) |
4770 |
return this; |
4771 |
|
4769 |
FrameIt it = d->m_frames.find( f ); |
4772 |
FrameIt it = d->m_frames.find( f ); |
4770 |
const FrameIt end = d->m_frames.end(); |
4773 |
const FrameIt end = d->m_frames.end(); |
4771 |
if ( it != end ) |
4774 |
if ( it != end ) |