blob: 72defec1d349d669fc12e8801464575bc6543e2a [file] [log] [blame]
// Copyright 2017 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_unpositioned_float.h"
#include "core/layout/ng/ng_layout_result.h"
#include "core/style/ComputedStyle.h"
namespace blink {
bool NGUnpositionedFloat::IsLeft() const {
return node.Style().Floating() == EFloat::kLeft;
}
bool NGUnpositionedFloat::IsRight() const {
return node.Style().Floating() == EFloat::kRight;
}
EClear NGUnpositionedFloat::ClearType() const {
return node.Style().Clear();
}
} // namespace blink