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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_box_fragment.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_box_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
similarity index 67%
copy from third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
copy to third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
index 9ccb19c283e5d3dcdca3bf3a0ea477a19439d410..40d77d47304912c031e3a123903a1011dfaab840 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/layout/ng/ng_fragment.h"
+#include "core/layout/ng/ng_box_fragment.h"
#include "core/layout/ng/ng_macros.h"
-#include "core/layout/ng/ng_physical_fragment.h"
+#include "core/layout/ng/ng_physical_box_fragment.h"
namespace blink {
-NGMarginStrut NGFragment::MarginStrut() const {
+NGMarginStrut NGBoxFragment::MarginStrut() const {
WRITING_MODE_IGNORED(
"Accessing the margin strut is fine here. Changing the writing mode"
"establishes a new formatting context, for which a margin strut is never"
"set for a fragment.");
- return toNGPhysicalFragment(physical_fragment_)->MarginStrut();
+ return toNGPhysicalBoxFragment(physical_fragment_)->MarginStrut();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698