#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 { … }
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() { … }
}