#include "third_party/blink/renderer/core/paint/link_highlight_impl.h"
#include <memory>
#include <utility>
#include "base/debug/stack_trace.h"
#include "base/memory/ptr_util.h"
#include "cc/animation/animation_id_provider.h"
#include "cc/animation/keyframe_model.h"
#include "cc/layers/picture_layer.h"
#include "cc/paint/display_item_list.h"
#include "cc/trees/target_property.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/web/blink.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/dom/layout_tree_builder_traversal.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/exported/web_view_impl.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/web_frame_widget_impl.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/layout/inline/fragment_item.h"
#include "third_party/blink/renderer/core/layout/inline/inline_cursor.h"
#include "third_party/blink/renderer/core/layout/layout_box_model_object.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/paint/fragment_data_iterator.h"
#include "third_party/blink/renderer/core/paint/paint_layer.h"
#include "third_party/blink/renderer/core/paint/paint_layer_scrollable_area.h"
#include "third_party/blink/renderer/platform/animation/timing_function.h"
#include "third_party/blink/renderer/platform/graphics/compositing/paint_artifact_compositor.h"
#include "third_party/blink/renderer/platform/graphics/paint/foreign_layer_display_item.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_canvas.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_recorder.h"
#include "third_party/blink/renderer/platform/graphics/paint/scoped_display_item_fragment.h"
#include "third_party/blink/renderer/platform/graphics/paint/transform_paint_property_node.h"
#include "third_party/blink/renderer/platform/web_test_support.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
#include "ui/gfx/animation/keyframe/keyframed_animation_curve.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/size_f.h"
namespace blink {
static constexpr float kStartOpacity = …;
namespace {
float GetTargetOpacity() { … }
EffectPaintPropertyNode::State LinkHighlightEffectNodeState(
float opacity,
CompositorElementId element_id) { … }
}
static CompositorElementId NewElementId() { … }
LinkHighlightImpl::LinkHighlightImpl(Node* node)
: … { … }
LinkHighlightImpl::~LinkHighlightImpl() { … }
void LinkHighlightImpl::ReleaseResources() { … }
void LinkHighlightImpl::StartCompositorAnimation() { … }
void LinkHighlightImpl::StopCompositorAnimation() { … }
LinkHighlightImpl::LinkHighlightFragment::LinkHighlightFragment() { … }
LinkHighlightImpl::LinkHighlightFragment::~LinkHighlightFragment() { … }
scoped_refptr<cc::DisplayItemList>
LinkHighlightImpl::LinkHighlightFragment::PaintContentsToDisplayList() { … }
void LinkHighlightImpl::UpdateOpacityAndRequestAnimation() { … }
void LinkHighlightImpl::NotifyAnimationFinished(base::TimeDelta, int) { … }
void LinkHighlightImpl::UpdateBeforePrePaint() { … }
void LinkHighlightImpl::UpdateAfterPrePaint() { … }
CompositorAnimation* LinkHighlightImpl::GetCompositorAnimation() const { … }
void LinkHighlightImpl::Paint(GraphicsContext& context) { … }
void LinkHighlightImpl::UpdateAfterPaint(
const PaintArtifactCompositor* paint_artifact_compositor) { … }
void LinkHighlightImpl::SetNeedsRepaintAndCompositingUpdate() { … }
void LinkHighlightImpl::UpdateOpacity(float opacity) { … }
}