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

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

Issue 2807113002: [LayoutNG] Use NGLogical[Offset|Size] for NGFragment
Patch Set: 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_text_fragment_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_text_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_text_fragment_builder.h
index 6f7eddc539948f3e09478ba9871d911f1266106f..08de8af384507cbadce066b48252e0683dc150fd 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_text_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_text_fragment_builder.h
@@ -25,6 +25,7 @@ class CORE_EXPORT NGTextFragmentBuilder final {
NGTextFragmentBuilder& SetInlineSize(LayoutUnit);
NGTextFragmentBuilder& SetBlockSize(LayoutUnit);
+ void SetSize(NGLogicalSize size) { size_ = size; }
void UniteMetrics(const NGLineHeightMetrics&);
const NGLineHeightMetrics& Metrics() const { return metrics_; }
@@ -36,11 +37,8 @@ class CORE_EXPORT NGTextFragmentBuilder final {
private:
TextDirection direction_;
-
Persistent<NGInlineNode> node_;
-
NGLogicalSize size_;
-
NGLineHeightMetrics metrics_;
};

Powered by Google App Engine
This is Rietveld 408576698