blob: c8442dff5a143357cf2c8a9ea2e9e7be720b98b2 [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_PAINT_FIELDSET_PAINT_INFO_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FIELDSET_PAINT_INFO_H_
#include "third_party/blink/renderer/platform/geometry/layout_rect.h"
#include "third_party/blink/renderer/platform/geometry/layout_rect_outsets.h"
namespace blink {
class ComputedStyle;
struct FieldsetPaintInfo {
// Calculate the fieldset block-start border offset and the cut-out rectangle
// caused by the rendered legend.
FieldsetPaintInfo(const ComputedStyle& fieldset_style,
LayoutSize fieldset_size,
LayoutRectOutsets fieldset_borders,
LayoutRect legend_border_box);
// Block-start border outset caused by the rendered legend.
LayoutRectOutsets border_outsets;
// The cutout rectangle (where the border is not to be painted) occupied by
// the legend. Note that this may intersect with other border sides than the
// block-start one, if the legend happens to overlap with any of the other
// borders.
LayoutRect legend_cutout_rect;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FIELDSET_PAINT_INFO_H_