Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: Source/core/rendering/InlineTextBox.h

Issue 713553002: Clean up forward declarations in core/rendering and core/painting (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/rendering/ClipRectsCache.h ('k') | Source/core/rendering/LayoutState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/ClipRectsCache.h ('k') | Source/core/rendering/LayoutState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698