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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1192463006: Remove constant default-arg from DeprecatedPaintLayer::currentTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/core/paint/DeprecatedPaintLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index ab65b911838ce0184d324bcf406f3da45531eeb7..ec858d83c0209049b34bade1d83b7f78d4a8a6f4 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -395,20 +395,10 @@ DeprecatedPaintLayer* DeprecatedPaintLayer::renderingContextRoot()
return renderingContext;
}
-TransformationMatrix DeprecatedPaintLayer::currentTransform(ComputedStyle::ApplyTransformOrigin applyOrigin) const
+TransformationMatrix DeprecatedPaintLayer::currentTransform() const
{
if (!m_transform)
return TransformationMatrix();
-
- // m_transform includes transform-origin, so we need to recompute the transform here.
- if (applyOrigin == ComputedStyle::ExcludeTransformOrigin) {
- LayoutBox* box = layoutBox();
- TransformationMatrix currTransform;
- box->style()->applyTransform(currTransform, LayoutSize(box->pixelSnappedSize()), ComputedStyle::ExcludeTransformOrigin);
- makeMatrixRenderable(currTransform, compositor()->hasAcceleratedCompositing());
- return currTransform;
- }
-
return *m_transform;
}
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698