| Index: sky/engine/core/rendering/RenderBox.cpp
|
| diff --git a/sky/engine/core/rendering/RenderBox.cpp b/sky/engine/core/rendering/RenderBox.cpp
|
| index 95e27c337853033607c9f9d50c779f0733dbc8d0..d39de86572233f128501a91289a9289845b445d0 100644
|
| --- a/sky/engine/core/rendering/RenderBox.cpp
|
| +++ b/sky/engine/core/rendering/RenderBox.cpp
|
| @@ -3089,42 +3089,6 @@ bool RenderBox::hasRelativeLogicalHeight() const
|
| || style()->logicalMaxHeight().isPercent();
|
| }
|
|
|
| -void RenderBox::savePreviousBorderBoxSizeIfNeeded()
|
| -{
|
| - // If m_rareData is already created, always save.
|
| - if (!m_rareData) {
|
| - LayoutSize paintInvalidationSize = previousPaintInvalidationRect().size();
|
| -
|
| - // Don't save old border box size if the paint rect is empty because we'll
|
| - // full invalidate once the paint rect becomes non-empty.
|
| - if (paintInvalidationSize.isEmpty())
|
| - return;
|
| -
|
| - // Don't save old border box size if we can use size of the old paint rect
|
| - // as the old border box size in the next invalidation.
|
| - if (paintInvalidationSize == size())
|
| - return;
|
| -
|
| - // We need the old border box size only when the box has background or box decorations.
|
| - if (!style()->hasBackground() && !style()->hasBoxDecorations())
|
| - return;
|
| - }
|
| -
|
| - ensureRareData().m_previousBorderBoxSize = size();
|
| -}
|
| -
|
| -LayoutSize RenderBox::computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize) const
|
| -{
|
| - // PreviousBorderBoxSize is only valid when there is background or box decorations.
|
| - ASSERT(style()->hasBackground() || style()->hasBoxDecorations());
|
| -
|
| - if (m_rareData && m_rareData->m_previousBorderBoxSize.width() != -1)
|
| - return m_rareData->m_previousBorderBoxSize;
|
| -
|
| - // We didn't save the old border box size because it was the same as the size of oldBounds.
|
| - return previousBoundsSize;
|
| -}
|
| -
|
| RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style)
|
| {
|
| backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor);
|
|
|