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

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

Issue 2963093002: Add full offset mapping construction in a block (Closed)
Patch Set: Fix first letter handling Created 3 years, 5 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/inline/ng_inline_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h
index 11a28ba9b77334120000b7e7fb136a0b845828fa..107c5a89625714c9ea53e6adeed9999acc1d2914 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.h
@@ -28,6 +28,7 @@ class NGInlineItemRange;
using NGInlineItemsBuilder =
NGInlineItemsBuilderTemplate<EmptyOffsetMappingBuilder>;
class NGLayoutResult;
+struct NGOffsetMappingResult;
// Represents an anonymous block box to be laid out, that contains consecutive
// inline nodes and their descendants.
@@ -64,6 +65,10 @@ class CORE_EXPORT NGInlineNode : public NGLayoutInputNode {
void GetLayoutTextOffsets(Vector<unsigned, 32>*);
+ // Returns the DOM to text content offset mapping of this block. Must be
+ // called with clean layout.
+ NGOffsetMappingResult BuildOffsetMapping() const;
+
bool IsBidiEnabled() const { return Data().is_bidi_enabled_; }
TextDirection BaseDirection() const { return Data().BaseDirection(); }

Powered by Google App Engine
This is Rietveld 408576698