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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h

Issue 2811783002: [LayoutNG] Move inline files to the inline directory (Closed)
Patch Set: Fix unit tests Created 3 years, 8 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/ng/ng_physical_text_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h
deleted file mode 100644
index 63416fbac121ae7ddd5939e20aeef537cd685d85..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2016 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 NGPhysicalTextFragment_h
-#define NGPhysicalTextFragment_h
-
-#include "core/CoreExport.h"
-#include "core/layout/ng/ng_block_node.h"
-#include "core/layout/ng/ng_inline_node.h"
-#include "core/layout/ng/ng_floating_object.h"
-#include "core/layout/ng/ng_physical_fragment.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragment {
- public:
- NGPhysicalTextFragment(LayoutObject* layout_object,
- const NGInlineNode* node,
- unsigned item_index,
- unsigned start_offset,
- unsigned end_offset,
- NGPhysicalSize size)
- : NGPhysicalFragment(layout_object, size, kFragmentText),
- node_(node),
- item_index_(item_index),
- start_offset_(start_offset),
- end_offset_(end_offset) {}
-
- const NGInlineNode* Node() const { return node_; }
- StringView Text() const { return node_->Text(start_offset_, end_offset_); }
-
- // The range of NGLayoutInlineItem.
- unsigned ItemIndex() const { return item_index_; }
- unsigned StartOffset() const { return start_offset_; }
- unsigned EndOffset() const { return end_offset_; }
-
- private:
- // TODO(kojii): NGInlineNode is to access text content and NGLayoutInlineItem.
- // Review if it's better to point them.
- Persistent<const NGInlineNode> node_;
- unsigned item_index_;
- unsigned start_offset_;
- unsigned end_offset_;
-};
-
-DEFINE_TYPE_CASTS(NGPhysicalTextFragment,
- NGPhysicalFragment,
- fragment,
- fragment->IsText(),
- fragment.IsText());
-
-} // namespace blink
-
-#endif // NGPhysicalTextFragment_h

Powered by Google App Engine
This is Rietveld 408576698