|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/kde/kdelibs/post-3.3.2-kdelibs-htmlframes2.patch # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # --- ROCK-COPYRIGHT-NOTE-END ---
Index: khtml_part.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/khtml_part.cpp,v retrieving revision 1.1015.2.12 diff -u -p -r1.1015.2.12 khtml_part.cpp
--- ./khtml/khtml_part.cpp 17 Nov 2004 13:46:56 -0000 1.1015.2.12
+++ ./khtml/khtml_part.cpp 12 Dec 2004 15:55:30 -0000
@@ -4758,7 +4758,7 @@ KHTMLPart *
KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) { #ifdef DEBUG_FINDFRAME - kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " findFrameParent( " << f << " )" << endl;
+ kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " name = " << name() << " findFrameParent( " << f << " )" << endl;
#endif // Check access KHTMLPart* const callingHtmlPart = dynamic_cast<KHTMLPart *>(callingPart); @@ -4766,6 +4766,9 @@ KHTMLPart::findFrameParent( KParts::Read
if (!checkFrameAccess(callingHtmlPart)) return 0; + if (!childFrame && !parentPart() && (name() == f))
+ return this;
+
FrameIt it = d->m_frames.find( f ); const FrameIt end = d->m_frames.end(); if ( it != end )
|