KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
73984
:
[test case] iframe inside div is still visible ...
P
roduct
:
konqueror
Co
m
ponent
:
khtml renderer
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2004-02-02 01:35
Last Changed:
2004-11-02 23:58:09
Version: (using KDE KDE 3.2.0) Installed from: Compiled From Sources Compiler: gcc (GCC) 3.3.3 20040110 (prerelease) (Debian) OS: Linux I have an iframe inside a div element, when the div is hidden the iframe is still visible. It works as expected in Konqueror 3.1.5, Mozilla 1.6 and others. Try with this example: <html> <head> <script type="text/javascript"> function init() { testIframe.document.body.innerHTML="<p>Text inside an IFRAME</p>"; if (typeof testDiv == 'undefined') testDiv = document.getElementById('testDiv'); } function hide() { testDiv.style.visibility = 'hidden'; } function show() { testDiv.style.visibility = 'visible'; } </script> <head> <body onload="init()"> <form action=""> <input type="button" value="Hide" onclick="hide()"> <input type="button" value="Show" onclick="show()"> </form> <div id="testDiv" style="border: 10px solid red;"> <p>Text inside DIV</p> <iframe name="testIframe"></iframe> </div> </body>
Comment
#1
Stephan Kulow 2004-02-02 11:10:24
Created an attachment (id=4479)
[details]
test case
Comment
#2
Sashmit Bhaduri 2004-02-04 07:08:57
perhaps a repaint/clipping issue-- if you shade/unshade the window, you'll get a place where nothing is painted.
Comment
#3
Stephan Kulow 2004-11-02 23:58:08
CVS commit by coolo: remove hidden widgets from the painting (thanks Germain for the fix) BUG: 73984 M +2 -0 ChangeLog 1.325 M +3 -1 rendering/render_replaced.cpp 1.177 --- kdelibs/khtml/ChangeLog #1.324:1.325 @@ -1,4 +1,6 @@ 2004-11-02 Stephan Kulow <
coolo@kde.org
> + * rendering/render_replaced.cpp (setStyle): set hidden widgets to invisible + * xml/dom_docimpl.cpp (recalcStyleSelector): avoid invalid casts on XML documents --- kdelibs/khtml/rendering/render_replaced.cpp #1.176:1.177 @@ -314,4 +314,6 @@ void RenderWidget::setStyle(RenderStyle m_widget->setFont(style()->font()); if (style()->visibility() != VISIBLE) { + if (m_view) + m_view->setWidgetVisible(this, false); m_widget->hide(); }
P
latform
:
Compiled Sources
O
S
:
Linux
K
eywords
:
U
RL
:
People
Reporter
:
Juan Carlos Estibariz
Assigned To
:
Konqueror Developers
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
test case
(675 bytes, text/html)
2004-02-02 11:10
,
Stephan Kulow
Details
View All
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In