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

Unified Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.h

Issue 2128463002: Pixel snap SVG's root border box to local transform [spv2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to transformToPixelSnappedBorderBox, improve comments Created 4 years, 5 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/core/paint/SVGPaintContext.h
diff --git a/third_party/WebKit/Source/core/paint/SVGPaintContext.h b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
index f3c84dd5e6b4dcfa6d3a5ceb4edfb17ea8edc88e..8a63a1adc6307ace3f4cb38f2302f0484b0c2b3c 100644
--- a/third_party/WebKit/Source/core/paint/SVGPaintContext.h
+++ b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
@@ -61,9 +61,7 @@ public:
// If a transform exists, we can rely on a layer existing to apply it.
DCHECK(!objectProperties || !objectProperties->transform() || object.hasLayer());
if (objectProperties->svgLocalToBorderBoxTransform()) {
- // FIXME(pdr): Enable the following DCHECK once the pixel snapping logic has
- // been included in svgLocalToBorderBox.
- // DCHECK(objectProperties->svgLocalToBorderBoxTransform()->matrix() == transform.toTransformationMatrix());
+ DCHECK(objectProperties->svgLocalToBorderBoxTransform()->matrix() == transform.toTransformationMatrix());
auto& paintController = context.getPaintController();
PaintChunkProperties properties(paintController.currentPaintChunkProperties());
properties.transform = objectProperties->svgLocalToBorderBoxTransform();

Powered by Google App Engine
This is Rietveld 408576698