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

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

Issue 2753743003: Make NGFragmentBuilder to keep track on text children. (Closed)
Patch Set: get a raw ptr of NGPhysicalFragment instead of RefPtr Created 3 years, 9 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_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
index a900cf2ef0357684af3c45296af50e11a8247cff..f76cc7b9b301576919df0dfcc6a18d8de837472f 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
@@ -36,10 +36,11 @@ class CORE_EXPORT NGFragment {
NGPhysicalFragment::NGFragmentType Type() const;
protected:
- NGFragment(NGWritingMode writing_mode, NGPhysicalFragment* physical_fragment)
+ NGFragment(NGWritingMode writing_mode,
+ const NGPhysicalFragment* physical_fragment)
: physical_fragment_(physical_fragment), writing_mode_(writing_mode) {}
- NGPhysicalFragment* physical_fragment_;
+ const NGPhysicalFragment* physical_fragment_;
unsigned writing_mode_ : 3;
};

Powered by Google App Engine
This is Rietveld 408576698