| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #define InlineTextBox_h | 24 #define InlineTextBox_h |
| 25 | 25 |
| 26 #include "core/rendering/InlineBox.h" | 26 #include "core/rendering/InlineBox.h" |
| 27 #include "core/rendering/RenderText.h" // so textRenderer() can be inline | 27 #include "core/rendering/RenderText.h" // so textRenderer() can be inline |
| 28 #include "platform/fonts/TextBlob.h" | 28 #include "platform/fonts/TextBlob.h" |
| 29 #include "platform/text/TextRun.h" | 29 #include "platform/text/TextRun.h" |
| 30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 struct CompositionUnderline; | |
| 35 class DocumentMarker; | 34 class DocumentMarker; |
| 36 class GraphicsContext; | 35 class GraphicsContext; |
| 37 | 36 |
| 38 const unsigned short cNoTruncation = USHRT_MAX; | 37 const unsigned short cNoTruncation = USHRT_MAX; |
| 39 const unsigned short cFullTruncation = USHRT_MAX - 1; | 38 const unsigned short cFullTruncation = USHRT_MAX - 1; |
| 40 | 39 |
| 41 class InlineTextBox : public InlineBox { | 40 class InlineTextBox : public InlineBox { |
| 42 public: | 41 public: |
| 43 InlineTextBox(RenderObject& obj, int start, unsigned short length) | 42 InlineTextBox(RenderObject& obj, int start, unsigned short length) |
| 44 : InlineBox(obj) | 43 : InlineBox(obj) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 179 |
| 181 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) | 180 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) |
| 182 { | 181 { |
| 183 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) | 182 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) |
| 184 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); | 183 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); |
| 185 } | 184 } |
| 186 | 185 |
| 187 } // namespace blink | 186 } // namespace blink |
| 188 | 187 |
| 189 #endif // InlineTextBox_h | 188 #endif // InlineTextBox_h |
| OLD | NEW |