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

Unified Diff: third_party/WebKit/Source/platform/geometry/TransformState.cpp

Issue 1673093003: blink::TransformationMatrix implement create methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change adoptPtr -> create for missed class Created 4 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
Index: third_party/WebKit/Source/platform/geometry/TransformState.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/TransformState.cpp b/third_party/WebKit/Source/platform/geometry/TransformState.cpp
index 918a73c07b207ae172b00815b0f6c8b512113271..d50b16d2fd5a7b5bf8219c20a52d5ab59dcd9335 100644
--- a/third_party/WebKit/Source/platform/geometry/TransformState.cpp
+++ b/third_party/WebKit/Source/platform/geometry/TransformState.cpp
@@ -44,7 +44,7 @@ TransformState& TransformState::operator=(const TransformState& other)
m_accumulatedTransform.clear();
if (other.m_accumulatedTransform)
- m_accumulatedTransform = adoptPtr(new TransformationMatrix(*other.m_accumulatedTransform));
+ m_accumulatedTransform = TransformationMatrix::create(*other.m_accumulatedTransform);
return *this;
}
@@ -118,12 +118,12 @@ void TransformState::applyTransform(const TransformationMatrix& transformFromCon
// If we have an accumulated transform from last time, multiply in this transform
if (m_accumulatedTransform) {
if (m_direction == ApplyTransformDirection)
- m_accumulatedTransform = adoptPtr(new TransformationMatrix(transformFromContainer * *m_accumulatedTransform));
+ m_accumulatedTransform = TransformationMatrix::create(transformFromContainer * *m_accumulatedTransform);
else
m_accumulatedTransform->multiply(transformFromContainer);
} else if (accumulate == AccumulateTransform) {
// Make one if we started to accumulate
- m_accumulatedTransform = adoptPtr(new TransformationMatrix(transformFromContainer));
+ m_accumulatedTransform = TransformationMatrix::create(transformFromContainer);
}
if (accumulate == FlattenTransform) {

Powered by Google App Engine
This is Rietveld 408576698