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

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..4ddfa545df0780478fba37d79c56373615390324 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -127,10 +127,13 @@ LayoutRect PaintInvalidator::mapLocalRectToVisualRectInBacking(
context.m_treeBuilderContext.current.transform,
context.m_treeBuilderContext.current.clip, nullptr);
- FloatRect floatRect(rect);
+ FloatClipRect floatRect((FloatRect(rect)));
+ LOG(ERROR) << "rect before: " << floatRect.rect().toString();
GeometryMapper::sourceToDestinationVisualRect(
currentTreeState, *containerContentsProperties, floatRect);
- result = LayoutRect(floatRect);
+ LOG(ERROR) << "wat: " << floatRect.rect().toString()
+ << " object: " << object.debugName();
+ result = LayoutRect(floatRect.rect());
}
// Convert the result to the container's contents space.

Powered by Google App Engine
This is Rietveld 408576698