Index: Source/core/rendering/RenderBlockFlow.h |
diff --git a/Source/core/rendering/RenderBlockFlow.h b/Source/core/rendering/RenderBlockFlow.h |
index 8bfbf2dd29a61807d896d775359112a461f0a978..ebbd0cecfdef672ca4718977a205d0ae251f776c 100644 |
--- a/Source/core/rendering/RenderBlockFlow.h |
+++ b/Source/core/rendering/RenderBlockFlow.h |
@@ -46,7 +46,6 @@ namespace WebCore { |
class MarginInfo; |
class LineBreaker; |
class LineWidth; |
-class RenderNamedFlowFragment; |
class RenderBlockFlow : public RenderBlock { |
public: |
@@ -63,43 +62,18 @@ public: |
virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = false) OVERRIDE; |
virtual void deleteLineBoxTree() OVERRIDE FINAL; |
- // Versions that can compute line offsets with the region and page offset passed in. Used for speed to avoid having to |
- // compute the region all over again when you already know it. |
- LayoutUnit availableLogicalWidthForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const |
- { |
- return max<LayoutUnit>(0, logicalRightOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight) |
- - logicalLeftOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight)); |
- } |
- LayoutUnit logicalRightOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const |
- { |
- return logicalRightOffsetForLine(position, logicalRightOffsetForContent(region), shouldIndentText, logicalHeight); |
- } |
- LayoutUnit logicalLeftOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const |
- { |
- return logicalLeftOffsetForLine(position, logicalLeftOffsetForContent(region), shouldIndentText, logicalHeight); |
- } |
- LayoutUnit startOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const |
- { |
- return style()->isLeftToRightDirection() ? logicalLeftOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight) |
- : logicalWidth() - logicalRightOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight); |
- } |
- LayoutUnit endOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const |
- { |
- return !style()->isLeftToRightDirection() ? logicalLeftOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight) |
- : logicalWidth() - logicalRightOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight); |
- } |
- |
LayoutUnit availableLogicalWidthForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const |
{ |
- return availableLogicalWidthForLineInRegion(position, shouldIndentText, regionAtBlockOffset(position), logicalHeight); |
+ return max<LayoutUnit>(0, logicalRightOffsetForLine(position, shouldIndentText, logicalHeight) |
+ - logicalLeftOffsetForLine(position, shouldIndentText, logicalHeight)); |
} |
LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const |
{ |
- return logicalRightOffsetForLine(position, logicalRightOffsetForContent(position), shouldIndentText, logicalHeight); |
+ return logicalRightOffsetForLine(position, logicalRightOffsetForContent(), shouldIndentText, logicalHeight); |
} |
LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const |
{ |
- return logicalLeftOffsetForLine(position, logicalLeftOffsetForContent(position), shouldIndentText, logicalHeight); |
+ return logicalLeftOffsetForLine(position, logicalLeftOffsetForContent(), shouldIndentText, logicalHeight); |
} |
LayoutUnit pixelSnappedLogicalLeftOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const |
{ |
@@ -127,7 +101,7 @@ public: |
virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, LayoutUnit position) OVERRIDE; |
virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, LayoutUnit position) OVERRIDE; |
- LayoutUnit computeStartPositionDeltaForChildAvoidingFloats(const RenderBox* child, LayoutUnit childMarginStart, RenderRegion* = 0); |
+ LayoutUnit computeStartPositionDeltaForChildAvoidingFloats(const RenderBox* child, LayoutUnit childMarginStart); |
RootInlineBox* createAndAppendRootInlineBox(); |
@@ -253,7 +227,6 @@ protected: |
return adjustLogicalLeftOffsetForLine(logicalLeftFloatOffsetForLine(logicalTop, fixedOffset, logicalHeight), applyTextIndent); |
} |
- virtual void insertedIntoTree() OVERRIDE; |
virtual void willBeDestroyed() OVERRIDE; |
private: |
void layoutBlockFlow(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0); |
@@ -376,7 +349,6 @@ public: |
, m_lineGridBox(0) |
, m_discardMarginBefore(false) |
, m_discardMarginAfter(false) |
- , m_renderNamedFlowFragment(0) |
{ |
} |
@@ -403,13 +375,9 @@ public: |
bool m_discardMarginBefore : 1; |
bool m_discardMarginAfter : 1; |
- RenderNamedFlowFragment* m_renderNamedFlowFragment; |
}; |
LayoutUnit marginOffsetForSelfCollapsingBlock(); |
- RenderNamedFlowFragment* renderNamedFlowFragment() const { return m_rareData ? m_rareData->m_renderNamedFlowFragment : 0; } |
- void setRenderNamedFlowFragment(RenderNamedFlowFragment*); |
- |
protected: |
LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData->m_margins.positiveMarginBefore() : RenderBlockFlowRareData::positiveMarginBeforeDefault(this); } |
LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData->m_margins.negativeMarginBefore() : RenderBlockFlowRareData::negativeMarginBeforeDefault(this); } |
@@ -462,11 +430,6 @@ private: |
// Used to store state between styleWillChange and styleDidChange |
static bool s_canPropagateFloatIntoSibling; |
- virtual bool canHaveChildren() const OVERRIDE; |
- virtual bool canHaveGeneratedChildren() const OVERRIDE; |
- |
- void createRenderNamedFlowFragmentIfNeeded(); |
- |
RenderBlockFlowRareData& ensureRareData(); |
LayoutUnit m_repaintLogicalTop; |
@@ -502,7 +465,6 @@ private: |
const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogicalHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine, InlineBidiResolver&, const InlineIterator&); |
void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, const InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiStatus, unsigned consecutiveHyphenatedLines); |
void updateShapeAndSegmentsForCurrentLine(ShapeInsideInfo*&, const LayoutSize&, LineLayoutState&); |
- void updateShapeAndSegmentsForCurrentLineInFlowThread(ShapeInsideInfo*&, LineLayoutState&); |
bool adjustLogicalLineTopAndLogicalHeightIfNeeded(ShapeInsideInfo*, LayoutUnit, LineLayoutState&, InlineBidiResolver&, FloatingObject*, InlineIterator&, WordMeasurements&); |
void linkToEndLineIfNeeded(LineLayoutState&); |
static void repaintDirtyFloats(Vector<FloatWithRect>& floats); |