#include "third_party/blink/renderer/core/html/lazy_load_image_observer.h"
#include <limits>
#include "third_party/blink/public/platform/web_effective_connection_type.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/flat_tree_traversal.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/html_element_type_helpers.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/intersection_observer/intersection_observer.h"
#include "third_party/blink/renderer/core/intersection_observer/intersection_observer_entry.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h"
#include "third_party/blink/renderer/platform/network/network_state_notifier.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {
namespace {
bool IsElementInInvisibleSubTree(const Element& element) { … }
bool IsDescendantOrSameDocument(Document& subject, Document& root) { … }
}
void LazyLoadImageObserver::StartMonitoringNearViewport(Document* root_document,
Element* element) { … }
void LazyLoadImageObserver::StopMonitoring(Element* element) { … }
bool LazyLoadImageObserver::LoadAllImagesAndBlockLoadEvent(
Document& for_document) { … }
void LazyLoadImageObserver::LoadIfNearViewport(
const HeapVector<Member<IntersectionObserverEntry>>& entries) { … }
void LazyLoadImageObserver::Trace(Visitor* visitor) const { … }
int LazyLoadImageObserver::GetLazyLoadingImageMarginPx(
const Document& document) { … }
}