chromium/third_party/blink/renderer/core/html/html_image_fallback_helper.cc

// Copyright 2014 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/html/html_image_fallback_helper.h"

#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/html/html_span_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/input_type_names.h"
#include "third_party/blink/renderer/core/style/computed_style.h"

namespace blink {

static bool ImageRepresentsNothing(const StyleUAShadowHostData& host_data) {}

static bool ImageSmallerThanAltImage(const Length& width,
                                     const Length& height) {}

static bool TreatImageAsReplaced(const Document& document,
                                 const StyleUAShadowHostData& host_data) {}

namespace {

class HTMLAltTextContainerElement : public HTMLSpanElement {};

class HTMLAltTextImageElement : public HTMLImageElement {};

}  // namespace

void HTMLImageFallbackHelper::CreateAltTextShadowTree(Element& element) {}

void HTMLImageFallbackHelper::AdjustHostStyle(HTMLElement& element,
                                              ComputedStyleBuilder& builder) {}

}  // namespace blink