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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.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_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
index f3f18ebd7de480d05358a669fbacf3f222283fe3..fe1a12880c9c4793ea7c785df7f33b1274dff65b 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
@@ -9,12 +9,12 @@
#include "core/layout/ng/ng_constraint_space.h"
#include "core/layout/ng/ng_floating_object.h"
#include "core/layout/ng/ng_physical_fragment.h"
+#include "core/layout/ng/ng_physical_text_fragment.h"
#include "wtf/Allocator.h"
namespace blink {
class NGLayoutResult;
-class NGPhysicalTextFragment;
class CORE_EXPORT NGFragmentBuilder final {
DISALLOW_NEW();
@@ -103,6 +103,10 @@ class CORE_EXPORT NGFragmentBuilder final {
unsigned start_offset,
unsigned end_offset);
+ Vector<RefPtr<NGPhysicalFragment>>& MutableChildren() { return children_; }
+
+ Vector<NGLogicalOffset>& MutableOffsets() { return offsets_; }
+
// Mutable list of floats that need to be positioned.
Vector<RefPtr<NGFloatingObject>>& MutableUnpositionedFloats() {
return unpositioned_floats_;
@@ -117,6 +121,10 @@ class CORE_EXPORT NGFragmentBuilder final {
return bfc_offset_;
}
+ const Vector<RefPtr<NGPhysicalFragment>>& Children() const {
+ return children_;
+ }
+
bool DidBreak() const { return did_break_; }
private:
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_fragment.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_line_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698