提交 a3d7faaf 编写于 作者: G George Kulakowski

Clean up some dead code in core renderer

上级 3082e825
......@@ -995,7 +995,6 @@ void RenderBox::paintFillLayers(const PaintInfo& paintInfo, const Color& c, cons
Vector<const FillLayer*, 8> layers;
const FillLayer* curLayer = &fillLayer;
bool shouldDrawBackgroundInSeparateBuffer = false;
bool isBottomLayerOccluded = false;
while (curLayer) {
layers.append(curLayer);
// Stop traversal when an opaque layer is encountered.
......@@ -1015,9 +1014,6 @@ void RenderBox::paintFillLayers(const PaintInfo& paintInfo, const Color& c, cons
curLayer = curLayer->next();
}
if (layers.size() > 0 && (**layers.rbegin()).next())
isBottomLayerOccluded = true;
GraphicsContext* context = paintInfo.context;
if (!context)
shouldDrawBackgroundInSeparateBuffer = false;
......
......@@ -144,11 +144,6 @@ void RenderLineBoxList::dirtyLineBoxes()
bool RenderLineBoxList::rangeIntersectsRect(RenderBoxModelObject* renderer, LayoutUnit logicalTop, LayoutUnit logicalBottom, const LayoutRect& rect, const LayoutPoint& offset) const
{
RenderBox* block;
if (renderer->isBox())
block = toRenderBox(renderer);
else
block = renderer->containingBlock();
LayoutUnit physicalStart = logicalTop;
LayoutUnit physicalEnd = logicalBottom;
LayoutUnit physicalExtent = absoluteValue(physicalEnd - physicalStart);
......
......@@ -704,7 +704,6 @@ BidiRun* RenderParagraph::computeInlineDirectionPositionsForSegment(RootInlineBo
unsigned expansionOpportunityCount = 0;
bool isAfterExpansion = true;
Vector<unsigned, 16> expansionOpportunities;
RenderObject* previousObject = 0;
TextJustify textJustify = style()->textJustify();
BidiRun* r = firstRun;
......@@ -744,7 +743,6 @@ BidiRun* RenderParagraph::computeInlineDirectionPositionsForSegment(RootInlineBo
}
totalLogicalWidth += r->m_box->logicalWidth();
previousObject = r->m_object;
}
if (isAfterExpansion && !expansionOpportunities.isEmpty()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册