| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 * | 18 * |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef InlineFlowBox_h | 21 #ifndef InlineFlowBox_h |
| 22 #define InlineFlowBox_h | 22 #define InlineFlowBox_h |
| 23 | 23 |
| 24 #include "core/layout/LayoutObjectInlines.h" | 24 #include "core/layout/LayoutObjectInlines.h" |
| 25 #include "core/layout/OverflowModel.h" | 25 #include "core/layout/OverflowModel.h" |
| 26 #include "core/layout/api/SelectionState.h" |
| 26 #include "core/layout/line/InlineBox.h" | 27 #include "core/layout/line/InlineBox.h" |
| 27 #include "core/style/ShadowData.h" | 28 #include "core/style/ShadowData.h" |
| 28 | 29 |
| 29 namespace blink { | 30 namespace blink { |
| 30 | 31 |
| 31 class HitTestRequest; | 32 class HitTestRequest; |
| 32 class HitTestResult; | 33 class HitTestResult; |
| 33 class InlineTextBox; | 34 class InlineTextBox; |
| 34 class LineBoxList; | 35 class LineBoxList; |
| 35 class SimpleFontData; | 36 class SimpleFontData; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom); | 192 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom); |
| 192 FontBaseline dominantBaseline() const; | 193 FontBaseline dominantBaseline() const; |
| 193 | 194 |
| 194 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const
; | 195 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const
; |
| 195 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons
t; | 196 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons
t; |
| 196 | 197 |
| 197 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo
wAndFallbackFontsMap&); | 198 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo
wAndFallbackFontsMap&); |
| 198 | 199 |
| 199 void removeChild(InlineBox* child, MarkLineBoxes); | 200 void removeChild(InlineBox* child, MarkLineBoxes); |
| 200 | 201 |
| 201 LayoutObject::SelectionState selectionState() const override; | 202 SelectionState selectionState() const override; |
| 202 | 203 |
| 203 bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) cons
t final; | 204 bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) cons
t final; |
| 204 LayoutUnit placeEllipsisBox(bool ltr, LayoutUnit blockLeftEdge, LayoutUnit b
lockRightEdge, LayoutUnit ellipsisWidth, LayoutUnit &truncatedWidth, bool&) over
ride; | 205 LayoutUnit placeEllipsisBox(bool ltr, LayoutUnit blockLeftEdge, LayoutUnit b
lockRightEdge, LayoutUnit ellipsisWidth, LayoutUnit &truncatedWidth, bool&) over
ride; |
| 205 | 206 |
| 206 bool hasTextChildren() const { return m_hasTextChildren; } | 207 bool hasTextChildren() const { return m_hasTextChildren; } |
| 207 bool hasTextDescendants() const { return m_hasTextDescendants; } | 208 bool hasTextDescendants() const { return m_hasTextDescendants; } |
| 208 void setHasTextDescendants() { m_hasTextDescendants = true; } | 209 void setHasTextDescendants() { m_hasTextDescendants = true; } |
| 209 | 210 |
| 210 void checkConsistency() const; | 211 void checkConsistency() const; |
| 211 void setHasBadChildList(); | 212 void setHasBadChildList(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 361 } |
| 361 | 362 |
| 362 } // namespace blink | 363 } // namespace blink |
| 363 | 364 |
| 364 #ifndef NDEBUG | 365 #ifndef NDEBUG |
| 365 // Outside the WebCore namespace for ease of invocation from gdb. | 366 // Outside the WebCore namespace for ease of invocation from gdb. |
| 366 void showTree(const blink::InlineFlowBox*); | 367 void showTree(const blink::InlineFlowBox*); |
| 367 #endif | 368 #endif |
| 368 | 369 |
| 369 #endif // InlineFlowBox_h | 370 #endif // InlineFlowBox_h |
| OLD | NEW |