Skip to content

Commit c2fdcfa

Browse files
author
David Hyatt
committed
Don't allow position:relative to apply to table sections. Fixes the crash described in
Radar bug 4107882. (http://cityoflakeforest.com/cs/pw/cs_pw2a3.htm) Reviewed by bdakin * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::adjustRenderStyle): Canonical link: https://commits.webkit.org/9299@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 7a6ff8e commit c2fdcfa

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

WebCore/ChangeLog-2005-12-19

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2005-10-26 David Hyatt <hyatt@apple.com>
2+
3+
Don't allow position:relative to apply to table sections. Fixes the crash described in
4+
Radar bug 4107882. (http://cityoflakeforest.com/cs/pw/cs_pw2a3.htm)
5+
6+
Reviewed by bdakin
7+
8+
* khtml/css/cssstyleselector.cpp:
9+
(khtml::CSSStyleSelector::adjustRenderStyle):
10+
111
2005-10-26 Adele Peterson <adele@apple.com>
212

313
Reviewed by John.

WebCore/khtml/css/cssstyleselector.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,9 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, ElementImpl *e)
955955
// After performing the display mutation, check table rows. We do not honor position:relative on
956956
// table rows or cells. This has been established in CSS2.1 (and caused a crash in containingBlock()
957957
// on some sites).
958-
if ((style->display() == TABLE_ROW || style->display() == TABLE_CELL) && style->position() == RELATIVE)
958+
if ((style->display() == TABLE_HEADER_GROUP || style->display() == TABLE_ROW_GROUP ||
959+
style->display() == TABLE_FOOTER_GROUP || style->display() == TABLE_ROW || style->display() == TABLE_CELL) &&
960+
style->position() == RELATIVE)
959961
style->setPosition(STATIC);
960962
}
961963

0 commit comments

Comments
 (0)