[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.2/kdelibs/khtml/html
From:       Maks Orlovich <maksim () kde ! org>
Date:       2009-02-07 17:59:43
Message-ID: 1234029583.424506.7488.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 922874 by orlovich:

Fix contentDocument on hidden <object's> (no bug report known, notice in code when \
studying something else)



 M  +1 -3      html_objectimpl.cpp  


--- branches/KDE/4.2/kdelibs/khtml/html/html_objectimpl.cpp #922873:922874
@@ -789,9 +789,7 @@
 
 DocumentImpl* HTMLObjectElementImpl::contentDocument() const
 {
-    if ( !m_render ) return 0;
-    if ( !m_render->isWidget() ) return 0;
-    QWidget* widget = static_cast<RenderWidget*>( m_render )->widget();
+    QWidget* widget = childWidget();
     if( widget && qobject_cast<KHTMLView*>( widget ) )
         return static_cast<KHTMLView*>( widget )->part()->xmlDocImpl();
     return 0;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic