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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h

Issue 1417203006: [Line Layout API] Convert QueryData and descendants to line layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LineLayoutSVGInlineText_h 5 #ifndef LineLayoutSVGInlineText_h
6 #define LineLayoutSVGInlineText_h 6 #define LineLayoutSVGInlineText_h
7 7
8 #include "core/layout/api/LineLayoutText.h" 8 #include "core/layout/api/LineLayoutText.h"
9 #include "core/layout/svg/LayoutSVGInlineText.h" 9 #include "core/layout/svg/LayoutSVGInlineText.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LineLayoutSVGInlineText : public LineLayoutText { 13 class LineLayoutSVGInlineText : public LineLayoutText {
14 public: 14 public:
15 explicit LineLayoutSVGInlineText(LayoutSVGInlineText* layoutSVGInlineText) 15 explicit LineLayoutSVGInlineText(LayoutSVGInlineText* layoutSVGInlineText)
16 : LineLayoutText(layoutSVGInlineText) 16 : LineLayoutText(layoutSVGInlineText)
17 { 17 {
18 } 18 }
19 19
20 explicit LineLayoutSVGInlineText(const LineLayoutItem& item) 20 explicit LineLayoutSVGInlineText(const LineLayoutItem& item)
21 : LineLayoutText(item) 21 : LineLayoutText(item)
22 { 22 {
23 ASSERT(!item || item.isSVGInlineText()); 23 ASSERT(!item || item.isSVGInlineText());
24 } 24 }
25 25
26 LineLayoutSVGInlineText() { } 26 LineLayoutSVGInlineText() { }
27 27
28 SVGTextLayoutAttributes* layoutAttributes() const
29 {
30 return const_cast<SVGTextLayoutAttributes*>(toSVGInlineText()->layoutAtt ributes());
31 }
32
28 bool characterStartsNewTextChunk(int position) const 33 bool characterStartsNewTextChunk(int position) const
29 { 34 {
30 return toSVGInlineText()->characterStartsNewTextChunk(position); 35 return toSVGInlineText()->characterStartsNewTextChunk(position);
31 } 36 }
32 37
33 float scalingFactor() const 38 float scalingFactor() const
34 { 39 {
35 return toSVGInlineText()->scalingFactor(); 40 return toSVGInlineText()->scalingFactor();
36 } 41 }
37 42
(...skipping 11 matching lines...) Expand all
49 54
50 const LayoutSVGInlineText* toSVGInlineText() const 55 const LayoutSVGInlineText* toSVGInlineText() const
51 { 56 {
52 return toLayoutSVGInlineText(layoutObject()); 57 return toLayoutSVGInlineText(layoutObject());
53 } 58 }
54 }; 59 };
55 60
56 } // namespace blink 61 } // namespace blink
57 62
58 #endif // LineLayoutSVGInlineText_h 63 #endif // LineLayoutSVGInlineText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LineLayoutItem.h ('k') | third_party/WebKit/Source/core/layout/api/LineLayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698