2011-01-20 James Robinson <jamesr@chromium.org>
Reviewed by Eric Seidel.
RenderTableSection's setNeedsCellRecalc needs to null check table()
https://bugs.webkit.org/show_bug.cgi?id=52770
Tests ::-webkit-scrollbar-corner inside a table.
* fast/css-generated-content/table-with-scrollbar-corner-expected.txt: Added.
* fast/css-generated-content/table-with-scrollbar-corner.html: Added.
2011-01-20 James Robinson <jamesr@chromium.org>
Reviewed by Eric "Baller" Seidel.
RenderTableSection's setNeedsCellRecalc needs to null check table()
https://bugs.webkit.org/show_bug.cgi?id=52770
Null checks table() before deferencing it in RenderTableSection::setNeedsCellRecalc.
This can be null during detach(). Test constructed by Eric Seidel.
Test: fast/css-generated-content/table-with-scrollbar-corner.html
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::setNeedsCellRecalc):
* rendering/RenderTableSection.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/rendering/RenderTableSection.cpp b/Source/WebCore/rendering/RenderTableSection.cpp
index a0b6b9e..fa557bc 100644
--- a/Source/WebCore/rendering/RenderTableSection.cpp
+++ b/Source/WebCore/rendering/RenderTableSection.cpp
@@ -1083,6 +1083,13 @@
setNeedsLayout(true);
}
+void RenderTableSection::setNeedsCellRecalc()
+{
+ m_needsCellRecalc = true;
+ if (RenderTable* t = table())
+ t->setNeedsSectionRecalc();
+}
+
void RenderTableSection::clearGrid()
{
int rows = m_gridRows;