summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/transforms/transform_operations.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-11 11:32:04 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-18 13:40:17 +0000
commit31ccca0778db85c159634478b4ec7997f6704860 (patch)
tree3d33fc3afd9d5ec95541e1bbe074a9cf8da12a0e /chromium/third_party/blink/renderer/platform/transforms/transform_operations.h
parent248b70b82a40964d5594eb04feca0fa36716185d (diff)
downloadqtwebengine-chromium-31ccca0778db85c159634478b4ec7997f6704860.tar.gz
BASELINE: Update Chromium to 80.0.3987.136
Change-Id: I98e1649aafae85ba3a83e67af00bb27ef301db7b Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/transforms/transform_operations.h')
-rw-r--r--chromium/third_party/blink/renderer/platform/transforms/transform_operations.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/platform/transforms/transform_operations.h b/chromium/third_party/blink/renderer/platform/transforms/transform_operations.h
index 51d25367425..4e4978b4170 100644
--- a/chromium/third_party/blink/renderer/platform/transforms/transform_operations.h
+++ b/chromium/third_party/blink/renderer/platform/transforms/transform_operations.h
@@ -73,7 +73,7 @@ class PLATFORM_EXPORT TransformOperations {
}
// Return true if any of the operation types are non-perspective 3D operation
- // types (even if the values describe affine transforms)
+ // types (even if the values describe affine transforms).
bool HasNonPerspective3DOperation() const {
for (auto& operation : operations_) {
if (operation->Is3DOperation() &&
@@ -91,8 +91,7 @@ class PLATFORM_EXPORT TransformOperations {
return true;
}
- // Returns true if any operation has a non-trivial component in the Z
- // axis.
+ // Returns true if any operation has a non-trivial component in the Z axis.
bool HasNonTrivial3DComponent() const {
for (auto& operation : operations_) {
if (operation->HasNonTrivial3DComponent())
@@ -140,11 +139,6 @@ class PLATFORM_EXPORT TransformOperations {
const double& max_progress,
FloatBox* bounds) const;
- TransformOperations BlendPrefixByMatchingOperations(
- const TransformOperations& from,
- wtf_size_t matching_prefix_length,
- double progress,
- bool* success) const;
scoped_refptr<TransformOperation> BlendRemainingByUsingMatrixInterpolation(
const TransformOperations& from,
wtf_size_t matching_prefix_length,
@@ -155,6 +149,10 @@ class PLATFORM_EXPORT TransformOperations {
TransformOperations Add(const TransformOperations& addend) const;
TransformOperations Zoom(double factor) const;
+ // Perform accumulation of |to| onto |this|, as specified in
+ // https://drafts.csswg.org/css-transforms-2/#combining-transform-lists
+ TransformOperations Accumulate(const TransformOperations& to) const;
+
private:
Vector<scoped_refptr<TransformOperation>> operations_;
};