chromium/third_party/blink/renderer/core/layout/layout_custom_scrollbar_part.cc

/*
 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "third_party/blink/renderer/core/layout/layout_custom_scrollbar_part.h"

#include "base/notreached.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/layout/custom_scrollbar.h"
#include "third_party/blink/renderer/core/layout/layout_view.h"
#include "third_party/blink/renderer/core/paint/custom_scrollbar_theme.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"

namespace blink {

LayoutCustomScrollbarPart::LayoutCustomScrollbarPart(
    ScrollableArea* scrollable_area,
    CustomScrollbar* scrollbar,
    ScrollbarPart part,
    bool suppress_use_counters)
    :{}

static void RecordScrollbarPartStats(Document& document, ScrollbarPart part) {}

LayoutCustomScrollbarPart* LayoutCustomScrollbarPart::CreateAnonymous(
    Document* document,
    ScrollableArea* scrollable_area,
    CustomScrollbar* scrollbar,
    ScrollbarPart part,
    bool suppress_use_counters) {}

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

// TODO(crbug.com/1020913): Support subpixel layout of scrollbars and remove
// ToInt() in the following functions.
// TODO(crbug.com/40339056): This could handle intrinsic sizing keywords
// and calc-size() a bit better than it does.
int LayoutCustomScrollbarPart::ComputeSize(const Length& length,
                                           int container_size) const {}

int LayoutCustomScrollbarPart::ComputeWidth(int container_width) const {}

int LayoutCustomScrollbarPart::ComputeHeight(int container_height) const {}

int LayoutCustomScrollbarPart::ComputeThickness() const {}

int LayoutCustomScrollbarPart::ComputeLength() const {}

void LayoutCustomScrollbarPart::SetOverriddenSize(const PhysicalSize& size) {}

LayoutPoint LayoutCustomScrollbarPart::LocationInternal() const {}

PhysicalSize LayoutCustomScrollbarPart::Size() const {}

static LayoutUnit ComputeMargin(const Length& style_margin) {}

LayoutUnit LayoutCustomScrollbarPart::MarginTop() const {}

LayoutUnit LayoutCustomScrollbarPart::MarginBottom() const {}

LayoutUnit LayoutCustomScrollbarPart::MarginLeft() const {}

LayoutUnit LayoutCustomScrollbarPart::MarginRight() const {}

void LayoutCustomScrollbarPart::UpdateFromStyle() {}

void LayoutCustomScrollbarPart::StyleDidChange(StyleDifference diff,
                                               const ComputedStyle* old_style) {}

void LayoutCustomScrollbarPart::RecordPercentLengthStats() const {}

void LayoutCustomScrollbarPart::ImageChanged(WrappedImagePtr image,
                                             CanDeferInvalidation defer) {}

void LayoutCustomScrollbarPart::SetNeedsPaintInvalidation() {}

}  // namespace blink