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

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

Issue 1310873004: Include additional translation in getBBox for SVGUseElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « LayoutTests/svg/custom/getBBox-use.html ('k') | Source/core/svg/SVGUseElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGTransformableContainer.h
diff --git a/Source/core/layout/svg/LayoutSVGTransformableContainer.h b/Source/core/layout/svg/LayoutSVGTransformableContainer.h
index a7d834a5b27b955dae917866896c0d9f0b6f549e..bcd2d189abf4394f6897796f026c184b03d9c3ff 100644
--- a/Source/core/layout/svg/LayoutSVGTransformableContainer.h
+++ b/Source/core/layout/svg/LayoutSVGTransformableContainer.h
@@ -34,6 +34,8 @@ public:
bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGTransformableContainer || LayoutSVGContainer::isOfType(type); }
const AffineTransform& localToParentTransform() const override { return m_localTransform; }
+ const FloatSize& additionalTranslation() const { return m_lastTranslation; }
pdr. 2015/09/11 05:57:18 WDYT about renaming m_lastTranslation since "last"
+
void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
bool didTransformToRootUpdate() override { return m_didTransformToRootUpdate; }
@@ -47,6 +49,8 @@ private:
FloatSize m_lastTranslation;
};
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransformableContainer());
+
}
#endif // LayoutSVGTransformableContainer_h
« no previous file with comments | « LayoutTests/svg/custom/getBBox-use.html ('k') | Source/core/svg/SVGUseElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698