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

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

Issue 1665413003: [Line Layout API] Add LineLayoutSVGInline and LineLayoutSVGTextPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef LineLayoutSVGInline_h
6 #define LineLayoutSVGInline_h
7
8 #include "core/layout/api/LineLayoutInline.h"
9 #include "core/layout/svg/LayoutSVGInline.h"
10
11 namespace blink {
12
13 class LineLayoutSVGInline : public LineLayoutInline {
14 public:
15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline)
16 : LineLayoutInline(layoutSVGInline)
17 {
18 }
19
20 explicit LineLayoutSVGInline(const LineLayoutItem& item)
21 : LineLayoutInline(item)
22 {
23 ASSERT(!item || item.isSVGInline());
24 }
25
26 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) { }
27
28 LineLayoutSVGInline() { }
29
30 private:
31 LayoutSVGInline* toSVGInline()
32 {
33 return toLayoutSVGInline(layoutObject());
34 }
35
36 const LayoutSVGInline* toSVGInline() const
37 {
38 return toLayoutSVGInline(layoutObject());
39 }
40 };
41
42 } // namespace blink
43
44 #endif // LineLayoutSVGInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698