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

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

Issue 2802443002: Compute rounded-ness of visual rects (Closed)
Patch Set: none Created 3 years, 8 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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 7d84659985f4f467418dcc5bed68fe6d6e7341a9..1156ff6b2e877e66ee9f2f6efbac4c487d304f7d 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -127,10 +127,10 @@ LayoutRect PaintInvalidator::mapLocalRectToVisualRectInBacking(
context.m_treeBuilderContext.current.transform,
context.m_treeBuilderContext.current.clip, nullptr);
- FloatRect floatRect(rect);
+ FloatClipRect floatRect((FloatRect(rect)));
GeometryMapper::sourceToDestinationVisualRect(
currentTreeState, *containerContentsProperties, floatRect);
- result = LayoutRect(floatRect);
+ result = LayoutRect(floatRect.rect());
}
// Convert the result to the container's contents space.

Powered by Google App Engine
This is Rietveld 408576698