Chromium Code Reviews| Index: Source/core/rendering/RootInlineBox.h |
| diff --git a/Source/core/rendering/RootInlineBox.h b/Source/core/rendering/RootInlineBox.h |
| index 32b1c55221d0ee4da61fd42fe4d73b80f0639c37..2a4f9ec95a7b43321ad231829a5617d1613ef3d1 100644 |
| --- a/Source/core/rendering/RootInlineBox.h |
| +++ b/Source/core/rendering/RootInlineBox.h |
| @@ -73,12 +73,13 @@ public: |
| int blockDirectionPointInLine() const; |
| LayoutUnit alignBoxesInBlockDirection(LayoutUnit heightOfBlock, GlyphOverflowAndFallbackFontsMap&, VerticalPositionCache&); |
| - void setLineTopBottomPositions(LayoutUnit top, LayoutUnit bottom, LayoutUnit topWithLeading, LayoutUnit bottomWithLeading) |
| + void setLineTopBottomPositions(LayoutUnit top, LayoutUnit bottom, LayoutUnit topWithLeading, LayoutUnit bottomWithLeading, LayoutUnit selectionBottom = LayoutUnit::min()) |
| { |
| m_lineTop = top; |
| m_lineBottom = bottom; |
| m_lineTopWithLeading = topWithLeading; |
| m_lineBottomWithLeading = bottomWithLeading; |
| + m_selectionBottom = selectionBottom == LayoutUnit::min() ? bottom : selectionBottom; |
| } |
| virtual RenderLineBoxList* rendererLineBoxes() const OVERRIDE FINAL; |
| @@ -213,6 +214,8 @@ private: |
| LayoutUnit m_lineTopWithLeading; |
| LayoutUnit m_lineBottomWithLeading; |
| + LayoutUnit m_selectionBottom; |
|
eseidel
2014/06/19 23:01:47
I wonder how many lines we typically have on a pag
|
| + |
| struct LineFragmentationData { |
| WTF_MAKE_NONCOPYABLE(LineFragmentationData); WTF_MAKE_FAST_ALLOCATED; |
| public: |