Commit f6d74e9b authored by Eric Willigers's avatar Eric Willigers Committed by Commit Bot

CSS: Public methods for Scale,Translate transform

The GetType()/PrimitiveType() methods were private for
Scale,Translate TransformOperation, but public on the
base class and for Rotate.

Making the methods public allows clients to determine if
scale and translate transforms are 3D without needing to upcast.

BUG=811142

Change-Id: I5a3b7c69c7df847ca10b6f92331dae2d53343dc9
Reviewed-on: https://chromium-review.googlesource.com/947834
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540848}
parent 25865cf6
......@@ -68,10 +68,10 @@ class PLATFORM_EXPORT ScaleTransformOperation final
type == kScaleZ || type == kScale3D;
}
private:
OperationType GetType() const override { return type_; }
OperationType PrimitiveType() const final { return kScale3D; }
private:
bool operator==(const TransformOperation& o) const override {
if (!IsSameType(o))
return false;
......
......@@ -79,10 +79,10 @@ class PLATFORM_EXPORT TranslateTransformOperation final
scoped_refptr<TranslateTransformOperation> ZoomTranslate(double factor);
private:
OperationType GetType() const override { return type_; }
OperationType PrimitiveType() const final { return kTranslate3D; }
private:
bool operator==(const TransformOperation& o) const override {
if (!IsSameType(o))
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment