chromium/third_party/blink/renderer/core/resize_observer/resize_observer_utilities.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/resize_observer/resize_observer_utilities.h"

#include "third_party/blink/renderer/core/geometry/dom_rect_read_only.h"
#include "third_party/blink/renderer/core/layout/adjust_for_absolute_zoom.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_offset.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/resize_observer/resize_observer_box_options.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/geometry/layout_unit.h"
#include "ui/gfx/geometry/size_f.h"

namespace blink {

namespace {

// Compute the logical paint offset for a layout object.
LogicalOffset ComputePaintOffset(const LayoutObject& layout_object,
                                 const ComputedStyle& style) {}

}  // namespace

gfx::SizeF ResizeObserverUtilities::ComputeZoomAdjustedBox(
    ResizeObserverBoxOptions box_option,
    const LayoutBox& layout_box,
    const ComputedStyle& style) {}

gfx::SizeF ResizeObserverUtilities::ComputeSnappedDevicePixelContentBox(
    LogicalSize box_size,
    const LayoutObject& layout_object,
    const ComputedStyle& style) {}

// static
gfx::SizeF ResizeObserverUtilities::ComputeSnappedDevicePixelContentBox(
    const gfx::SizeF& box_size,
    const LayoutObject& layout_object,
    const ComputedStyle& style) {}

DOMRectReadOnly* ResizeObserverUtilities::ZoomAdjustedPhysicalRect(
    PhysicalRect content_rect,
    const ComputedStyle& style) {}

}  // namespace blink