chromium/third_party/blink/renderer/core/style/style_image_set.cc

/*
 * Copyright (C) 2012 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. AND ITS CONTRIBUTORS ``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 ITS 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/style/style_image_set.h"

#include "base/memory/values_equivalent.h"
#include "third_party/blink/renderer/core/css/css_image_set_option_value.h"
#include "third_party/blink/renderer/core/style/style_image_computed_css_value_builder.h"

namespace blink {

StyleImageSet::StyleImageSet(StyleImage* best_fit_image,
                             CSSImageSetValue* image_set_value,
                             bool is_origin_clean)
    :{}

StyleImageSet::~StyleImageSet() = default;

bool StyleImageSet::IsEqual(const StyleImage& other) const {}

WrappedImagePtr StyleImageSet::Data() const {}

ImageResourceContent* StyleImageSet::CachedImage() const {}

CSSValue* StyleImageSet::CssValue() const {}

CSSValue* StyleImageSet::ComputedCSSValue(const ComputedStyle& style,
                                          bool allow_visited_style,
                                          CSSValuePhase value_phase) const {}

bool StyleImageSet::CanRender() const {}

bool StyleImageSet::IsLoaded() const {}

bool StyleImageSet::IsLoading() const {}

bool StyleImageSet::ErrorOccurred() const {}

bool StyleImageSet::IsAccessAllowed(String& failing_url) const {}

IntrinsicSizingInfo StyleImageSet::GetNaturalSizingInfo(
    float multiplier,
    RespectImageOrientationEnum respect_orientation) const {}

gfx::SizeF StyleImageSet::ImageSize(
    float multiplier,
    const gfx::SizeF& default_object_size,
    RespectImageOrientationEnum respect_orientation) const {}

bool StyleImageSet::HasIntrinsicSize() const {}

void StyleImageSet::AddClient(ImageResourceObserver* observer) {}

void StyleImageSet::RemoveClient(ImageResourceObserver* observer) {}

scoped_refptr<Image> StyleImageSet::GetImage(
    const ImageResourceObserver& image_resource_observer,
    const Document& document,
    const ComputedStyle& style,
    const gfx::SizeF& target_size) const {}

float StyleImageSet::ImageScaleFactor() const {}

bool StyleImageSet::KnownToBeOpaque(const Document& document,
                                    const ComputedStyle& computed_style) const {}

RespectImageOrientationEnum StyleImageSet::ForceOrientationIfNecessary(
    RespectImageOrientationEnum default_orientation) const {}

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

}  // namespace blink