Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/Source/core/html/canvas/ImageElementBase.h

Issue 2817093002: Revert of Adds SVGImageElement as a ImageBitmapSource (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/canvas/ImageElementBase.h
diff --git a/third_party/WebKit/Source/core/html/canvas/ImageElementBase.h b/third_party/WebKit/Source/core/html/canvas/ImageElementBase.h
deleted file mode 100644
index d8060f49872c8985324795470203eb8a5fdb11b7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/html/canvas/ImageElementBase.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ImageElementBase_h
-#define ImageElementBase_h
-
-#include "core/CoreExport.h"
-#include "core/html/canvas/CanvasImageSource.h"
-#include "core/imagebitmap/ImageBitmapSource.h"
-
-namespace blink {
-
-class Element;
-class ImageLoader;
-class ImageResourceContent;
-
-class CORE_EXPORT ImageElementBase : public CanvasImageSource,
- public ImageBitmapSource {
- public:
- virtual ImageLoader& GetImageLoader() const = 0;
- virtual FloatSize SourceDefaultObjectSize() = 0;
-
- IntSize BitmapSourceSize() const override;
- ScriptPromise CreateImageBitmap(ScriptState*,
- EventTarget&,
- Optional<IntRect>,
- const ImageBitmapOptions&,
- ExceptionState&) override;
-
- PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*,
- AccelerationHint,
- SnapshotReason,
- const FloatSize&) const override;
-
- bool WouldTaintOrigin(
- SecurityOrigin* destination_security_origin) const override;
-
- FloatSize ElementSize(const FloatSize& default_object_size) const override;
- FloatSize DefaultDestinationSize(
- const FloatSize& default_object_size) const override;
-
- bool IsAccelerated() const override;
-
- int SourceWidth() override;
- int SourceHeight() override;
-
- bool IsSVGSource() const override;
-
- bool IsOpaque() const override;
-
- const KURL& SourceURL() const override;
-
- ImageResourceContent* CachedImage() const;
-
- private:
- const Element& GetElement() const;
-};
-
-} // namespace blink
-
-#endif // ImageElementBase_h

Powered by Google App Engine
This is Rietveld 408576698