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

// Copyright 2016 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_observation.h"

#include "third_party/blink/renderer/core/display_lock/display_lock_utilities.h"
#include "third_party/blink/renderer/core/dom/flat_tree_traversal.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"
#include "third_party/blink/renderer/core/resize_observer/resize_observer.h"
#include "third_party/blink/renderer/core/resize_observer/resize_observer_box_options.h"
#include "third_party/blink/renderer/core/resize_observer/resize_observer_utilities.h"
#include "third_party/blink/renderer/core/svg/svg_graphics_element.h"
#include "third_party/blink/renderer/platform/geometry/layout_unit.h"
#include "ui/gfx/geometry/size_f.h"

namespace blink {

namespace {

// Given |box_option|, compute the appropriate size for an SVG element that
// does not have an associated layout box.
gfx::SizeF ComputeZoomAdjustedSVGBox(ResizeObserverBoxOptions box_option,
                                     const LayoutObject& layout_object) {}

// Set the initial observation size to something impossible so that the first
// gather observation step always will pick up a new observation.
constexpr LogicalSize kInitialObservationSize(kIndefiniteSize, kIndefiniteSize);

}  // namespace

ResizeObservation::ResizeObservation(Element* target,
                                     ResizeObserver* observer,
                                     ResizeObserverBoxOptions observed_box)
    :{}

bool ResizeObservation::ObservationSizeOutOfSync() {}

void ResizeObservation::SetObservationSize(
    const LogicalSize& observation_size) {}

// https://drafts.csswg.org/resize-observer/#calculate-depth-for-node
// 1. Let p be the parent-traversal path from node to a root Element of this
//    element’s flattened DOM tree.
// 2. Return number of nodes in p.
size_t ResizeObservation::TargetDepth() {}

LogicalSize ResizeObservation::ComputeTargetSize() const {}

void ResizeObservation::Trace(Visitor* visitor) const {}

}  // namespace blink