Remove my bogus refs of the elementSheet. Fixes 3554213 and 3555467.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Feb 2004 21:47:01 +0000 (21:47 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Feb 2004 21:47:01 +0000 (21:47 +0000)
        * khtml/html/html_baseimpl.cpp:
        (HTMLBodyElementImpl::createLinkDecl):
        * khtml/html/html_tableimpl.cpp:
        (HTMLTableElementImpl::additionalAttributeStyleDecl):
        (HTMLTableElementImpl::getSharedCellDecl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6073 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_baseimpl.cpp
WebCore/khtml/html/html_tableimpl.cpp

index 4a3ea14..f83ecc6 100644 (file)
@@ -1,5 +1,15 @@
 2004-02-11  David Hyatt  <hyatt@apple.com>
 
+       Remove my bogus refs of the elementSheet.  Fixes 3554213 and 3555467.
+       
+        * khtml/html/html_baseimpl.cpp:
+        (HTMLBodyElementImpl::createLinkDecl):
+        * khtml/html/html_tableimpl.cpp:
+        (HTMLTableElementImpl::additionalAttributeStyleDecl):
+        (HTMLTableElementImpl::getSharedCellDecl):
+
+2004-02-11  David Hyatt  <hyatt@apple.com>
+
        Fix for 3556037, regression where display:block generated content didn't work.
        
         Reviewed by kocienda
index c6d7aab..c95a0cc 100644 (file)
@@ -69,7 +69,6 @@ void HTMLBodyElementImpl::createLinkDecl()
     m_linkDecl = new CSSStyleDeclarationImpl(0);
     m_linkDecl->ref();
     m_linkDecl->setParent(getDocument()->elementSheet());
-    m_linkDecl->parent()->ref();
     m_linkDecl->setNode(this);
     m_linkDecl->setStrictParsing(!getDocument()->inCompatMode());
 }
index b9e4ed6..fb0c9e8 100644 (file)
@@ -531,7 +531,6 @@ CSSStyleDeclarationImpl* HTMLTableElementImpl::additionalAttributeStyleDecl()
     if (!decl) {
         decl = new CSSMappedAttributeDeclarationImpl(0);
         decl->setParent(getDocument()->elementSheet());
-        decl->parent()->ref();
         decl->setNode(this);
         decl->setStrictParsing(false); // Mapped attributes are just always quirky.
         
@@ -558,7 +557,6 @@ CSSStyleDeclarationImpl* HTMLTableElementImpl::getSharedCellDecl()
     if (!decl) {
         decl = new CSSMappedAttributeDeclarationImpl(0);
         decl->setParent(getDocument()->elementSheet());
-        decl->parent()->ref();
         decl->setNode(this);
         decl->setStrictParsing(false); // Mapped attributes are just always quirky.