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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2386263002: Don't pixel-snap box size before applying transform to it. (Closed)
Patch Set: none Created 4 years, 2 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/LayoutTests/paint/transforms/percentage-transform-fractional-box-size-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 2fd2ccd2f05699bd30b16fcb7445330ffdefc012..ece88357555366f2d5de786ff1d55eded8c48b03 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -393,8 +393,8 @@ void PaintLayer::updateTransformationMatrix() {
ASSERT(box);
transform->makeIdentity();
box->style()->applyTransform(
- *transform, LayoutSize(box->pixelSnappedSize()),
- ComputedStyle::IncludeTransformOrigin, ComputedStyle::IncludeMotionPath,
+ *transform, box->size(), ComputedStyle::IncludeTransformOrigin,
+ ComputedStyle::IncludeMotionPath,
ComputedStyle::IncludeIndependentTransformProperties);
makeMatrixRenderable(*transform, compositor()->hasAcceleratedCompositing());
}
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/transforms/percentage-transform-fractional-box-size-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698