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 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 return LineLayoutBoxModel(nullptr); | 281 return LineLayoutBoxModel(nullptr); |
282 } | 282 } |
283 | 283 |
284 LayoutPoint locationIncludingFlipping() const; | 284 LayoutPoint locationIncludingFlipping() const; |
285 | 285 |
286 // Converts from a rect in the logical space of the InlineBox to one in the
physical space | 286 // Converts from a rect in the logical space of the InlineBox to one in the
physical space |
287 // of the containing block. The logical space of an InlineBox may be transpo
sed for vertical text and | 287 // of the containing block. The logical space of an InlineBox may be transpo
sed for vertical text and |
288 // flipped for right-to-left text. | 288 // flipped for right-to-left text. |
289 void logicalRectToPhysicalRect(LayoutRect&) const; | 289 void logicalRectToPhysicalRect(LayoutRect&) const; |
290 | 290 |
| 291 // TODO(szager): The Rect versions should return a rect, not modify the argu
ment. |
291 void flipForWritingMode(FloatRect&) const; | 292 void flipForWritingMode(FloatRect&) const; |
292 FloatPoint flipForWritingMode(const FloatPoint&) const; | 293 FloatPoint flipForWritingMode(const FloatPoint&) const; |
293 void flipForWritingMode(LayoutRect&) const; | 294 void flipForWritingMode(LayoutRect&) const; |
294 LayoutPoint flipForWritingMode(const LayoutPoint&) const; | 295 LayoutPoint flipForWritingMode(const LayoutPoint&) const; |
295 | 296 |
296 bool knownToHaveNoOverflow() const { return m_bitfields.knownToHaveNoOverflo
w(); } | 297 bool knownToHaveNoOverflow() const { return m_bitfields.knownToHaveNoOverflo
w(); } |
297 void clearKnownToHaveNoOverflow(); | 298 void clearKnownToHaveNoOverflow(); |
298 | 299 |
299 bool dirOverride() const { return m_bitfields.dirOverride(); } | 300 bool dirOverride() const { return m_bitfields.dirOverride(); } |
300 void setDirOverride(bool dirOverride) { m_bitfields.setDirOverride(dirOverri
de); } | 301 void setDirOverride(bool dirOverride) { m_bitfields.setDirOverride(dirOverri
de); } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 454 |
454 } // namespace blink | 455 } // namespace blink |
455 | 456 |
456 #ifndef NDEBUG | 457 #ifndef NDEBUG |
457 // Outside the WebCore namespace for ease of invocation from gdb. | 458 // Outside the WebCore namespace for ease of invocation from gdb. |
458 void showTree(const blink::InlineBox*); | 459 void showTree(const blink::InlineBox*); |
459 void showLineTree(const blink::InlineBox*); | 460 void showLineTree(const blink::InlineBox*); |
460 #endif | 461 #endif |
461 | 462 |
462 #endif // InlineBox_h | 463 #endif // InlineBox_h |
OLD | NEW |