Commit d911de4a authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Remove ImageElementBase::SourceDefaultObjectSize

After https://chromium-review.googlesource.com/716679, this method has
no callers. Remove it.

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I3e2f427c8349bfa410718cd24782f64c7ad2e0e0
Reviewed-on: https://chromium-review.googlesource.com/735861Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#539306}
parent b91b323e
......@@ -818,8 +818,4 @@ void HTMLImageElement::AssociateWith(HTMLFormElement* form) {
}
};
FloatSize HTMLImageElement::SourceDefaultObjectSize() {
return FloatSize(width(), height());
}
} // namespace blink
......@@ -121,7 +121,6 @@ class CORE_EXPORT HTMLImageElement final
bool IsCollapsed() const;
// CanvasImageSource interface implementation.
FloatSize SourceDefaultObjectSize() override;
FloatSize DefaultDestinationSize(const FloatSize&) const override;
// public so that HTMLPictureElement can call this as well.
......
......@@ -20,7 +20,6 @@ class CORE_EXPORT ImageElementBase : public CanvasImageSource,
public ImageBitmapSource {
public:
virtual ImageLoader& GetImageLoader() const = 0;
virtual FloatSize SourceDefaultObjectSize() = 0;
// Parses the given async parameter value into an ImageDecodingMode. This is
// used by SVGImageElement and HTMLImageElement since this class is a common
......
......@@ -199,14 +199,6 @@ Node::InsertionNotificationRequest SVGImageElement::InsertedInto(
return SVGGraphicsElement::InsertedInto(root_parent);
}
FloatSize SVGImageElement::SourceDefaultObjectSize() {
if (GetLayoutObject())
return ToLayoutSVGImage(GetLayoutObject())->ObjectBoundingBox().Size();
SVGLengthContext length_context(this);
return FloatSize(width_->CurrentValue()->Value(length_context),
height_->CurrentValue()->Value(length_context));
}
const AtomicString SVGImageElement::ImageSourceURL() const {
return AtomicString(HrefString());
}
......
......@@ -92,7 +92,6 @@ class CORE_EXPORT SVGImageElement final
bool SelfHasRelativeLengths() const override;
void DidMoveToNewDocument(Document& old_document) override;
SVGImageLoader& GetImageLoader() const override { return *image_loader_; }
FloatSize SourceDefaultObjectSize() override;
Member<SVGAnimatedLength> x_;
Member<SVGAnimatedLength> y_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment