| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights 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 InlineBox_h | 21 #ifndef InlineBox_h |
| 22 #define InlineBox_h | 22 #define InlineBox_h |
| 23 | 23 |
| 24 #include "core/layout/LayoutBoxModelObject.h" | 24 #include "core/layout/LayoutBoxModelObject.h" |
| 25 #include "core/layout/LayoutObject.h" | 25 #include "core/layout/LayoutObject.h" |
| 26 #include "core/layout/api/SelectionState.h" |
| 26 #include "platform/graphics/paint/DisplayItemClient.h" | 27 #include "platform/graphics/paint/DisplayItemClient.h" |
| 27 #include "platform/text/TextDirection.h" | 28 #include "platform/text/TextDirection.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 RootInlineBox; | 34 class RootInlineBox; |
| 34 | 35 |
| 35 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes }; | 36 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes }; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin
Offset() : caretMaxOffset(); } | 244 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin
Offset() : caretMaxOffset(); } |
| 244 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa
xOffset() : caretMinOffset(); } | 245 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa
xOffset() : caretMinOffset(); } |
| 245 | 246 |
| 246 virtual void clearTruncation() { } | 247 virtual void clearTruncation() { } |
| 247 | 248 |
| 248 bool isDirty() const { return m_bitfields.dirty(); } | 249 bool isDirty() const { return m_bitfields.dirty(); } |
| 249 virtual void markDirty() { m_bitfields.setDirty(true); } | 250 virtual void markDirty() { m_bitfields.setDirty(true); } |
| 250 | 251 |
| 251 virtual void dirtyLineBoxes(); | 252 virtual void dirtyLineBoxes(); |
| 252 | 253 |
| 253 virtual LayoutObject::SelectionState selectionState() const; | 254 virtual SelectionState selectionState() const; |
| 254 | 255 |
| 255 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; | 256 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; |
| 256 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. | 257 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. |
| 257 virtual LayoutUnit placeEllipsisBox(bool ltr, LayoutUnit visibleLeftEdge, La
youtUnit visibleRightEdge, LayoutUnit ellipsisWidth, LayoutUnit &truncatedWidth,
bool&); | 258 virtual LayoutUnit placeEllipsisBox(bool ltr, LayoutUnit visibleLeftEdge, La
youtUnit visibleRightEdge, LayoutUnit ellipsisWidth, LayoutUnit &truncatedWidth,
bool&); |
| 258 | 259 |
| 259 #if ENABLE(ASSERT) | 260 #if ENABLE(ASSERT) |
| 260 void setHasBadParent(); | 261 void setHasBadParent(); |
| 261 #endif | 262 #endif |
| 262 | 263 |
| 263 int expansion() const { return m_bitfields.expansion(); } | 264 int expansion() const { return m_bitfields.expansion(); } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 | 436 |
| 436 } // namespace blink | 437 } // namespace blink |
| 437 | 438 |
| 438 #ifndef NDEBUG | 439 #ifndef NDEBUG |
| 439 // Outside the WebCore namespace for ease of invocation from gdb. | 440 // Outside the WebCore namespace for ease of invocation from gdb. |
| 440 void showTree(const blink::InlineBox*); | 441 void showTree(const blink::InlineBox*); |
| 441 void showLineTree(const blink::InlineBox*); | 442 void showLineTree(const blink::InlineBox*); |
| 442 #endif | 443 #endif |
| 443 | 444 |
| 444 #endif // InlineBox_h | 445 #endif // InlineBox_h |
| OLD | NEW |