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

Unified Diff: Source/core/svg/SVGImageElement.h

Issue 1220053003: Disentangle filter content recording state from FilterData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 5 years, 6 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
« no previous file with comments | « Source/core/paint/SVGPaintContext.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGImageElement.h
diff --git a/Source/core/svg/SVGImageElement.h b/Source/core/svg/SVGImageElement.h
index e799c1646c5af9708d775304ab482043ad780784..6b5421f24d1bb669166ee56f0b155b345321be5e 100644
--- a/Source/core/svg/SVGImageElement.h
+++ b/Source/core/svg/SVGImageElement.h
@@ -48,6 +48,9 @@ public:
SVGAnimatedLength* height() const { return m_height.get(); }
SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAspectRatio.get(); }
+ // Exposed for testing.
+ ImageResource* cachedImage() const { return imageLoader().image(); }
+
private:
explicit SVGImageElement(Document&);
@@ -70,7 +73,7 @@ private:
virtual bool selfHasRelativeLengths() const override;
virtual void didMoveToNewDocument(Document& oldDocument) override;
- SVGImageLoader& imageLoader() { return *m_imageLoader; }
+ SVGImageLoader& imageLoader() const { return *m_imageLoader; }
RefPtrWillBeMember<SVGAnimatedLength> m_x;
RefPtrWillBeMember<SVGAnimatedLength> m_y;
« no previous file with comments | « Source/core/paint/SVGPaintContext.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698