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

Unified Diff: third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h

Issue 2725973003: Add a use-counter for transforms using the reference box on SVG element (Closed)
Patch Set: Rebase; update histograms.xml Created 3 years, 10 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 | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h
diff --git a/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h b/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h
index 124ff01d6f390b89d5c70017c45d1592f57c23da..ecd68d232bf90521a4040d4e34bebf44194203de 100644
--- a/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h
+++ b/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.h
@@ -47,7 +47,10 @@ class PLATFORM_EXPORT TranslateTransformOperation final
return adoptRef(new TranslateTransformOperation(tx, ty, tz, type));
}
- virtual bool canBlendWith(const TransformOperation& other) const;
+ bool canBlendWith(const TransformOperation& other) const override;
+ bool dependsOnBoxSize() const override {
+ return m_x.isPercentOrCalc() || m_y.isPercentOrCalc();
+ }
double x(const FloatSize& borderBoxSize) const {
return floatValueForLength(m_x, borderBoxSize.width());
@@ -91,10 +94,6 @@ class PLATFORM_EXPORT TranslateTransformOperation final
return zoomTranslate(factor);
}
- bool dependsOnBoxSize() const override {
- return m_x.isPercentOrCalc() || m_y.isPercentOrCalc();
- }
-
TranslateTransformOperation(const Length& tx,
const Length& ty,
double tz,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698