| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 RootInlineBox* prevRootBox() const { return static_cast<RootInlineBox*>(m_pr
evLineBox); } | 47 RootInlineBox* prevRootBox() const { return static_cast<RootInlineBox*>(m_pr
evLineBox); } |
| 48 | 48 |
| 49 virtual void adjustPosition(float dx, float dy) override final; | 49 virtual void adjustPosition(float dx, float dy) override final; |
| 50 | 50 |
| 51 LayoutUnit lineTop() const { return m_lineTop; } | 51 LayoutUnit lineTop() const { return m_lineTop; } |
| 52 LayoutUnit lineBottom() const { return m_lineBottom; } | 52 LayoutUnit lineBottom() const { return m_lineBottom; } |
| 53 | 53 |
| 54 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; } | 54 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; } |
| 55 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; } | 55 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; } |
| 56 | 56 |
| 57 bool isFirstAfterPageBreak() const { return m_fragmentationData ? m_fragment
ationData->m_isFirstAfterPageBreak : false; } | |
| 58 void setIsFirstAfterPageBreak(bool isFirstAfterPageBreak) { ensureLineFragme
ntationData()->m_isFirstAfterPageBreak = isFirstAfterPageBreak; } | |
| 59 | |
| 60 LayoutUnit paginatedLineWidth() const { return m_fragmentationData ? m_fragm
entationData->m_paginatedLineWidth : LayoutUnit(0); } | 57 LayoutUnit paginatedLineWidth() const { return m_fragmentationData ? m_fragm
entationData->m_paginatedLineWidth : LayoutUnit(0); } |
| 61 void setPaginatedLineWidth(LayoutUnit width) { ensureLineFragmentationData()
->m_paginatedLineWidth = width; } | 58 void setPaginatedLineWidth(LayoutUnit width) { ensureLineFragmentationData()
->m_paginatedLineWidth = width; } |
| 62 | 59 |
| 63 LayoutUnit selectionTop() const; | 60 LayoutUnit selectionTop() const; |
| 64 LayoutUnit selectionBottom() const; | 61 LayoutUnit selectionBottom() const; |
| 65 LayoutUnit selectionHeight() const { return max<LayoutUnit>(0, selectionBott
om() - selectionTop()); } | 62 LayoutUnit selectionHeight() const { return max<LayoutUnit>(0, selectionBott
om() - selectionTop()); } |
| 66 | 63 |
| 67 LayoutUnit selectionTopAdjustedForPrecedingBlock() const; | 64 LayoutUnit selectionTopAdjustedForPrecedingBlock() const; |
| 68 LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return max<Lay
outUnit>(0, selectionBottom() - selectionTopAdjustedForPrecedingBlock()); } | 65 LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return max<Lay
outUnit>(0, selectionBottom() - selectionTopAdjustedForPrecedingBlock()); } |
| 69 | 66 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Where this line ended. The exact object and the position within that obj
ect are stored so that | 187 // Where this line ended. The exact object and the position within that obj
ect are stored so that |
| 191 // we can create an InlineIterator beginning just after the end of this line
. | 188 // we can create an InlineIterator beginning just after the end of this line
. |
| 192 RenderObject* m_lineBreakObj; | 189 RenderObject* m_lineBreakObj; |
| 193 RefPtr<BidiContext> m_lineBreakContext; | 190 RefPtr<BidiContext> m_lineBreakContext; |
| 194 | 191 |
| 195 struct LineFragmentationData { | 192 struct LineFragmentationData { |
| 196 WTF_MAKE_NONCOPYABLE(LineFragmentationData); WTF_MAKE_FAST_ALLOCATED; | 193 WTF_MAKE_NONCOPYABLE(LineFragmentationData); WTF_MAKE_FAST_ALLOCATED; |
| 197 public: | 194 public: |
| 198 LineFragmentationData() | 195 LineFragmentationData() |
| 199 : m_paginatedLineWidth(0) | 196 : m_paginatedLineWidth(0) |
| 200 , m_isFirstAfterPageBreak(false) | |
| 201 { | 197 { |
| 202 | 198 |
| 203 } | 199 } |
| 204 | 200 |
| 205 LayoutUnit m_paginatedLineWidth; | 201 LayoutUnit m_paginatedLineWidth; |
| 206 bool m_isFirstAfterPageBreak; | |
| 207 }; | 202 }; |
| 208 | 203 |
| 209 OwnPtr<LineFragmentationData> m_fragmentationData; | 204 OwnPtr<LineFragmentationData> m_fragmentationData; |
| 210 | 205 |
| 211 LayoutUnit m_lineTop; | 206 LayoutUnit m_lineTop; |
| 212 LayoutUnit m_lineBottom; | 207 LayoutUnit m_lineBottom; |
| 213 LayoutUnit m_lineTopWithLeading; | 208 LayoutUnit m_lineTopWithLeading; |
| 214 LayoutUnit m_lineBottomWithLeading; | 209 LayoutUnit m_lineBottomWithLeading; |
| 215 LayoutUnit m_selectionBottom; | 210 LayoutUnit m_selectionBottom; |
| 216 }; | 211 }; |
| 217 | 212 |
| 218 } // namespace blink | 213 } // namespace blink |
| 219 | 214 |
| 220 #endif // SKY_ENGINE_CORE_RENDERING_ROOTINLINEBOX_H_ | 215 #endif // SKY_ENGINE_CORE_RENDERING_ROOTINLINEBOX_H_ |
| OLD | NEW |