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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards Created 3 years, 11 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_length_utils_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
index 0df5c67d2f6d311d4df8c48a06e5b2b031ee19a1..5f5e8671eac50b3ea783eafd640957d2cb837b8c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
@@ -6,11 +6,11 @@
#include "core/layout/ng/ng_constraint_space.h"
#include "core/layout/ng/ng_constraint_space_builder.h"
-#include "core/layout/ng/ng_fragment.h"
#include "core/layout/ng/ng_fragment_builder.h"
-#include "core/layout/ng/ng_physical_fragment.h"
#include "core/layout/ng/ng_units.h"
#include "core/style/ComputedStyle.h"
+#include "core/layout/ng/ng_box_fragment.h"
+#include "core/layout/ng/ng_physical_box_fragment.h"
#include "platform/CalculationValue.h"
#include "platform/LayoutUnit.h"
#include "platform/Length.h"
@@ -393,11 +393,11 @@ TEST_F(NGLengthUtilsTest, testAutoMargins) {
style_->setMarginRight(Length(Auto));
style_->setMarginLeft(Length(Auto));
- NGFragmentBuilder builder(NGPhysicalFragmentBase::kFragmentBox);
+ NGFragmentBuilder builder(NGPhysicalFragment::kFragmentBox);
builder.SetInlineSize(LayoutUnit(150));
- NGPhysicalFragment* physical_fragment = builder.ToFragment();
- NGFragment* fragment = new NGFragment(kHorizontalTopBottom,
- TextDirection::Ltr, physical_fragment);
+ NGPhysicalBoxFragment* physical_fragment = builder.ToBoxFragment();
+ NGBoxFragment* fragment = new NGBoxFragment(
+ kHorizontalTopBottom, TextDirection::Ltr, physical_fragment);
NGConstraintSpace* constraint_space(ConstructConstraintSpace(200, 300));

Powered by Google App Engine
This is Rietveld 408576698