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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.h

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years 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/svg/graphics/SVGImage.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
index 416f2658dfd8b4c4cfd2f265aa2727819a9952ce..1b5008cc4b1a4dcf9a830f6ca0557e6fb94673b1 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -42,7 +42,7 @@ class LayoutBox;
class SVGImageChromeClient;
class SVGImageForContainer;
-class SVGImage final : public Image {
+class SVGImage final : public Image, public DisplayItemClient {
pdr. 2015/12/05 21:39:19 This could be problematic because a single SVGImag
Xianzhu 2015/12/07 17:14:00 If you meant the problem that the invalidation bit
public:
static PassRefPtr<SVGImage> create(ImageObserver* observer)
{
@@ -77,8 +77,7 @@ public:
void updateUseCounters(Document&) const;
- DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
- String debugName() const { return "SVGImage"; }
+ String debugName() const final { return "SVGImage"; }
private:
friend class AXLayoutObject;

Powered by Google App Engine
This is Rietveld 408576698