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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h
new file mode 100644
index 0000000000000000000000000000000000000000..e4c50e8ee9737c7ac412d5954570953d3daf9190
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef LineLayoutSVGInline_h
+#define LineLayoutSVGInline_h
+
+#include "core/layout/api/LineLayoutInline.h"
+#include "core/layout/svg/LayoutSVGInline.h"
+
+namespace blink {
+
+class LineLayoutSVGInline : public LineLayoutInline {
+public:
+ explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline)
+ : LineLayoutInline(layoutSVGInline)
+ {
+ }
+
+ explicit LineLayoutSVGInline(const LineLayoutItem& item)
+ : LineLayoutInline(item)
+ {
+ ASSERT(!item || item.isSVGInline());
+ }
+
+ explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) { }
+
+ LineLayoutSVGInline() { }
+
+private:
+ LayoutSVGInline* toSVGInline()
+ {
+ return toLayoutSVGInline(layoutObject());
+ }
+
+ const LayoutSVGInline* toSVGInline() const
+ {
+ return toLayoutSVGInline(layoutObject());
+ }
+};
+
+} // namespace blink
+
+#endif // LineLayoutSVGInline_h

Powered by Google App Engine
This is Rietveld 408576698