| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // 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_macros.h" |
| #include "core/layout/ng/ng_physical_fragment.h" |
| |
| namespace blink { |
| |
| NGMarginStrut NGFragment::MarginStrut() const { |
| WRITING_MODE_IGNORED( |
| "Accessing the margin strut ignoring the writing mode here is fine." |
| "A margin strut is never set for a fragment"); |
| return toNGPhysicalFragment(physical_fragment_)->MarginStrut(); |
| } |
| |
| } // namespace blink |