blob: 39d3852b796c48375c27cb8bafc5f353af8f566b [file] [log] [blame]
// Copyright 2018 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_OUTLINE_UTILS_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_OUTLINE_UTILS_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
namespace blink {
class ComputedStyle;
class Node;
class NGPhysicalBoxFragment;
class CORE_EXPORT NGOutlineUtils {
STATIC_ONLY(NGOutlineUtils);
public:
static bool HasPaintedOutline(const ComputedStyle& style, const Node* node);
// Returns true if this fragment should paint an outline.
//
// Specifically a |LayoutInline| can be split across multiple flows. The
// first fragment produced should paint the outline for *all* fragments.
static bool ShouldPaintOutline(const NGPhysicalBoxFragment&);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_OUTLINE_UTILS_H_