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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformOperations.cpp

Issue 2616863002: Remove TransformOperation::None (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
diff --git a/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp b/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
index b94746c22d9ead47246478aa31608f4e6280697b..9617a5c09cfa2a7ed23ebaf125e9f1ef19bc8863 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
+++ b/third_party/WebKit/Source/platform/transforms/TransformOperations.cpp
@@ -282,16 +282,10 @@ bool TransformOperations::blendedBoundsForBox(const FloatBox& box,
(i < fromSize) ? from.operations()[i] : nullptr;
RefPtr<TransformOperation> toOperation =
(i < toSize) ? operations()[i] : nullptr;
- if (fromOperation && fromOperation->type() == TransformOperation::None)
- fromOperation = nullptr;
-
- if (toOperation && toOperation->type() == TransformOperation::None)
- toOperation = nullptr;
+ DCHECK(fromOperation || toOperation);
TransformOperation::OperationType interpolationType =
- toOperation
- ? toOperation->type()
- : fromOperation ? fromOperation->type() : TransformOperation::None;
+ toOperation ? toOperation->type() : fromOperation->type();
if (fromOperation && toOperation &&
!fromOperation->canBlendWith(*toOperation.get()))
return false;
@@ -407,8 +401,6 @@ bool TransformOperations::blendedBoundsForBox(const FloatBox& box,
}
}
continue;
- case TransformOperation::None:
- continue;
case TransformOperation::Matrix:
case TransformOperation::Matrix3D:
case TransformOperation::Interpolated:

Powered by Google App Engine
This is Rietveld 408576698