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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2444593002: Introduce Layout*::adjustVisualRectForRasterEffects and use it for SVG hairlines. (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
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 0ae7cb6b3efb9b4e07af42ed1c3f3672c0230d8b..d2a4cad47b65029639aad55983691a5f403d6b0a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1216,6 +1216,8 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(
context.newLocation.move(adjustment);
context.newBounds.move(adjustment);
+ adjustVisualRectForRasterEffects(context.newBounds);
+
setPreviousPaintInvalidationRect(context.newBounds);
setPreviousPositionFromPaintInvalidationBacking(context.newLocation);

Powered by Google App Engine
This is Rietveld 408576698