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

Unified Diff: Source/platform/graphics/GraphicsLayer.h

Issue 311273008: Remove anchorPoint from WebLayer and GraphicsLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/platform/graphics/GraphicsLayer.h
diff --git a/Source/platform/graphics/GraphicsLayer.h b/Source/platform/graphics/GraphicsLayer.h
index 059f639419051611916c8d1aed6e2113746439a3..5f3b9098e305bdf700da079721740f0a4fbdc594 100644
--- a/Source/platform/graphics/GraphicsLayer.h
+++ b/Source/platform/graphics/GraphicsLayer.h
@@ -147,12 +147,6 @@ public:
const FloatPoint& position() const { return m_position; }
void setPosition(const FloatPoint&);
- // Anchor point: (0, 0) is top left, (1, 1) is bottom right. The anchor point
- // affects the origin of the transforms.
- // DEPRECATED, to be removed soon.
- const FloatPoint3D& anchorPoint() const { return m_anchorPoint; }
- void setAnchorPoint(const FloatPoint3D&);
-
const FloatPoint3D& transformOrigin() const { return m_transformOrigin; }
void setTransformOrigin(const FloatPoint3D&);
@@ -340,12 +334,12 @@ private:
// Position is relative to the parent GraphicsLayer
FloatPoint m_position;
- FloatPoint3D m_anchorPoint;
FloatSize m_size;
FloatPoint m_boundsOrigin;
TransformationMatrix m_transform;
FloatPoint3D m_transformOrigin;
+ bool m_transformOriginSet : 1;
ojan 2014/06/05 21:52:21 This doesn't pack well (wastes 32 bits). Please pu
Color m_backgroundColor;
float m_opacity;

Powered by Google App Engine
This is Rietveld 408576698