[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
hyatt
hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:44:54 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit cfdc729721322ea90b0c210c29123068041384d2
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Jun 11 01:09:01 2003 +0000
Fix for 3287870, the <embed hidden=true> feature didn't work.
hidden should turn the embed into a plugin with a width and
height of 0.
Reviewed by gramps
* khtml/html/html_objectimpl.cpp:
(HTMLEmbedElementImpl::HTMLEmbedElementImpl):
(HTMLEmbedElementImpl::attach):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index f7ffa32..19d5baa 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,15 @@
+2003-06-10 David Hyatt <hyatt at apple.com>
+
+ Fix for 3287870, the <embed hidden=true> feature didn't work.
+ hidden should turn the embed into a plugin with a width and
+ height of 0.
+
+ Reviewed by gramps
+
+ * khtml/html/html_objectimpl.cpp:
+ (HTMLEmbedElementImpl::HTMLEmbedElementImpl):
+ (HTMLEmbedElementImpl::attach):
+
2003-06-10 Darin Adler <darin at apple.com>
Reviewed by John.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index f7ffa32..19d5baa 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,15 @@
+2003-06-10 David Hyatt <hyatt at apple.com>
+
+ Fix for 3287870, the <embed hidden=true> feature didn't work.
+ hidden should turn the embed into a plugin with a width and
+ height of 0.
+
+ Reviewed by gramps
+
+ * khtml/html/html_objectimpl.cpp:
+ (HTMLEmbedElementImpl::HTMLEmbedElementImpl):
+ (HTMLEmbedElementImpl::attach):
+
2003-06-10 Darin Adler <darin at apple.com>
Reviewed by John.
diff --git a/WebCore/khtml/html/html_objectimpl.cpp b/WebCore/khtml/html/html_objectimpl.cpp
index 9270f21..a867973 100644
--- a/WebCore/khtml/html/html_objectimpl.cpp
+++ b/WebCore/khtml/html/html_objectimpl.cpp
@@ -169,6 +169,7 @@ bool HTMLAppletElementImpl::callMember(const QString & name, const QStringList &
HTMLEmbedElementImpl::HTMLEmbedElementImpl(DocumentPtr *doc)
: HTMLElementImpl(doc)
{
+ hidden = false;
}
HTMLEmbedElementImpl::~HTMLEmbedElementImpl()
@@ -254,6 +255,13 @@ RenderObject *HTMLEmbedElementImpl::createRenderer(RenderArena *arena, RenderSty
void HTMLEmbedElementImpl::attach()
{
+ if (hidden) {
+ // FIXME: Not dynamic, but it's not really important that such a rarely-used
+ // feature work dynamically.
+ addCSSLength( CSS_PROP_WIDTH, "0" );
+ addCSSLength( CSS_PROP_HEIGHT, "0" );
+ }
+
createRendererIfNeeded();
if (m_render) {
static_cast<RenderPartObject*>(m_render)->updateWidget();
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list