88#include " flutter/fml/message_loop.h"
99#include " flutter/lib/ui/painting/canvas.h"
1010#include " flutter/lib/ui/text/paragraph_impl.h"
11- #include " flutter/lib/ui/text/paragraph_impl_blink.h"
1211#include " flutter/lib/ui/text/paragraph_impl_txt.h"
1312#include " flutter/lib/ui/text/text_box.h"
14- #include " flutter/sky/engine/core/rendering/RenderView.h"
15- #include " flutter/sky/engine/wtf/PassOwnPtr.h"
1613#include " flutter/third_party/txt/src/txt/paragraph.h"
1714#include " lib/tonic/dart_wrappable.h"
1815
@@ -28,10 +25,6 @@ class Paragraph : public fxl::RefCountedThreadSafe<Paragraph>,
2825 FRIEND_MAKE_REF_COUNTED (Paragraph);
2926
3027 public:
31- static fxl::RefPtr<Paragraph> Create (PassOwnPtr<RenderView> renderView) {
32- return fxl::MakeRefCounted<Paragraph>(renderView);
33- }
34-
3528 static fxl::RefPtr<Paragraph> Create (
3629 std::unique_ptr<txt::Paragraph> paragraph) {
3730 return fxl::MakeRefCounted<Paragraph>(std::move (paragraph));
@@ -54,24 +47,14 @@ class Paragraph : public fxl::RefCountedThreadSafe<Paragraph>,
5447 Dart_Handle getPositionForOffset (double dx, double dy);
5548 Dart_Handle getWordBoundary (unsigned offset);
5649
57- RenderView* renderView () const { return m_renderView.get (); }
58-
5950 virtual size_t GetAllocationSize () override ;
6051
6152 static void RegisterNatives (tonic::DartLibraryNatives* natives);
6253
6354 private:
6455 std::unique_ptr<ParagraphImpl> m_paragraphImpl;
6556
66- explicit Paragraph (PassOwnPtr<RenderView> renderView);
67-
6857 explicit Paragraph (std::unique_ptr<txt::Paragraph> paragraph);
69-
70- // TODO: This can be removed when the render view association for the legacy
71- // runtime is removed.
72- fxl::RefPtr<fxl::TaskRunner> destruction_task_runner_ =
73- UIDartState::Current ()->GetTaskRunners ().GetUITaskRunner();
74- OwnPtr<RenderView> m_renderView;
7558};
7659
7760} // namespace blink
0 commit comments