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

Unified Diff: Source/core/layout/svg/LayoutSVGImage.h

Issue 1219493005: Cleanups to viewport-handling and image invalidation in LayoutSVGImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | Source/core/layout/svg/LayoutSVGImage.cpp » ('j') | Source/core/layout/svg/LayoutSVGImage.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGImage.h
diff --git a/Source/core/layout/svg/LayoutSVGImage.h b/Source/core/layout/svg/LayoutSVGImage.h
index bb328e1f0fcf1eb375cdcaa96abd06584ffd1e13..700cc242d2040bc7d7803eec7442aff83f79fa99 100644
--- a/Source/core/layout/svg/LayoutSVGImage.h
+++ b/Source/core/layout/svg/LayoutSVGImage.h
@@ -38,7 +38,6 @@ public:
explicit LayoutSVGImage(SVGImageElement*);
virtual ~LayoutSVGImage();
- bool updateImageViewport();
virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; }
virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
@@ -65,6 +64,8 @@ private:
virtual void layout() override;
virtual void paint(const PaintInfo&, const LayoutPoint&) override;
+ void updateBoundingBox();
+ void updateImageContainerSize();
FloatSize computeImageViewportSize(ImageResource&) const;
virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGImage.cpp » ('j') | Source/core/layout/svg/LayoutSVGImage.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698