X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2FRenderTableSection.cpp;h=e594892ca244c1416edd9b8852b8d6c6594f41ca;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=f4bc50a91f025be33c1d94c9f60d1ff66d491b3e;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/RenderTableSection.cpp b/src/third_party/WebKit/Source/core/rendering/RenderTableSection.cpp index f4bc50a..e594892 100644 --- a/src/third_party/WebKit/Source/core/rendering/RenderTableSection.cpp +++ b/src/third_party/WebKit/Source/core/rendering/RenderTableSection.cpp @@ -26,12 +26,9 @@ #include "config.h" #include "core/rendering/RenderTableSection.h" -// FIXME: Remove 'RuntimeEnabledFeatures.h' when http://crbug.com/78724 is closed. -#include "RuntimeEnabledFeatures.h" #include #include "core/rendering/GraphicsContextAnnotator.h" #include "core/rendering/HitTestResult.h" -#include "core/rendering/LayoutRectRecorder.h" #include "core/rendering/PaintInfo.h" #include "core/rendering/RenderTableCell.h" #include "core/rendering/RenderTableCol.h" @@ -638,7 +635,7 @@ void RenderTableSection::updateBaselineForCell(RenderTableCell* cell, unsigned r int RenderTableSection::calcRowLogicalHeight() { #ifndef NDEBUG - SetLayoutNeededForbiddenScope layoutForbiddenScope(this); + SetLayoutNeededForbiddenScope layoutForbiddenScope(*this); #endif ASSERT(!needsLayout()); @@ -734,8 +731,6 @@ void RenderTableSection::layout() ASSERT(!needsCellRecalc()); ASSERT(!table()->needsSectionRecalc()); - LayoutRectRecorder recorder(*this); - // addChild may over-grow m_grid but we don't want to throw away the memory too early as addChild // can be called in a loop (e.g during parsing). Doing it now ensures we have a stable-enough structure. m_grid.shrinkToFit(); @@ -744,7 +739,7 @@ void RenderTableSection::layout() const Vector& columnPos = table()->columnPositions(); - SubtreeLayoutScope layouter(this); + SubtreeLayoutScope layouter(*this); for (unsigned r = 0; r < m_grid.size(); ++r) { Row& row = m_grid[r].row; unsigned cols = row.size(); @@ -756,8 +751,6 @@ void RenderTableSection::layout() if (!cell || current.inColSpan) continue; - LayoutRectRecorder cellRecorder(*cell); - unsigned endCol = startColumn; unsigned cspan = cell->colSpan(); while (cspan && endCol < cols) { @@ -881,7 +874,7 @@ static bool shouldFlexCellChild(RenderObject* cellDescendant) void RenderTableSection::layoutRows() { #ifndef NDEBUG - SetLayoutNeededForbiddenScope layoutForbiddenScope(this); + SetLayoutNeededForbiddenScope layoutForbiddenScope(*this); #endif ASSERT(!needsLayout()); @@ -921,8 +914,6 @@ void RenderTableSection::layoutRows() if (!cell || cs.inColSpan) continue; - LayoutRectRecorder cellRecorder(*cell); - int rowIndex = cell->rowIndex(); int rHeight = m_rowPos[rowIndex + cell->rowSpan()] - m_rowPos[rowIndex] - vspacing; @@ -979,7 +970,7 @@ void RenderTableSection::layoutRows() } } - SubtreeLayoutScope layouter(cell); + SubtreeLayoutScope layouter(*cell); cell->computeIntrinsicPadding(rHeight, layouter); LayoutRect oldCellRect = cell->frameRect();