Lines 4471-4477
KHTMLPart *
Link Here
|
4471 |
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) |
4471 |
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) |
4472 |
{ |
4472 |
{ |
4473 |
#ifdef DEBUG_FINDFRAME |
4473 |
#ifdef DEBUG_FINDFRAME |
4474 |
kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " findFrameParent( " << f << " )" << endl; |
4474 |
kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " name = " << name() << " findFrameParent( " << f << " )" << endl; |
4475 |
#endif |
4475 |
#endif |
4476 |
// Check access |
4476 |
// Check access |
4477 |
KHTMLPart *callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart); |
4477 |
KHTMLPart *callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart); |
Lines 4479-4484
KHTMLPart::findFrameParent( KParts::Read
Link Here
|
4479 |
if (!checkFrameAccess(callingHtmlPart)) |
4479 |
if (!checkFrameAccess(callingHtmlPart)) |
4480 |
return 0; |
4480 |
return 0; |
4481 |
|
4481 |
|
|
|
4482 |
if (!childFrame && !parentPart() && (name() == f)) |
4483 |
return this; |
4484 |
|
4482 |
FrameIt it = d->m_frames.find( f ); |
4485 |
FrameIt it = d->m_frames.find( f ); |
4483 |
FrameIt end = d->m_frames.end(); |
4486 |
FrameIt end = d->m_frames.end(); |
4484 |
if ( it != end ) |
4487 |
if ( it != end ) |