Source/WebCore/ChangeLog

 12012-06-22 Arpita Bahuguna <arpitabahuguna@gmail.com>
 2
 3 Refactoring RenderTable.cpp for code re-usability
 4 https://bugs.webkit.org/show_bug.cgi?id=89751
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 In RenderTable::outerBorderAfter() we have code for obtaining the last section (RenderTableSection).
 9 The same is also available in RenderTable::bottomSection() which should thus be used in outerBorderAfter().
 10
 11 No new tests required.
 12
 13 * rendering/RenderTable.cpp:
 14 (WebCore::RenderTable::outerBorderAfter):
 15
1162012-06-22 Joseph Pecoraro <pecoraro@apple.com>
217
318 Web Inspector: InspectorState::updateCookie should not do JSON serialization if unsupported
121013

Source/WebCore/rendering/RenderTable.cpp

@@int RenderTable::outerBorderAfter() cons
996996 if (!collapseBorders())
997997 return 0;
998998 int borderWidth = 0;
999  RenderTableSection* bottomSection;
1000  if (m_foot)
1001  bottomSection = m_foot;
1002  else {
1003  RenderObject* child;
1004  for (child = lastChild(); child && !child->isTableSection(); child = child->previousSibling()) { }
1005  bottomSection = child ? toRenderTableSection(child) : 0;
1006  }
1007  if (bottomSection) {
1008  borderWidth = bottomSection->outerBorderAfter();
 999
 1000 if (RenderTableSection* section = bottomSection()) {
 1001 borderWidth = section->outerBorderAfter();
10091002 if (borderWidth < 0)
1010  return 0; // Overridden by hidden
 1003 return 0; // Overridden by hidden
10111004 }
10121005 const BorderValue& tb = style()->borderAfter();
10131006 if (tb.style() == BHIDDEN)
121013