Summary: | Konqueror crash with CSS :first-child and :before psuedo-classes (testcase) | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | jakub |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
jakub
2003-01-11 14:56:11 UTC
Subject: kdelibs/khtml/rendering CVS commit by mueller: tststs, some people just want pseudo children with display: none. go figure. CCMAIL: 52876-done@bugs.kde.org M +6 -6 render_container.cpp 1.41 --- kdelibs/khtml/rendering/render_container.cpp #1.40:1.41 @@ -194,7 +194,7 @@ void RenderContainer::insertPseudoChild( RenderStyle* pseudo = child->style()->getPseudoStyle(type); - if (pseudo) - { - if (pseudo->contentType()==CONTENT_TEXT) + if (pseudo) { + pseudo->ref(); + if (pseudo->display() != NONE && pseudo->contentType()==CONTENT_TEXT) { RenderObject* po = new (renderArena()) RenderFlow(0 /* anonymous box */); @@ -216,5 +216,5 @@ void RenderContainer::insertPseudoChild( po->close(); } - else if (pseudo->contentType()==CONTENT_OBJECT) + else if (pseudo->display() != NONE && pseudo->contentType()==CONTENT_OBJECT) { RenderObject* po = new (renderArena()) RenderImage(0); @@ -225,5 +225,5 @@ void RenderContainer::insertPseudoChild( po->close(); } - + pseudo->deref(); } } |